Created attachment 382954 [details] net-libs:ftplib-4.0-r1:20140816-024229.log.gz I've successfully installed it in the past, but it's failing now. >>> Install ftplib-4.0-r1 into /gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image/ category net-libs * abi_x86_32.x86: running multilib-minimal_abi_src_install make -j8 --load-average=18 -C src DESTDIR=/gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image/ install make: Entering directory '/gentoo/tmp/portage/net-libs/ftplib-4.0-r1/work/ftplib-4.0-abi_x86_32.x86/src' install qftp /gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image//usr/bin install -m 644 libftp.so.4.0 /gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image//usr/lib64 install -m 644 ftplib.h /gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image//usr/include (cd /gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image//usr/lib64 && \ ln -sf libftp.so.4.0 libftp.so.4 && \ ln -sf libftp.so.4 libftp.so) /bin/sh: line 0: cd: /gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image//usr/lib64: Not a directory Makefile:32: recipe for target 'install' failed make: *** [install] Error 1 make: Leaving directory '/gentoo/tmp/portage/net-libs/ftplib-4.0-r1/work/ftplib-4.0-abi_x86_32.x86/src'
Created attachment 382956 [details] emerge --info
Created attachment 400368 [details, diff] Patch for the ebuild to make it work with multilib I tried to emerge ftplib in a multilib environment (x86_32/x86_64) and it failed. Apparently the bug comes from the fact that calling the get_libdir function in src_prepare always returns the path /usr/lib64 on a x86_64 machine (and apparently there is no multilib_src_prepare function). So by moving the modification of the Makefile in multilib_src_configure, we can have get_libdir return the right path for each architecture, and install the package successfully.
*** Bug 596710 has been marked as a duplicate of this bug. ***
Problem seems to be that it does first sed on makefile to patch lib to $(get_libdir) which is often lib64, but then does for each abis src_install: -> for x86 it expects lib64 as per patched makefile but dodir created lib32. In short, the first sed in makefile is not multi-abi aware.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6382bf6661617ec710f0094aae4a1bc128ff0aba commit 6382bf6661617ec710f0094aae4a1bc128ff0aba Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-04-13 08:59:13 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-04-13 09:00:19 +0000 package.mask: Last rite media-video/hasciicam, net-libs/ftplib Bug: https://bugs.gentoo.org/520026 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/base/package.use.mask | 4 ++++ profiles/package.mask | 14 ++++++++++++++ 2 files changed, 18 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17b38bb4fca9724972ad0e3a67fe1313debaf573 commit 17b38bb4fca9724972ad0e3a67fe1313debaf573 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-05-15 20:06:19 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-05-15 20:07:56 +0000 net-libs/ftplib: Remove last-rited pkg Closes: https://bugs.gentoo.org/520026 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-libs/ftplib/Manifest | 3 - net-libs/ftplib/files/ftplib-4.0-crash.patch | 116 --------------------------- net-libs/ftplib/ftplib-3.1.1.ebuild | 43 ---------- net-libs/ftplib/ftplib-4.0-r1.ebuild | 45 ----------- net-libs/ftplib/ftplib-4.0.ebuild | 36 --------- net-libs/ftplib/metadata.xml | 7 -- profiles/package.mask | 8 -- 7 files changed, 258 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54ce7278760799007cdf4d754f32a6b8973ab411 commit 54ce7278760799007cdf4d754f32a6b8973ab411 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-05-15 20:06:04 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-05-15 20:07:55 +0000 media-video/hasciicam: Remove last-rited pkg Closes: https://bugs.gentoo.org/520026 Signed-off-by: Michał Górny <mgorny@gentoo.org> media-video/hasciicam/Manifest | 2 -- media-video/hasciicam/hasciicam-1.1.1.ebuild | 19 ------------------- media-video/hasciicam/hasciicam-1.1.2.ebuild | 20 -------------------- media-video/hasciicam/metadata.xml | 7 ------- profiles/package.mask | 6 ------ 5 files changed, 54 deletions(-)