Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2022 21:32:41 +0100
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        emulation@freebsd.org
Subject:   Re: [package - 130i386-default][lang/linux-c7-tcl85] Failed for linux-c7-tcl85-8.5.13_1 in package
Message-ID:  <YjTsadDhaB8SVWPu@elch.exwg.net>
In-Reply-To: <202203172055.22HKtc7L034016@beefy15.nyi.freebsd.org>
References:  <202203172055.22HKtc7L034016@beefy15.nyi.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
## pkg-fallout@FreeBSD.org (pkg-fallout@FreeBSD.org):
> [130i386-default-job-12] |   `-- Installing libgpg-error-1.44...
> [130i386-default-job-12] |   `-- Extracting libgpg-error-1.44: .......... done
> <snip>
> pkg-static: Unable to access file /wrkdirs/usr/ports/lang/linux-c7-tcl85/work/stage/compat/linux/usr/share/tcl8.5/encoding/cp936.enc:No such file or directory

The intersting part has been snipped...
This fallout is caused by the recent update to archivers/rpm4 - since
rpm 4.17 rpm2archive doesn't operate on stdin by default anymore, you
have to explicitely specify "-" as input file.

This fixes the problem:

diff --git a/Mk/Uses/linux.mk b/Mk/Uses/linux.mk
index f1fbd6ca49fa..28ce77dc89b1 100644
--- a/Mk/Uses/linux.mk
+++ b/Mk/Uses/linux.mk
@@ -236,7 +236,7 @@ SRC_DISTFILES?=             ${DISTNAME}${SRC_SUFX}:SOURCE
 .ifdef USE_LINUX_RPM_BAD_PERMS
 EXTRACT_DEPENDS+=      rpm2archive:archivers/rpm4
 EXTRACT_CMD=           rpm2archive
-EXTRACT_BEFORE_ARGS=   <
+EXTRACT_BEFORE_ARGS=   - <
 EXTRACT_AFTER_ARGS=    | ${TAR} xf - --no-same-owner --no-same-permissions
 .endif

I'd commit this myself, but as it's infrastructure - any downvotes?

Regards,
Christoph

-- 
Spare Space



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YjTsadDhaB8SVWPu>