Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=9726fb76c83519ebfc851f00c43dd57beca24f48

commit 9726fb76c83519ebfc851f00c43dd57beca24f48
Author: crazy <[email protected]>
Date:   Thu May 11 17:55:36 2017 +0200

syslinux-6.03-1-x86_64
* Version bump

diff --git 
a/source/base-extra/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch 
b/source/base-extra/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch
new file mode 100644
index 0000000..633d996
--- /dev/null
+++ b/source/base-extra/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch
@@ -0,0 +1,82 @@
+From da5cbd1a3b248f2d32281a1766a3d1414c0e8e03 Mon Sep 17 00:00:00 2001
+From: Sylvain Gault <[email protected]>
+Date: Tue, 29 Sep 2015 02:38:25 +0200
+Subject: [PATCH] bios: Fix alignment change with gcc 5
+
+The section aligment specified in the ld scripts have to be greater or
+equal to those in the .o files generated by gcc.
+
+Signed-off-by: Sylvain Gault <[email protected]>
+Tested-by: poma <[email protected]>
+Signed-off-by: Paulo Alcantara <[email protected]>
+Signed-off-by: Frank Hunleth <[email protected]>
+---
+ core/i386/syslinux.ld   | 6 +++---
+ core/x86_64/syslinux.ld | 6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
+index 7b4e012..7390451 100644
+--- a/core/i386/syslinux.ld
++++ b/core/i386/syslinux.ld
+@@ -266,7 +266,7 @@ SECTIONS
+               __text_end = .;
+       }
+
+-      . = ALIGN(16);
++      . = ALIGN(32);
+
+       __rodata_vma = .;
+       __rodata_lma = __rodata_vma + __text_lma - __text_vma;
+@@ -361,7 +361,7 @@ SECTIONS
+               __dynamic_end = .;
+       }
+
+-      . = ALIGN(16);
++      . = ALIGN(32);
+
+       __data_vma = .;
+       __data_lma = __data_vma + __text_lma - __text_vma;
+@@ -377,7 +377,7 @@ SECTIONS
+       __pm_code_dwords = (__pm_code_len + 3) >> 2;
+
+       . = ALIGN(128);
+-
++
+       __bss_vma = .;
+       __bss_lma = .;          /* Dummy */
+       .bss (NOLOAD) : AT (__bss_lma) {
+diff --git a/core/x86_64/syslinux.ld b/core/x86_64/syslinux.ld
+index 1057112..bf815c4 100644
+--- a/core/x86_64/syslinux.ld
++++ b/core/x86_64/syslinux.ld
+@@ -266,7 +266,7 @@ SECTIONS
+               __text_end = .;
+       }
+
+-      . = ALIGN(16);
++      . = ALIGN(32);
+
+       __rodata_vma = .;
+       __rodata_lma = __rodata_vma + __text_lma - __text_vma;
+@@ -361,7 +361,7 @@ SECTIONS
+               __dynamic_end = .;
+       }
+
+-      . = ALIGN(16);
++      . = ALIGN(32);
+
+       __data_vma = .;
+       __data_lma = __data_vma + __text_lma - __text_vma;
+@@ -377,7 +377,7 @@ SECTIONS
+       __pm_code_dwords = (__pm_code_len + 3) >> 2;
+
+       . = ALIGN(128);
+-
++
+       __bss_vma = .;
+       __bss_lma = .;          /* Dummy */
+       .bss (NOLOAD) : AT (__bss_lma) {
+--
+2.7.4
+
diff --git 
a/source/base-extra/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch 
b/source/base-extra/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch
new file mode 100644
index 0000000..64a08b8
--- /dev/null
+++ b/source/base-extra/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch
@@ -0,0 +1,30 @@
+From 250bf2c921713434627dc7bc8b0918fa0841f9b7 Mon Sep 17 00:00:00 2001
+From: Graham Inggs <[email protected]>
+Date: Wed, 5 Apr 2017 22:03:12 +0200
+Subject: [PATCH] Disable PIE to avoid FTBFS on amd64
+
+gcc 6.x has PIE support enabled by default, which causes a build issue
+with syslinux. This patch disables PIE support in the relevant
+syslinux Makefile.
+
+Signed-off-by: Ryan Coe <[email protected]>
+---
+ gpxe/src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gpxe/src/Makefile b/gpxe/src/Makefile
+index cc91d78..077af64 100644
+--- a/gpxe/src/Makefile
++++ b/gpxe/src/Makefile
+@@ -4,7 +4,7 @@
+ #
+
+ CLEANUP               :=
+-CFLAGS                :=
++CFLAGS                := -fno-PIE
+ ASFLAGS               :=
+ LDFLAGS               :=
+ MAKEDEPS      := Makefile
+--
+2.7.4
+
diff --git 
a/source/base-extra/syslinux/0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch
 
b/source/base-extra/syslinux/0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch
new file mode 100644
index 0000000..83a87ee
--- /dev/null
+++ 
b/source/base-extra/syslinux/0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch
@@ -0,0 +1,35 @@
+From 61de7762389d460da7ffdd644f50c60175cce23b Mon Sep 17 00:00:00 2001
+From: Steve McIntyre <[email protected]>
+Date: Wed, 5 Apr 2017 22:09:37 +0200
+Subject: [PATCH] Fix 'ldlinux.elf: Not enough room for program headers, try
+ linking with -N'
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fix for https://bugs.debian.org/846679: syslinux: FTBFS: ld:
+ldlinux.elf: Not enough room for program headers, try linking with -N
+
+https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=846679;filename=syslinux_6.03%2Bdfsg-14.1.debdiff;msg=10
+
+Signed-off-by: Benoît Allard <[email protected]>
+---
+ core/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/core/Makefile b/core/Makefile
+index ad0acb5..58a3545 100644
+--- a/core/Makefile
++++ b/core/Makefile
+@@ -165,7 +165,7 @@ LDSCRIPT = $(SRC)/$(ARCH)/syslinux.ld
+
+ %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS)
+       $(LD) $(LDFLAGS) -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T 
$(LDSCRIPT) -M -o $@ $< \
+-              --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) 
--end-group \
++              --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) 
--end-group --no-dynamic-linker \
+               > $(@:.elf=.map)
+       $(OBJDUMP) -h $@ > $(@:.elf=.sec)
+       $(PERL) $(SRC)/lstadjust.pl $(@:.elf=.lsr) $(@:.elf=.sec) $(@:.elf=.lst)
+--
+2.7.4
+
diff --git 
a/source/base-extra/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch
 
b/source/base-extra/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch
new file mode 100644
index 0000000..4eedf49
--- /dev/null
+++ 
b/source/base-extra/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch
@@ -0,0 +1,32 @@
+From c0287594239d5af2082cac20817f8e8b11a4b1b2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
+Date: Wed, 5 Apr 2017 14:18:09 +0200
+Subject: [PATCH] memdisk: Force ld output format to 32-bits
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+On toolchains where the default output is x86_64, we need to be
+consistent with the other .o files
+
+Signed-off-by: Benoît Allard <[email protected]>
+---
+ memdisk/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/memdisk/Makefile b/memdisk/Makefile
+index e6557d8..06613ff 100644
+--- a/memdisk/Makefile
++++ b/memdisk/Makefile
+@@ -78,7 +78,7 @@ memdisk16.o: memdisk16.asm
+       $(NASM) -f bin $(NASMOPT) $(NFLAGS) $(NINCLUDE) -o $@ -l $*.lst $<
+
+ memdisk_%.o: memdisk_%.bin
+-      $(LD) -r -b binary -o $@ $<
++      $(LD) --oformat elf32-i386 -r -b binary -o $@ $<
+
+ memdisk16.elf: $(OBJS16)
+       $(LD) -Ttext 0 -o $@ $^
+--
+2.7.4
+
diff --git a/source/base-extra/syslinux/FrugalBuild 
b/source/base-extra/syslinux/FrugalBuild
index c11d64b..174de97 100644
--- a/source/base-extra/syslinux/FrugalBuild
+++ b/source/base-extra/syslinux/FrugalBuild
@@ -2,12 +2,12 @@
# Maintainer: bouleetbil <[email protected]>

pkgname=syslinux
-pkgver=6.02
-pkgrel=4
+pkgver=6.03
+pkgrel=1
pkgdesc="Bootloaders for FAT, EXT2/3/4, and ISO file systems."
url="http://syslinux.zytor.com";
-depends=('coreutils' 'libuuid')
-makedepends=('nasm' 'gnu-efi>=3.0u-3')
+depends=('coreutils' 'libuuid' 'util-linux')
+makedepends=('nasm' 'gnu-efi>=3.0u-3' 'perl' 'mtools')
conflicts=('extlinux' 'mbrsyslinux')
provides=('extlinux' 'mbrsyslinux')
replaces=('extlinux' 'mbrsyslinux')
@@ -17,11 +17,22 @@ up2date="Flasttar 
www.kernel.org/pub/linux/utils/boot/$pkgname/"
source=(http://www.kernel.org/pub/linux/utils/boot/$pkgname/$pkgname-$pkgver.tar.xz
 \
README.Frugalware \
syslinux-module-config \
-       remove-dos-win.patch \
-       efi.patch \
-       chainload.patch)
-signatures=(${source[0]/.tar.xz/.tar.sign} '' '' '' '' '')
+       0001-bios-Fix-alignment-change-with-gcc-5.patch \
+       0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch \
+       0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch \
+       0004-memdisk-Force-ld-output-format-to-32-bits.patch)

+sha1sums=('1bea76b97b4e32a017dd4168e819934b7c6592cc' \
+          '3c5beda7fdf0291de76d7565569af0de5b2a65bc' \
+          '21c36d2369e63f0548632fdd2c0e3f6a5e7689b4' \
+          'da3940db3c6b56931ac0e9e2945a918bad06b629' \
+          'fbf681072850fbc64ed9ecc72df7f02e074357cc' \
+          '32b085df58932cbdf809e571289cb89b6ee75e8d' \
+          'df7e16b1ed59f01d6bd5c81c2609d294288947a0')
+
+options+=('noasneeded')
+unset CFLAGS
+unset CXXFLAGS
unset MAKEFLAGS
unset LDFLAGS

@@ -29,6 +40,9 @@ MODULES='bios efi64'

copy_include()
{
+
+       local i
+
if [ "$3" = "y" ]; then
Fmkdir /usr/include/syslinux/$2
fi
@@ -38,11 +52,20 @@ copy_include()
}

build() {
+
+       unset CFLAGS
+       unset CXXFLAGS
+       unset MAKEFLAGS
+       unset LDFLAGS
+
Fcd
Fpatchall
+
+       local i
+
for i in $MODULES; do
-               Fexec make $i || Fdie
-               Fexec make $i installer || Fdie
+               Fexec make -j1 $i || Fdie
+               Fexec make -j1 $i installer || Fdie
if [ "$i" = "bios" ]; then
AUXDIR="/usr/lib/syslinux/bios"
Fmkdir $AUXDIR
diff --git a/source/base-extra/syslinux/chainload.patch 
b/source/base-extra/syslinux/chainload.patch
deleted file mode 100644
index 6fd7ef4..0000000
--- a/source/base-extra/syslinux/chainload.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-Reported-by: Dark Raven <drdarkraven at gmail.com>
-Signed-off-by: Raphael S. Carvalho <raphael.scarv at gmail.com>
----
- com32/lib/syslinux/disk.c |   22 ++++++++++++++--------
- 1 files changed, 14 insertions(+), 8 deletions(-)
-
-diff --git a/com32/lib/syslinux/disk.c b/com32/lib/syslinux/disk.c
-index 0b0c737..47ecb52 100644
---- a/com32/lib/syslinux/disk.c
-+++ b/com32/lib/syslinux/disk.c
-@@ -171,22 +171,28 @@ out:
- static void *ebios_setup(const struct disk_info *const diskinfo, com32sys_t 
*inreg,
-                        uint64_t lba, uint8_t count, uint8_t op_code)
- {
--    static __lowmem struct disk_ebios_dapa dapa;
-+    static struct disk_ebios_dapa *dapa = NULL;
-     void *buf;
-
-+    if (!dapa) {
-+      dapa = lmalloc(sizeof *dapa);
-+      if (!dapa)
-+          return NULL;
-+    }
-+
-     buf = lmalloc(count * diskinfo->bps);
-     if (!buf)
-       return NULL;
-
--    dapa.len = sizeof(dapa);
--    dapa.count = count;
--    dapa.off = OFFS(buf);
--    dapa.seg = SEG(buf);
--    dapa.lba = lba;
-+    dapa->len = sizeof(*dapa);
-+    dapa->count = count;
-+    dapa->off = OFFS(buf);
-+    dapa->seg = SEG(buf);
-+    dapa->lba = lba;
-
-     inreg->eax.b[1] = op_code;
--    inreg->esi.w[0] = OFFS(&dapa);
--    inreg->ds = SEG(&dapa);
-+    inreg->esi.w[0] = OFFS(dapa);
-+    inreg->ds = SEG(dapa);
-     inreg->edx.b[0] = diskinfo->disk;
-
-     return buf;
diff --git a/source/base-extra/syslinux/efi.patch 
b/source/base-extra/syslinux/efi.patch
deleted file mode 100644
index 94c0cb3..0000000
--- a/source/base-extra/syslinux/efi.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff -ur a/mk/efi.mk b/mk/efi.mk
---- a/mk/efi.mk        2013-10-13 12:59:03.000000000 -0500
-+++ b/mk/efi.mk        2013-11-09 06:40:33.578925260 -0600
-@@ -23,11 +23,11 @@
-       EFI_SUBARCH = $(ARCH)
- endif
-
--EFIINC = $(shell $(topdir)/efi//find-gnu-efi.sh include $(EFI_SUBARCH))
-+EFIINC = /usr/include/efi
- $(if $(EFIINC),, \
-       $(error Missing $(EFI_SUBARCH) gnu-efi header files))
-
--LIBDIR = $(shell $(topdir)/efi/find-gnu-efi.sh lib $(EFI_SUBARCH))
-+LIBDIR = /usr/lib
- $(if $(LIBDIR),, \
-       $(error Missing $(EFI_SUBARCH) gnu-efi libraries))
-
-@@ -45,8 +45,8 @@
-               -Wno-unused-parameter
-
- # gnuefi sometimes installs these under a gnuefi/ directory, and sometimes not
--CRT0 := $(shell find $(LIBDIR) -name crt0-efi-$(EFI_SUBARCH).o 2>/dev/null | 
tail -n1)
--LDSCRIPT := $(shell find $(LIBDIR) -name elf_$(EFI_SUBARCH)_efi.lds 
2>/dev/null | tail -n1)
-+CRT0 := $(LIBDIR)/crt0-efi-$(EFI_SUBARCH).o
-+LDSCRIPT := $(LIBDIR)/elf_$(EFI_SUBARCH)_efi.lds
-
- LDFLAGS = -T $(SRC)/$(ARCH)/syslinux.ld -Bsymbolic -pie -nostdlib 
-znocombreloc \
-               -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E
diff --git a/source/base-extra/syslinux/remove-dos-win.patch 
b/source/base-extra/syslinux/remove-dos-win.patch
deleted file mode 100644
index 3e722a0..0000000
--- a/source/base-extra/syslinux/remove-dos-win.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-diff -ur a/Makefile b/Makefile
---- a/Makefile 2013-07-04 08:20:20.000000000 -0500
-+++ b/Makefile 2013-11-09 07:02:42.763875841 -0600
-@@ -123,7 +123,7 @@
- #
-
- ifndef EFI_BUILD
--MODULES = memdisk/memdisk memdump/memdump.com \
-+MODULES = memdisk/memdisk \
-       com32/menu/*.c32 com32/modules/*.c32 com32/mboot/*.c32 \
-       com32/hdt/*.c32 com32/rosh/*.c32 com32/gfxboot/*.c32 \
-       com32/sysdump/*.c32 com32/lua/src/*.c32 com32/chain/*.c32 \
-@@ -149,9 +149,7 @@
-       mbr/*.bin \
-       core/pxelinux.0 core/lpxelinux.0 \
-       core/isolinux.bin core/isolinux-debug.bin \
--      gpxe/gpxelinux.0 dos/syslinux.com \
--      win32/syslinux.exe win64/syslinux64.exe \
--      dosutil/*.com dosutil/*.sys \
-+      gpxe/gpxelinux.0 \
-       $(MODULES)
-
- # BSUBDIRs build the on-target binary components.
-@@ -170,8 +168,8 @@
-
- else
-
--BSUBDIRS = codepage com32 lzo core memdisk mbr memdump gpxe sample \
--         diag libinstaller dos win32 win64 dosutil txt
-+BSUBDIRS = codepage com32 lzo core memdisk mbr gpxe sample \
-+         libinstaller txt
-
- ITARGET  =
- IOBJECTS = $(ITARGET) \
-@@ -186,14 +184,11 @@
- # Things to install in /usr/lib/syslinux
- INSTALL_AUX   =       core/pxelinux.0 gpxe/gpxelinux.0 gpxe/gpxelinuxk.0 \
-               core/isolinux.bin core/isolinux-debug.bin \
--              dos/syslinux.com core/lpxelinux.0 \
-+              core/lpxelinux.0 \
-               mbr/*.bin $(INSTALLABLE_MODULES)
--INSTALL_AUX_OPT = win32/syslinux.exe win64/syslinux64.exe
--INSTALL_DIAG  =       diag/mbr/handoff.bin \
--              diag/geodsp/geodsp1s.img.xz diag/geodsp/geodspms.img.xz
-
- # These directories manage their own installables
--INSTALLSUBDIRS = com32 utils dosutil
-+INSTALLSUBDIRS = com32 utils
-
- # Things to install in /boot/extlinux
- EXTBOOTINSTALL = $(INSTALLABLE_MODULES)
-@@ -280,7 +275,7 @@
-
- #
- # List the dependencies to help out parallel builds.
--dos extlinux linux mtools win32 win64: libinstaller
-+extlinux linux mtools: libinstaller
- libinstaller: core
- utils: mbr
- core: com32
-@@ -315,9 +310,6 @@
-       install -m 755 -c $(INSTALL_SBIN) $(INSTALLROOT)$(SBINDIR)
-       mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)
-       install -m 644 -c $(INSTALL_AUX) $(INSTALLROOT)$(AUXDIR)
--      -install -m 644 -c $(INSTALL_AUX_OPT) $(INSTALLROOT)$(AUXDIR)
--      mkdir -m 755 -p $(INSTALLROOT)$(DIAGDIR)
--      install -m 644 -c $(INSTALL_DIAG) $(INSTALLROOT)$(DIAGDIR)
-       mkdir -m 755 -p $(INSTALLROOT)$(MANDIR)/man1
-       install -m 644 -c $(topdir)/man/*.1 $(INSTALLROOT)$(MANDIR)/man1
-       : mkdir -m 755 -p $(INSTALLROOT)$(MANDIR)/man8
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to