Skip to content

Commit 1d1cebd

Browse files
dpkg: fix cross build
1 parent d9e9853 commit 1d1cebd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkgs/by-name/dp/dpkg/package.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@ stdenv.mkDerivation rec {
4949
for i in $(find . -name Makefile.in); do
5050
substituteInPlace $i --replace "install-data-local:" "disabled:" ;
5151
done
52+
53+
# Skip check broken when cross-compiling.
54+
substituteInPlace configure \
55+
--replace-fail 'as_fn_error $? "cannot find a GNU tar program"' "#"
5256
'';
5357

5458
postPatch = ''
55-
patchShebangs .
59+
patchShebangs --host .
5660
5761
# Dpkg commands sometimes calls out to shell commands
5862
substituteInPlace lib/dpkg/dpkg.h \

0 commit comments

Comments
 (0)