diff --git a/srcpkgs/syslinux/patches/fix-build-with-glibc-2.28.patch b/srcpkgs/syslinux/patches/fix-build-with-glibc-2.28.patch new file mode 100644 index 00000000000..a9d1e7ec469 --- /dev/null +++ b/srcpkgs/syslinux/patches/fix-build-with-glibc-2.28.patch @@ -0,0 +1,34 @@ +From 1a74985b2a404639b08882c57f3147229605dfd5 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Tue, 19 Apr 2016 06:50:31 -0400 +Subject: [PATCH] extlinux: pull in sys/sysmacros.h for major/minor/makedev + +These functions are defined in sys/sysmacros.h, so add the include to +main.c. This is already handled correctly in mountinfo.c. Otherwise +we get build failures like: + +main.o: In function 'find_device_sysfs': +extlinux/main.c:1131: undefined reference to 'minor' + +Signed-off-by: Mike Frysinger +Signed-off-by: Gene Cumm +--- + extlinux/main.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/extlinux/main.c b/extlinux/main.c +index a7ebd49..ebff7ea 100644 +--- a/extlinux/main.c ++++ b/extlinux/main.c +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +2.10.5.GIT + + diff --git a/srcpkgs/syslinux/template b/srcpkgs/syslinux/template index 55de729c8bf..4636f9b799e 100644 --- a/srcpkgs/syslinux/template +++ b/srcpkgs/syslinux/template @@ -2,13 +2,14 @@ pkgname=syslinux version=6.03 revision=6 +patch_args="-Np1" hostmakedepends="perl python nasm" makedepends="gnu-efi-libs libuuid-devel" short_desc="A boot loader for the Linux operating system" maintainer="Juan RP " homepage="http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project" license="GPL-2" -distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz" +distfiles="${KERNEL_SITE}/utils/boot/${pkgname}/${pkgname}-${version}.tar.xz" checksum=26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e only_for_archs="i686 i686-musl x86_64 x86_64-musl" nopie=yes