* 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
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:
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).
Created attachment 459230 [details] Workaround ebuild
*** Bug 587556 has been marked as a duplicate of this bug. ***
package is still broken :/
*** Bug 668026 has been marked as a duplicate of this bug. ***
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(-)