Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884701 - sys-auth/polkit-122 USE=-daemon fails during install phase
Summary: sys-auth/polkit-122 USE=-daemon fails during install phase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
: 884763 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-12-07 13:10 UTC by Michael Egger
Modified: 2022-12-07 19:38 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Egger 2022-12-07 13:10:40 UTC
sys-auth/polkit-122 with USE=-daemon tries to install files that are non existent.


Reproducible: Always


Related log output:

...
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: sys-auth/polkit-122

>>> Install sys-auth/polkit-122 into /tmp/portage/sys-auth/polkit-122/image
meson install -C /tmp/portage/sys-auth/polkit-122/work/polkit-122-build --destdir /tmp/portage/sys-auth/polkit-122/image --no-rebuild
Installing actions/org.freedesktop.policykit.policy to /tmp/portage/sys-auth/polkit-122/image/usr/share/polkit-1/actions
Installing src/polkit/polkitenumtypes.h to /tmp/portage/sys-auth/polkit-122/image/usr/include/polkit-1/polkit
Installing src/polkit/libpolkit-gobject-1.so.0.0.0 to /tmp/portage/sys-auth/polkit-122/image/usr/lib64
...
Running custom install script '/usr/bin/python3.11 /tmp/portage/sys-auth/polkit-122/work/polkit-122/meson_post_install.py bin share/polkit-1 lib/polkit-1 /etc/polkit-1 polkitd'
--- stdout ---

--- stderr ---
Traceback (most recent call last):
  File "/tmp/portage/sys-auth/polkit-122/work/polkit-122/meson_post_install.py", line 33, in <module>
    os.chown(dst, 0, -1)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/portage/sys-auth/polkit-122/image/usr/bin/pkexec'

FAILED: install script '/usr/bin/python3.11 /tmp/portage/sys-auth/polkit-122/work/polkit-122/meson_post_install.py bin share/polkit-1 lib/polkit-1 /etc/polkit-1 polkitd' exit code 1, stopped
 * ERROR: sys-auth/polkit-122::gentoo failed (install phase):
 *   install failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_install
 *   environment, line 3123:  Called meson_src_install
 *   environment, line 2206:  Called meson_install
 *   environment, line 2144:  Called die
 * The specific snippet of code:
 *       "$@" || die "install failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-auth/polkit-122::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-auth/polkit-122::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/sys-auth/polkit-122:20221207-130327.log'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/sys-auth/polkit-122/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/sys-auth/polkit-122/temp/environment'.
 * Working directory: '/tmp/portage/sys-auth/polkit-122/work/polkit-122'
 * S: '/tmp/portage/sys-auth/polkit-122/work/polkit-122'
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (sys-auth/polkit-122:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/build/sys-auth/polkit-122:20221207-130327.log'
 *
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-07 13:15:06 UTC
In future, please attach the full build.log (which contains additional information), and include emerge --info.

Anyway, reproduced.
Comment 2 Larry the Git Cow gentoo-dev 2022-12-07 13:23:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57c54478ee91f5dd76c0d0a47f93b160bb0b49c3

commit 57c54478ee91f5dd76c0d0a47f93b160bb0b49c3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-07 13:20:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-07 13:20:41 +0000

    sys-auth/polkit: fix install w/ USE=-daemon
    
    Closes: https://bugs.gentoo.org/884701
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/polkit-122-libs-only-postinstall.patch   | 39 ++++++++++++++++++++++
 sys-auth/polkit/polkit-122.ebuild                  |  7 +++-
 2 files changed, 45 insertions(+), 1 deletion(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-07 19:38:29 UTC
*** Bug 884763 has been marked as a duplicate of this bug. ***