Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520026 - net-libs/ftplib-4.0-r1 - /bin/sh: line 0: cd: /gentoo/tmp/portage/net-libs/ftplib-4.0-r1/image//usr/lib64: Not a directory
Summary: net-libs/ftplib-4.0-r1 - /bin/sh: line 0: cd: /gentoo/tmp/portage/net-libs/ft...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2019-05-13
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PMASKED
: 596710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-16 03:27 UTC by Erik Zeek
Modified: 2019-05-15 20:08 UTC (History)
8 users (show)

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


Attachments
net-libs:ftplib-4.0-r1:20140816-024229.log.gz (net-libs:ftplib-4.0-r1:20140816-024229.log.gz,2.48 KB, application/gzip)
2014-08-16 03:27 UTC, Erik Zeek
Details
emerge --info (emerge-info.txt,13.41 KB, text/plain)
2014-08-16 03:28 UTC, Erik Zeek
Details
Patch for the ebuild to make it work with multilib (ftplib-4.0-r1.patch,576 bytes, patch)
2015-04-02 08:23 UTC, Guillaume LE VAILLANT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2014-08-16 03:27:36 UTC
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'
Comment 1 Erik Zeek 2014-08-16 03:28:32 UTC
Created attachment 382956 [details]
emerge --info
Comment 2 Guillaume LE VAILLANT 2015-04-02 08:23:34 UTC
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.
Comment 3 Pacho Ramos gentoo-dev 2018-03-01 10:57:16 UTC
*** Bug 596710 has been marked as a duplicate of this bug. ***
Comment 4 Sławomir Nizio 2018-08-14 19:25:08 UTC
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.
Comment 5 Larry the Git Cow gentoo-dev 2019-04-13 09:00:23 UTC
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(+)
Comment 6 Larry the Git Cow gentoo-dev 2019-05-15 20:08:18 UTC
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(-)