Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 937463

Summary: sys-apps/gentoo-functions-1.7.1: installs files outside of EPREFIX
Product: Gentoo Linux Reporter: Fabian Groffen <grobian>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: grobian, kfm, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Other   
URL: https://codeberg.org/kerframil/gentoo-functions/commit/ca3e8e0d5e90f57bf1e0276264eca37032f3d515
Whiteboard:
Package list:
Runtime testing required: ---

Description Fabian Groffen gentoo-dev 2024-08-06 19:51:38 UTC
* QA Notice: the following files are outside of the prefix:
 * /lib
 * /lib/gentoo
 * /lib/gentoo/functions
 * /lib/gentoo/functions/rc.sh
 * /lib/gentoo/functions/portage.sh
 * /lib/gentoo/functions/experimental.sh
 * ERROR: sys-apps/gentoo-functions-1.7.1::gentoo failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *   misc-functions.sh, line 848:  Called install_qa_check
 *   misc-functions.sh, line 134:  Called source 'install_symlink_html_docs'
 *            05prefix, line 118:  Called install_qa_check_prefix
 *            05prefix, line  27:  Called die
 * The specific snippet of code:
 *                      die "Aborting due to QA concerns: there are files installed outside the prefix"


I'm not sure if it is the correct way but if I apply this sed the files are installed where it looks correct:

    sed -i -e 's:/lib/gentoo:lib/gentoo:' meson.build || die

Please advise what is the correct way to fix this.

Thanks
Comment 1 kfm 2024-08-07 01:34:50 UTC
I am by no means a meson expert but having it be a relative path does appear to be the appropriate fix, indeed. Thanks.
Comment 2 kfm 2024-08-07 01:48:41 UTC
Updating the URL. It rectifies a typo in the commit message that I thought I had already force-pushed.
Comment 3 Fabian Groffen gentoo-dev 2024-08-07 06:20:36 UTC
@maintainer: preference on how to push this fix? patch to ebuild?
Comment 4 Larry the Git Cow gentoo-dev 2024-08-07 06:23:14 UTC
The bug has been referenced in the following commit(s):

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

commit 7afb263638d501ad69ed72d7982cb2878668e2cd
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-08-07 06:21:47 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-08-07 06:22:54 +0000

    profiles/prefix/package.mask: mask gentoo-functions-1.7 and up
    
    These versions install files out of prefix, currently breaking the
    bootstrap process.
    
    Bug: https://bugs.gentoo.org/937463
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 profiles/prefix/package.mask | 4 ++++
 1 file changed, 4 insertions(+)