Merge pull request #271462 from yaxitech/fakeroot_1.32.2

fakeroot: 1.29 -> 1.32.2
This commit is contained in:
Martin Weinelt 2024-07-20 16:09:18 +02:00 committed by GitHub
commit ebcc625ca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 11 deletions

View File

@ -101,6 +101,7 @@ buildPerlPackage rec {
./Build install
for f in $out/bin/*; do
substituteInPlace $f --replace "#! /usr/bin/env perl" "#!${perl}/bin/perl"
substituteInPlace $f --replace "exec perl" "exec ${perl}/bin/perl"
done
'';

View File

@ -1,31 +1,31 @@
{ lib
, coreutils
, stdenv
, fetchurl
, fetchFromGitLab
, fetchpatch
, getopt
, libcap
, gnused
, nixosTests
, testers
, autoreconfHook
, po4a
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.29";
version = "1.32.2";
pname = "fakeroot";
src = fetchurl {
url = "http://http.debian.net/debian/pool/main/f/fakeroot/fakeroot_${finalAttrs.version}.orig.tar.gz";
sha256 = "sha256-j7uvt4DJFz46zkoEr7wdkA8zfzIWiDk59cfbNDG+fCA=";
src = fetchFromGitLab {
owner = "clint";
repo = "fakeroot";
rev = "upstream/${finalAttrs.version}";
domain = "salsa.debian.org";
hash = "sha256-j1qSMPNCtAxClqYqWkRNQmtxkitYi7g/9KtQ5XqcX3w=";
};
patches = lib.optionals stdenv.isLinux [
./einval.patch
(fetchpatch {
name = "also-wrap-stat-library-call.patch";
url = "https://sources.debian.org/data/main/f/fakeroot/1.29-1/debian/patches/also-wrap-stat-library-call.patch";
sha256 = "0p7lq6m31k3rqsnjbi06a8ykdqa3cp4y5ngsjyk3q1269gx59x8b";
})
# patches needed for musl libc, borrowed from alpine packaging.
# it is applied regardless of the environment to prevent patchrot
@ -41,6 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
})
];
nativeBuildInputs = [ autoreconfHook po4a ];
buildInputs = lib.optional (!stdenv.isDarwin) libcap;
postUnpack = ''
@ -50,7 +51,13 @@ stdenv.mkDerivation (finalAttrs: {
-e 's@kill@${coreutils}/bin/kill@g' \
-e 's@/bin/ls@${coreutils}/bin/ls@g' \
-e 's@cut@${coreutils}/bin/cut@g' \
fakeroot-${finalAttrs.version}/scripts/fakeroot.in
source/scripts/fakeroot.in
'';
postConfigure = ''
pushd doc
po4a -k 0 --variable "srcdir=../doc/" po4a/po4a.cfg
popd
'';
passthru = {