Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5ed3474ca5d8
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 32938359f328
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 19, 2020

  1. syslinux: 2015-11-09 -> 2019-02-07

    lblasc authored and samueldr committed Jan 19, 2020
    Copy the full SHA
    13555cb View commit details
  2. Merge pull request #77703 from lblasc/syslinux

    syslinux: 2015-11-09 -> 2019-02-07
    samueldr authored Jan 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3293835 View commit details
Showing with 18 additions and 95 deletions.
  1. +18 −14 pkgs/os-specific/linux/syslinux/default.nix
  2. +0 −81 pkgs/os-specific/linux/syslinux/perl-deps.patch
32 changes: 18 additions & 14 deletions pkgs/os-specific/linux/syslinux/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{ stdenv, fetchFromGitHub, fetchurl, nasm, perl, python, libuuid, mtools, makeWrapper }:
{ stdenv, fetchFromRepoOrCz, fetchurl, nasm, perl, python3, libuuid, mtools, makeWrapper }:

stdenv.mkDerivation {
name = "syslinux-2015-11-09";
name = "syslinux-2019-02-07";

src = fetchFromGitHub {
owner = "geneC";
# This is syslinux-6.04-pre3^1; syslinux-6.04-pre3 fails to run.
# Same issue here https://www.syslinux.org/archives/2019-February/026330.html
src = fetchFromRepoOrCz {
repo = "syslinux";
rev = "0cc9a99e560a2f52bcf052fd85b1efae35ee812f";
sha256 = "0wk3r5ki4lc334f9jpml07wpl8d0bnxi9h1l4h4fyf9a0d7n4kmw";
rev = "b40487005223a78c3bb4c300ef6c436b3f6ec1f7";
sha256 = "1qrxl1114sr2i2791z9rf8v53g200aq30f08808d7i8qnmgvxl2w";
};

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 = mkURL "a556ad7" "0014_fix_ftbfs_no_dynamic_linker.patch";
sha256 = "0ijqjsjmnphmvsx0z6ppnajsfv6xh6crshy44i2a5klxw4nlvrsw";
url = mkURL "fa1349f1" "0002-gfxboot-menu-label.patch";
sha256 = "06ifgzbpjj4picpj17zgprsfi501zf4pp85qjjgn29i5rs291zni";
})
(fetchurl {
url = mkURL "477e56d2" "0005-gnu-efi-version-compatibility.patch";
sha256 = "041568b4abb79wynyps1n04lg4fr26rc3sbjncz99pp0mbz0ajlm";
})
(fetchurl {
# mbr.bin: too big (452 > 440)
@@ -33,20 +35,22 @@ stdenv.mkDerivation {
url = mkURL "012e1dd312eb" "0017-single-load-segment.patch";
sha256 = "0azqzicsjw47b9ppyikhzaqmjl4lrvkxris1356bkmgcaiv6d98b";
})
(fetchurl {
url = mkURL "26f0e7b2" "0018-prevent-pow-optimization.patch";
sha256 = "1c8g0jz5yj9a0rsmryx9vdjsw4hw8mjfcg05c9pmyjg85w3dfp3m";
})
];

postPatch = ''
substituteInPlace Makefile --replace /bin/pwd $(type -P pwd)
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
substituteInPlace utils/ppmtolss16 --replace /usr/bin/perl $(type -P perl)
substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
# fix tests
substituteInPlace tests/unittest/include/unittest/unittest.h \
--replace /usr/include/ ""
'';

nativeBuildInputs = [ nasm perl python ];
nativeBuildInputs = [ nasm perl python3 ];
buildInputs = [ libuuid makeWrapper ];

enableParallelBuilding = false; # Fails very rarely with 'No rule to make target: ...'
81 changes: 0 additions & 81 deletions pkgs/os-specific/linux/syslinux/perl-deps.patch

This file was deleted.