mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #318981 from K900/syslinux-fix
syslinux: pick proposed patch to fix build on gnu-efi >= 3.0.17
This commit is contained in:
commit
aa1ebdaf49
@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, buildPackages, fetchFromGitHub, pciutils
|
||||
, gitUpdater }:
|
||||
, gitUpdater, fwupd-efi, ipxe, refind, syslinux }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnu-efi";
|
||||
@ -27,9 +27,14 @@ stdenv.mkDerivation rec {
|
||||
--replace "-Werror" ""
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
# No nicer place to find latest release.
|
||||
url = "https://git.code.sf.net/p/gnu-efi/code";
|
||||
passthru = {
|
||||
updateScript = gitUpdater {
|
||||
# No nicer place to find latest release.
|
||||
url = "https://git.code.sf.net/p/gnu-efi/code";
|
||||
};
|
||||
tests = {
|
||||
inherit fwupd-efi ipxe refind syslinux;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -69,6 +69,8 @@ stdenv.mkDerivation {
|
||||
"sha256-dVzXBi/oSV9vYgU85mRFHBKuZdup+1x1BipJX74ED7E=")
|
||||
# Fixes build with "modern" gnu-efi
|
||||
./import-efisetjmp.patch
|
||||
# Upstream patch: https://www.syslinux.org/archives/2024-February/026903.html
|
||||
./define-wchar_t.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
11
pkgs/os-specific/linux/syslinux/define-wchar_t.patch
Normal file
11
pkgs/os-specific/linux/syslinux/define-wchar_t.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff --git a/com32/include/stddef.h b/com32/include/stddef.h
|
||||
index f52d62f3..437b11f2 100644
|
||||
--- a/com32/include/stddef.h
|
||||
+++ b/com32/include/stddef.h
|
||||
@@ -29,4 +29,6 @@
|
||||
*/
|
||||
#define container_of(p, c, m) ((c *)((char *)(p) - offsetof(c,m)))
|
||||
|
||||
+typedef short wchar_t;
|
||||
+
|
||||
#endif /* _STDDEF_H */
|
Loading…
Reference in New Issue
Block a user