Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775914 - autotools.eclass: config_rpath_update may error on merged-usr systems with merged bin+sbin
Summary: autotools.eclass: config_rpath_update may error on merged-usr systems with me...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-03-14 07:41 UTC by Denis Lisov
Modified: 2021-03-21 15:17 UTC (History)
3 users (show)

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


Attachments
Patch (autotools.eclass.patch,1.14 KB, patch)
2021-03-14 10:28 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Lisov 2021-03-14 07:41:57 UTC
Bug observed with sci-libs/gdal-3.2.2::gentoo

 * Updating all config.rpath files
 *    .
cp: cannot stat '/usr/sshare/gettext/config.rpath': No such file or directory
 * ERROR: sci-libs/gdal-3.2.2::gentoo failed (prepare phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_prepare
 *   environment, line 5931:  Called config_rpath_update '.'
 *   environment, line 1487:  Called die
 * The specific snippet of code:
 *           cp "${src}" "${dst}" || die;


is likely caused by `type -P gettext` returning /usr/sbin/gettext, which is valid on a system with symlink /usr/sbin -> bin (as well as /bin -> usr/bin and /sbin -> usr/sbin)

From `emerge --info`:
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/lib/llvm/11/bin:/usr/lib/llvm/10/bin"

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2021-03-14 08:42:12 UTC
>/usr/sshare/gettext/config.rpath
/usr/sbin/gettext would indeed cause that:
$(type -P gettext | sed 's:bin/gettext:share/gettext/config.rpath:')
Comment 2 Arfrever Frehtes Taifersar Arahesis 2021-03-14 10:28:35 UTC
Created attachment 691338 [details, diff]
Patch
Comment 3 Denis Lisov 2021-03-21 14:58:13 UTC
Could you please clarify what the next steps on this bug should be? Is it waiting on someone?
Comment 4 Larry the Git Cow gentoo-dev 2021-03-21 15:17:14 UTC
The bug has been closed via the following commit(s):

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

commit a3b13fc187a4f7d428dccb6f6fcbc95565e9a64f
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2021-03-14 10:00:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-03-21 15:15:54 +0000

    autotools.eclass: config_rpath_update(): Fix path to config.rpath.
    
    Closes: https://bugs.gentoo.org/775914
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 eclass/autotools.eclass | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)