File project.diff of Package syslinux
--- syslinux.changes.orig
+++ syslinux.changes
@@ -1,4 +1,15 @@
-------------------------------------------------------------------
+Sat Oct 21 14:02:52 UTC 2023 - msuchanek@suse.com
+
+- Update to version syslinux-6.04-pre3+git3.05ac953c:
+ * gnu-efi: update to version 3.0.9-3-gd34132e
+ * install: don't install obsolete file com32.ld
+ * Use CC for CC_FOR_BUILD when unspecified.
+ * Update the longjump calls to fit the new declaration
+ * efi/wrapper: build it with the host toolchain.
+ * utils: Use the host toolchain to build.
+
+-------------------------------------------------------------------
Wed Jun 9 10:45:24 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Link all binaries as Position Independent Executables (bsc#1184124).
--- syslinux.spec.orig
+++ syslinux.spec
@@ -1,7 +1,7 @@
#
# spec file for package syslinux
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,22 @@
Name: syslinux
-ExclusiveArch: %ix86 x86_64
BuildRequires: libext2fs-devel
BuildRequires: libpng-devel
BuildRequires: libuuid-devel
BuildRequires: nasm
BuildRequires: netpbm
BuildRequires: python3
-BuildRequires: xz
+%ifnarch %ix86 x86_64
+%global extra_mflags CC="x86_64-suse-linux-gcc" CC_FOR_BUILD="gcc" CROSS_COMPILE="x86_64-suse-linux-"
+%if 0%{?sle_version} >= 150000 && 0%{?sle_version} < 159999
+BuildRequires: cross-x86_64-gcc7
+%else
+BuildRequires: cross-x86_64-gcc%{gcc_version}
+%endif
+%endif
+# Does not work on bigendian
+ExcludeArch: s390 s390x ppc64 ppc
# lots of assembler here that would need to be changed :(
#!BuildIgnore: gcc-PIE
URL: http://www.syslinux.org/wiki/index.php/The_Syslinux_Project
@@ -32,40 +40,35 @@ Suggests: mtools
Summary: Boot Loader for Linux
License: GPL-2.0-or-later
Group: System/Boot
-Version: 4.04
+Version: 6.04~pre3+git3.05ac953c
Release: 0
-Source: https://www.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.bz2
+Source: https://www.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.gz
Source1: isolinux-config
Source2: README.gfxboot
Source3: baselibs.conf
-Patch0: %{name}-%{version}-iso9660.diff
-Patch1: %{name}-%{version}-cwd.diff
-Patch2: %{name}-%{version}-noinitrd.diff
-Patch3: %{name}-%{version}-mboot_bootif.diff
-Patch5: %{name}-%{version}-md5pass.diff
-Patch6: %{name}-%{version}-libext2fs.diff
-Patch7: %{name}-%{version}-gcc47.diff
-Patch8: %{name}-%{version}-isohybrid_efi.diff
-Patch9: %{name}-%{version}-isohybrid_efi_optional.diff
-Patch10: %{name}-%{version}-isohybrid_mbr.diff
-Patch11: %{name}-%{version}-localboot.diff
-Patch12: %{name}-%{version}-geometry.diff
-Patch13: %{name}-%{version}-nostrip.diff
-Patch14: %{name}-%{version}-timeout.diff
-Patch15: %{name}-%{version}-cache_fix.diff
-Patch16: %{name}-%{version}-mtime.diff
-Patch17: %{name}-%{version}-miniacc.diff
-Patch18: %{name}-%{version}-align.diff
-# PATCH-FIX-UPSTREAM -- make package build reproducible
-Patch19: syslinux-4.04-reproducible.patch
-Patch20: %{name}-%{version}-python3.diff
-Patch21: sysmacros.patch
-Patch22: remove-note-gnu-section.patch
-Patch23: %{name}-%{version}-lzo.diff
-Patch24: %{name}-%{version}-gcc10.diff
-Patch25: syslinux-4.04-reproducible-isohybrid.patch
-Patch26: %{name}-%{version}-pie.diff
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Patch01: 0001-iso9660-Put-search_directories-to-different-section.patch
+Patch02: 0002-mboot-replicate-BOOTIF-option-for-all-modules.patch
+Patch03: 0003-md5pass-don-t-use-Crypt-PasswdMD5-bnc-701279-bnc-475.patch
+Patch04: 0004-gcc47-fix-use-.init_array-section-instead-of-.ctors.patch
+Patch05: 0005-Fix-gpt-code-in-isohybrid-and-adjust-to-create-a-val.patch
+Patch06: 0006-isohybrid-make-uefi-image-optional.patch
+Patch07: 0007-isohybrid-write-only-mbr-unless-explicitly-specified.patch
+Patch08: 0008-don-t-strip-binaries.patch
+Patch09: 0009-Don-t-use-timestamps-to-create-a-unique-id-bnc-91595.patch
+Patch10: 0010-lzo-fixup-broken-conformance-tests.patch
+Patch11: 0011-Fix-section-alignment-bsc-948445.patch
+Patch12: 0012-Switch-to-python3-bsc-1075769.patch
+Patch13: 0013-Remove-.note.gnu-section.patch
+Patch14: 0014-lzo-fix-memory-aliasing-issue-bsc-1125616.patch
+Patch15: 0015-Fix-gcc10-related-issues-bsc-1166605.patch
+Patch16: 0016-isohybrid-Use-SOURCE_DATE_EPOCH-for-deterministic-re.patch
+Patch17: 0017-Compile-.lo-files-with-host-gcc.patch
+Patch18: 0018-lzo-Build-with-host-gcc.patch
+Patch19: 0019-mtools-Build-with-host-gcc.patch
+Patch20: 0020-Link-all-binaries-as-Position-Independent-Executable.patch
+Patch21: 0021-linux-Build-with-host-gcc.patch
+Patch22: 0022-extlinux-Build-with-host-gcc.patch
+Patch23: gnu-efi-include.diff
%description
SYSLINUX is a boot loader for the Linux operating system which operates
@@ -80,41 +83,15 @@ Authors:
H. Peter Anvin <hpa@zytor.com>
%prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch5 -p1
-%patch6 -p0
-%patch7 -p0
-%patch8 -p0
-%patch9 -p1
-%patch10 -p1
-%patch11 -p1
-%patch12 -p1
-%patch13 -p0
-%patch14 -p1
-%patch15 -p1
-%patch16 -p1
-%patch17
-%patch18
-%patch19 -p1
-%patch20 -p0
-%patch21 -p1
-%patch22 -p1
-%patch23 -p0
-%patch24 -p0
-%patch25 -p1
-%patch26 -p1
+%autosetup -p1
%build
cp %{SOURCE2} .
-make spotless
-make
+make %{?extra_mflags} spotless
+make %{?extra_mflags}
%install
-make install-all \
+make %{?extra_mflags} install \
INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_bindir} \
LIBDIR=%{_datadir} INCDIR=%{_includedir} MANDIR=%{_mandir}
install -m 755 mtools/syslinux $RPM_BUILD_ROOT/%{_bindir}/syslinux-mtools
@@ -125,7 +102,6 @@ rm -rf $RPM_BUILD_ROOT/boot
rm -rf $RPM_BUILD_ROOT/tftpboot
%files
-%defattr(-,root,root)
%doc doc/*.txt
%doc README* NEWS
%doc %{_mandir}/man1/*