Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580096 - www-apps/icingaweb2-2.3.0 - pkg_setup() failure with "permission denied" errors
Summary: www-apps/icingaweb2-2.3.0 - pkg_setup() failure with "permission denied" errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-15 15:14 UTC by Russell Knighton
Modified: 2016-04-15 19:44 UTC (History)
0 users

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


Attachments
icingaweb2-2.3.0-r1.ebuild (icingaweb2-2.3.0.ebuild,1.99 KB, text/plain)
2016-04-15 15:29 UTC, Russell Knighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Russell Knighton 2016-04-15 15:14:55 UTC
When running the package set-up for icingaweb2, it fails with the following:
# emerge --config =www-apps/icingaweb2-2.3.0


Configuring pkg...

 * Running first time setup ...
 * Creating configuration directory ...
/var/tmp/portage/www-apps/icingaweb2-2.3.0/temp/environment: line 2288: /usr/share/icingaweb2/bin/icingacli: Permission denied
 * Creating authentication token for web setup ...
/var/tmp/portage/www-apps/icingaweb2-2.3.0/temp/environment: line 2290: /usr/share/icingaweb2/bin/icingacli: Permission denied
 * The following might be useful for your Apache2 configuration:
/var/tmp/portage/www-apps/icingaweb2-2.3.0/temp/environment: line 2293: /usr/share/icingaweb2/bin/icingacli: Permission denied
 * All done.

This is basically because /usr/share/icingaweb2/bin/icingacli is not installed with executable bit.

Either pkg_setup() needs to be changed to prefix /usr/bin/php /usr/share/icingaweb2/bin/icingacli, or icingacli shuold be installed with dobin.
Comment 1 Russell Knighton 2016-04-15 15:26:39 UTC
I've just successfully tested adding this to the src_install:
fperms u+x,g+x "/usr/share/${PN}/bin/icingacli"

Seems to do the job.
Comment 2 Russell Knighton 2016-04-15 15:29:33 UTC
Created attachment 430654 [details]
icingaweb2-2.3.0-r1.ebuild

New ebuild with the added fperms line.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2016-04-15 19:44:10 UTC
fixed in 2.3.0-r1, thanks