forked from mirrors/nixpkgs
syslinux: fix build with new binutils
Also fix the URL of the other patch.
This commit is contained in:
parent
34a936340f
commit
79a7cd6c55
|
@ -10,15 +10,24 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0wk3r5ki4lc334f9jpml07wpl8d0bnxi9h1l4h4fyf9a0d7n4kmw";
|
||||
};
|
||||
|
||||
patches = [
|
||||
patches = let
|
||||
mkURL = commit: patchName:
|
||||
"https://salsa.debian.org/images-team/syslinux/raw/${commit}/debian/patches/"
|
||||
+ patchName;
|
||||
in [
|
||||
./perl-deps.patch
|
||||
(fetchurl {
|
||||
# ldlinux.elf: Not enough room for program headers, try linking with -N
|
||||
name = "not-enough-room.patch";
|
||||
url = "https://anonscm.debian.org/cgit/collab-maint/syslinux.git/plain/"
|
||||
+ "debian/patches/0014_fix_ftbfs_no_dynamic_linker.patch?id=a556ad7";
|
||||
url = mkURL "a556ad7" "0014_fix_ftbfs_no_dynamic_linker.patch";
|
||||
sha256 = "0ijqjsjmnphmvsx0z6ppnajsfv6xh6crshy44i2a5klxw4nlvrsw";
|
||||
})
|
||||
(fetchurl {
|
||||
# mbr.bin: too big (452 > 440)
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
|
||||
url = mkURL "7468ef0e38c43" "0016-strip-gnu-property.patch";
|
||||
sha256 = "17n63b8wz6szv8npla1234g1ip7lqgzx2whrpv358ppf67lq8vwm";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
|
Loading…
Reference in a new issue