gcc-libgcc installation fails on x86_64
Bug #453754 reported by
ojab
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xbps |
Fix Released
|
High
|
Juan RP |
Bug Description
....
=> Preparing gcc subpackage: gcc-libgcc
mv: cannot stat `/home/
=> ERROR: gcc-libgcc do_install stage failed!
$ find /home/ojab/
/home/ojab/
/home/ojab/
xbps should somehow get rid of lib64 or correctly use lib/lib64 on x86_32/x86_64.
Changed in xbps: | |
importance: | Undecided → High |
assignee: | nobody → Juan RP (xtraeme) |
Changed in xbps: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
True, I knew about this problem and in the past I had changed all build templates to use $LIBDIR that had "lib64" value on x86_64.
I'm still not sure how to handle /lib /lib64 on x86_64.
From what I read it seems the correct way is to always use /lib64 and make /lib a symlink of it. Could you try to add in /share/ xbps/shutils/ {configure, build,install} _funcs. sh code to use that? you'll also need to use $LIBDIR in build templates
$(prefix)
that hardcode /lib, something like:
if [ "$xbps_machine" = "x86_64" ]; then
LIBDIR="/lib64"
else
LIBDIR="/lib"
fi
LIBDIR must be set in tmpl_func. sh:set_ tmpl_common_ vars() much like FILESDIR and PATCHESDIR are set.
For package using build_style= gnu_configure, you'll also need to use maybe "--libdir=$LIBDIR".
I know it's a hard task, but can't really test on x86_64 right now.