Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793818 - acct-user/root-0-r2: The ebuild is installing to one or more unexpected paths: /root
Summary: acct-user/root-0-r2: The ebuild is installing to one or more unexpected paths...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 06:28 UTC by Sergei Trofimovich (RETIRED)
Modified: 2023-09-02 05:26 UTC (History)
4 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 Sergei Trofimovich (RETIRED) gentoo-dev 2021-06-02 06:28:53 UTC
Every time acct-user/root is installed emerge complains about incorrect path being used:

>>> Emerging (1 of 1) acct-user/root-0-r1::gentoo
>>> Unpacking source...
>>> Source unpacked in /dev/shm/portage/acct-user/root-0-r1/work
>>> Preparing source in /dev/shm/portage/acct-user/root-0-r1/work ...
>>> Source prepared.
>>> Configuring source in /dev/shm/portage/acct-user/root-0-r1/work ...
>>> Source configured.
>>> Compiling source in /dev/shm/portage/acct-user/root-0-r1/work ...
>>> Source compiled.
>>> Test phase [not enabled]: acct-user/root-0-r1

>>> Install acct-user/root-0-r1 into /dev/shm/portage/acct-user/root-0-r1/image
>>> Completed installing acct-user/root-0-r1 into /dev/shm/portage/acct-user/root-0-r1/image

 * Final size of build directory: 0 KiB
 * Final size of installed tree:  4 KiB

 * The ebuild is installing to one or more unexpected paths:
 *
 *   /root
 *
 * Please fix the ebuild to use correct FHS/Gentoo policy paths.

>>> Installing (1 of 1) acct-user/root-0-r1::gentoo
 * checking 2 files for package collisions
>>> Merging acct-user/root-0-r1 to /
--- /root/
>>> /root/.keep_acct-user_root-0
--- /usr/
--- /usr/lib/
--- /usr/lib/sysusers.d/
>>> /usr/lib/sysusers.d/acct-user-root.conf
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /usr/lib/sysusers.d/acct-user-root.conf
--- replaced dir /usr/lib/sysusers.d
--- replaced dir /usr/lib
--- replaced dir /usr
--- replaced obj /root/.keep_acct-user_root-0
--- replaced dir /root
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> acct-user/root-0-r1 merged.

 * Messages for package acct-user/root-0-r1:
 * Log file: /bound/build-logs/acct-user:root-0-r1:20210602-062543.log

 * The ebuild is installing to one or more unexpected paths:
 *
 *   /root
 *
 * Please fix the ebuild to use correct FHS/Gentoo policy paths.
Comment 1 Mike Gilbert gentoo-dev 2021-06-02 14:11:38 UTC
I don't see any way to resolve this in the acct-user/root ebuild itself.

Possible solutions:

1. Modify acct-user.eclass to not call keepdir /root.

2. Modify 08gentoo-paths to silence the warning. It would probably be a good idea to introduce a QA variable to allow individual ebuilds to silence the QA check as needed.

Personally I prefer solution 2.
Comment 2 Agostino Sarubbo gentoo-dev 2023-09-02 05:26:32 UTC
python-3.12_tinderbox has reproduced this issue with version 0-r2 - Updating summary.