Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514258 - sys-fabric/libnes-1.1.4: broken distfile
Summary: sys-fabric/libnes-1.1.4: broken distfile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
: 587556 668026 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-06-21 22:51 UTC by Patrick Lauer
Modified: 2021-05-16 19:35 UTC (History)
3 users (show)

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


Attachments
Workaround ebuild (libnes-1.1.4.ebuild,728 bytes, text/plain)
2017-01-08 20:59 UTC, Elliot Chandler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2014-06-21 22:51:33 UTC
* Package:    sys-infiniband/libnes-1.1.4
 * Repository: gentoo
 * Maintainer: cluster@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking OFED-3.12-rc1.tgz to /var/tmp/portage/sys-infiniband/libnes-1.1.4/work
>>> Unpacking ./OFED-3.12-rc1/SRPMS/libnes-1.1.4-0.src.rpm to /var/tmp/portage/sys-infiniband/libnes-1.1.4/work
/usr/bin/rpm2tar: line 156: ./OFED-3.12-rc1/SRPMS/libnes-1.1.4-0.src.rpm: No such file or directory
rpm2tar: warning: unable to locate cpio offset (broken/unknown compression?)
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: sys-infiniband/libnes-1.1.4::gentoo failed (unpack phase):
 *   failure unpacking ./OFED-3.12-rc1/SRPMS/libnes-1.1.4-0.src.rpm
Comment 1 Toralf Förster gentoo-dev 2016-04-27 13:21:08 UTC
still valid :#


tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: sys-infiniband/libnes-1.1.4::gentoo failed (unpack phase):
 *   failure unpacking ./OFED-3.12-rc1/SRPMS/libnes-1.1.4-0.src.rpm
 * 
 * Call stack:

versions: ~1.1.3-r1 ~1.1.4
assignee: cluster@gentoo.org
cc:
Comment 2 Elliot Chandler 2017-01-08 20:58:27 UTC
The problem is that the filename chosen to unpack is libnes-1.1.4-0.src.rpm, while the real file name is libnes-1.1.4-0..src.rpm (note the extra dot).

The problem can be worked around by specifying src_unpack in the ebuild as follows:

src_unpack() {
    unpack ${A}
    rpm_unpack "./OFED-${OFED_VER}-rc${OFED_RC_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}..src.rpm"
    unpack "./${P}.tar.gz"
}

(a copy of the resulting ebuild is attached).
Comment 3 Elliot Chandler 2017-01-08 20:59:35 UTC
Created attachment 459230 [details]
Workaround ebuild
Comment 4 Ben Kohler gentoo-dev 2017-10-09 19:23:32 UTC
*** Bug 587556 has been marked as a duplicate of this bug. ***
Comment 5 Toralf Förster gentoo-dev 2018-05-21 16:29:24 UTC
package is still broken :/
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-16 19:10:42 UTC
*** Bug 668026 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2021-05-16 19:35:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa389198640ebfa07fb43bcb32403b77de7a815b

commit aa389198640ebfa07fb43bcb32403b77de7a815b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-16 19:14:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-16 19:34:59 +0000

    sys-fabric/libnes: fix broken src_unpack
    
    Closes: https://bugs.gentoo.org/514258
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fabric/libnes/libnes-1.1.4.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)