Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 808781 - sys-apps/portage-3.0.22 QA Notice: package is installing tmpfiles without calling tmpfiles_process in pkg_postinst phase
Summary: sys-apps/portage-3.0.22 QA Notice: package is installing tmpfiles without cal...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tmpfiles-qa
  Show dependency tree
 
Reported: 2021-08-17 18:18 UTC by Agostino Sarubbo
Modified: 2021-08-19 01:35 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,49.27 KB, application/x-xz)
2021-08-17 18:18 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-08-17 18:18:29 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/portage-3.0.22 installs tmpfiles without inheriting tmpfiles.eclass.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Comment 1 Agostino Sarubbo gentoo-dev 2021-08-17 18:18:48 UTC
Created attachment 733609 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Mike Gilbert gentoo-dev 2021-08-17 18:59:48 UTC
It does inherit tmpfiles, it just doesn't call tmpfiles_process.
Comment 3 Mike Gilbert gentoo-dev 2021-08-17 19:01:51 UTC
sys-apps/portage does not need to call tmpfiles_process.

Please update the QA check to exclude this package.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-17 19:28:04 UTC
I suppose it might make sense to make QA check conditional to specific types of tmpfiles.d entries.  I mean, file consisting purely of 'x' entries doesn't need immediate processing indeed.
Comment 5 Larry the Git Cow gentoo-dev 2021-08-19 01:35:00 UTC
The bug has been closed via the following commit(s):

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

commit c6fc517e4bc5649e01af9d10a445338805a0cdfc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-08-19 01:34:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-19 01:34:55 +0000

    metadata/install-qa-check.d: skip some checks when TMPFILES_OPTIONAL is set
    
    This is a good enough proxy for "this package has a complicated
    relationship with tmpfiles" and replaces the hardcoded list of
    exemptions.
    
    Closes: https://bugs.gentoo.org/808781
    Signed-off-by: Sam James <sam@gentoo.org>

 metadata/install-qa-check.d/60tmpfiles-paths | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)