tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gcc*-libs help needed: rpath needs fixing
Hi!
The gcc*-libs packages (used when USE_PKGSRC_GCC_RUNTIME is set, to
avoid pulling in the corresponding big gcc* package) are currently
done by just repackaging the libraries included in the corresponding
gcc* base package; but they are installed in a different location.
To compare:
# pkg_info -L /packages/All/gcc14-libs-14.2.0nb1.tgz
Information for /packages/All/gcc14-libs-14.2.0nb1.tgz:
Files:
/usr/pkg/gcc14/x86_64--netbsd/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcc1plugin.so
/usr/pkg/gcc14/x86_64--netbsd/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcc1plugin.so.0
/usr/pkg/gcc14/x86_64--netbsd/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcc1plugin.so.0.0
/usr/pkg/gcc14/x86_64--netbsd/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcp1plugin.so
/usr/pkg/gcc14/x86_64--netbsd/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcp1plugin.so.0
/usr/pkg/gcc14/x86_64--netbsd/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcp1plugin.so.0.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libatomic.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libatomic.so.3
/usr/pkg/gcc14/x86_64--netbsd/lib/libatomic.so.3.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libcc1.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libcc1.so.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libcc1.so.0.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libgfortran.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libgfortran.so.5
/usr/pkg/gcc14/x86_64--netbsd/lib/libgfortran.so.5.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libgomp.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libgomp.so.1
/usr/pkg/gcc14/x86_64--netbsd/lib/libgomp.so.1.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libitm.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libitm.so.1
/usr/pkg/gcc14/x86_64--netbsd/lib/libitm.so.1.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libobjc.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libobjc.so.4
/usr/pkg/gcc14/x86_64--netbsd/lib/libobjc.so.4.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libquadmath.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libquadmath.so.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libquadmath.so.0.0
/usr/pkg/gcc14/x86_64--netbsd/lib/libstdc++.so
/usr/pkg/gcc14/x86_64--netbsd/lib/libstdc++.so.7
/usr/pkg/gcc14/x86_64--netbsd/lib/libstdc++.so.7.33
/usr/pkg/gcc14/x86_64--netbsd/lib/libstdc++.so.7.33-gdb.py
# pkg_info -L /packages/All/gcc14-14.2.0.tgz | grep /lib/.*so
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/include/iso646.h
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/include/json.h
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/include/optinfo-emit-json.h
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/include/resource.h
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/include/tree-ssa-reassoc.h
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcc1plugin.so
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcc1plugin.so.0
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcc1plugin.so.0.0
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcp1plugin.so
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcp1plugin.so.0
/usr/pkg/gcc14/lib/gcc/x86_64--netbsd/14.2.0/plugin/libcp1plugin.so.0.0
/usr/pkg/gcc14/lib/libatomic.so
/usr/pkg/gcc14/lib/libatomic.so.3
/usr/pkg/gcc14/lib/libatomic.so.3.0
/usr/pkg/gcc14/lib/libcc1.so
/usr/pkg/gcc14/lib/libcc1.so.0
/usr/pkg/gcc14/lib/libcc1.so.0.0
/usr/pkg/gcc14/lib/libgfortran.so
/usr/pkg/gcc14/lib/libgfortran.so.5
/usr/pkg/gcc14/lib/libgfortran.so.5.0
/usr/pkg/gcc14/lib/libgomp.so
/usr/pkg/gcc14/lib/libgomp.so.1
/usr/pkg/gcc14/lib/libgomp.so.1.0
/usr/pkg/gcc14/lib/libitm.so
/usr/pkg/gcc14/lib/libitm.so.1
/usr/pkg/gcc14/lib/libitm.so.1.0
/usr/pkg/gcc14/lib/libobjc.so
/usr/pkg/gcc14/lib/libobjc.so.4
/usr/pkg/gcc14/lib/libobjc.so.4.0
/usr/pkg/gcc14/lib/libquadmath.so
/usr/pkg/gcc14/lib/libquadmath.so.0
/usr/pkg/gcc14/lib/libquadmath.so.0.0
/usr/pkg/gcc14/lib/libstdc++.so
/usr/pkg/gcc14/lib/libstdc++.so.7
/usr/pkg/gcc14/lib/libstdc++.so.7.33
/usr/pkg/gcc14/lib/libstdc++.so.7.33-gdb.py
This does not work any longer with the latest pkg_install tools, since
they check the REQUIRES first. These are based on the rpath, and have
not been adapted to the new location, i.e. they still have the same
rpath that they had when compiled for a different location for the
base gcc* package.
# pkg_add /packages/All/gcc14-libs-14.2.0nb1.tgz
pkg_add: Missing required library: /usr/pkg/gcc14//lib/./libquadmath.so.0
pkg_add: Missing required library: /usr/pkg/gcc14//lib/./libstdc++.so.7
pkg_add: 1 package addition failed
Can someone please fix the gcc*libs packages so that the rpath is correct?
# readelf -a gcc14/x86_64--netbsd/lib/libatomic.so| grep -i rpath
0x000000000000000f (RPATH) Library rpath: [/usr/pkg/gcc14//lib/.:/usr/pkg/gcc14/lib/.:/usr/pkg/lib]
This should be /usr/pkg/gcc14/x86_64--netbsd/lib/ instead of /usr/pkg/gcc14/lib/
Thanks,
Thomas
Home |
Main Index |
Thread Index |
Old Index