Created attachment 303605 [details, diff] respect libdir properly on exotic platforms Currently numactl does: libdir:=${prefix}/$(shell ./getlibdir) where "getlibdir" is a simple script based on "uname -m". Of course it utterly fails on platforms like ppc64-32ul, prefix etc.
since it could conceivably be used by the build system, we should fix it before configure/compile steps. how about: src_prepare() { echo "echo $(get_libdir)" > getlibdir } or: src_prepare() { sed -i \ -e "/^libdir/s:/.*:$(get_libdir):" \ ... }
(In reply to comment #1) > since it could conceivably be used by the build system, we should fix it > before configure/compile steps. how about: > > src_prepare() { > echo "echo $(get_libdir)" > getlibdir > } Acctually, that ^^ was my first implementation. I've then fallenback to passing libdir to emake just to save space. But you're right replacing getlibdir is definitely safer way.
22 Mar 2012; Mike Frysinger <vapier@gentoo.org> numactl-2.0.7-r1.ebuild: Fix libdir handling and update to EAPI=4 #379849 by Agostino Sarubbo.