Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383787 - app-admin/flexlm-9.5-r1 bad logfile permissions
Summary: app-admin/flexlm-9.5-r1 bad logfile permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 07:39 UTC by Dmitry Stepankov
Modified: 2012-04-16 10:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A unified patch fix (flexlm.patch,3.73 KB, text/plain)
2011-09-23 11:58 UTC, Ian Delaney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Stepankov 2011-09-20 07:39:19 UTC
when running flexlm:
/etc/init.d./flexlm start
error:
* Caching service dependencies ...                                                                 [ ok ]
 * Starting lmgrd ...
Cannot open "/var/log/flexlm.log" as log file (-1)
freopen: Bad file descriptor                                                                        [ !! ]
 * ERROR: flexlm failed to start

--
Problem is that user created by Ebuild 'flexlm' has no write permissions for the 
'/var/log' folder. THerefore it's necessary to create a folder '/var/log/flexlm' with the permissions for 'flexlm' user.

Reproducible: Always

Actual Results:  
error
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-09-23 11:58:37 UTC
Created attachment 287501 [details]
A unified patch fix
Comment 2 Dmitry Stepankov 2011-09-23 13:20:40 UTC
Also a change in default /etc/conf.d/flexlm is necessary
before:
LMLOG="/var/log/flexlm.log"
after
LMLOG="/var/log/flexlm/flexlm.log"

Thanks!
Comment 3 Mike Gilbert gentoo-dev 2011-09-24 16:18:05 UTC
Ian: Why are you changing permissions in pkg_config? Shouldn't this be done in src_install or pkg_postinst? If we do it in src_install, enewuser needs to be moved to pkg_setup.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2011-10-16 09:46:15 UTC
Hello, 

This package has no maintainer so this bug may go unnoticed for a long time. Gentoo has a dedicated team for assisting users in maintaining orphaned packages. If you are interested in maintaining this package, please contact proxy-maint@gentoo.org. 

Kind regards,

Markos
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2011-10-16 10:21:55 UTC
hmm, this is one of the first packages I looked at in the orphan package list.
I also asked about it in dev-help.
It's main problem is the new src url, I couldn't find it.
The tip offered in the query in dev-help was to let it die, since I couldn't find it via google, and is why I did not update and invoke the tip I was given in Comment 3 and from that dev in that query in dev-help
Comment 6 Pacho Ramos gentoo-dev 2012-04-16 10:37:32 UTC
+*flexlm-9.5-r2 (16 Apr 2012)
+
+  16 Apr 2012; Pacho Ramos <pacho@gentoo.org> +flexlm-9.5-r2.ebuild,
+  -flexlm-9.5-r1.ebuild:
+  Fix logfile permissions, bug #383787 by Dmitry Stepankov and Ian Delaney.
+