- Disable zstd-by-default again (needs adjustments in at least
golang,llvm15,llvm17 first) - Add binutils-fix-branch.diff. - Check non-changing of flex/bison inputs only after applying branch and fix-branch diffs. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=482
This commit is contained in:
parent
89ba785707
commit
37d03cdb94
BIN
binutils-2.43-branch.diff.gz
(Stored with Git LFS)
BIN
binutils-2.43-branch.diff.gz
(Stored with Git LFS)
Binary file not shown.
22
binutils-fix-branch.diff
Normal file
22
binutils-fix-branch.diff
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
This is used to manually patch the bison generated files when
|
||||||
|
the binutils-X.YZ-branch.diff touches them. That diff is generated
|
||||||
|
directly from git and doesn't contain the generated .c/h files.
|
||||||
|
The base tarball does contain them, but generated from the unpatched state.
|
||||||
|
In SLE12 and older we can't regenerate them due to too old versions
|
||||||
|
of flex and bison.
|
||||||
|
So, when the branch diff _does_ touch them we need to do the regeneration
|
||||||
|
via such a manual patch.
|
||||||
|
Index: binutils-2.43/ld/ldgram.c
|
||||||
|
===================================================================
|
||||||
|
--- binutils-2.43.orig/ld/ldgram.c 2024-08-04 01:00:00.000000000 +0200
|
||||||
|
+++ binutils-2.43/ld/ldgram.c 2024-12-09 16:41:08.089715376 +0100
|
||||||
|
@@ -2839,7 +2839,7 @@ yyreduce:
|
||||||
|
|
||||||
|
case 73: /* ifile_p1: SEARCH_DIR '(' filename ')' */
|
||||||
|
#line 324 "ldgram.y"
|
||||||
|
- { ldfile_add_library_path ((yyvsp[-1].name), search_dir_linker_script); }
|
||||||
|
+ { ldfile_add_library_path ((yyvsp[-1].name), false); }
|
||||||
|
#line 2844 "ldgram.c"
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
@ -6,6 +6,11 @@ Mon Dec 9 14:49:46 UTC 2024 - Michael Matz <matz@suse.com>
|
|||||||
* various fixes from upstream: PR32153, PR32171, PR32189,
|
* various fixes from upstream: PR32153, PR32171, PR32189,
|
||||||
PR32196, PR32191, PR32109, PR32372, PR32387
|
PR32196, PR32191, PR32109, PR32372, PR32387
|
||||||
- Adjusted binutils-2.43-branch.diff.gz.
|
- Adjusted binutils-2.43-branch.diff.gz.
|
||||||
|
- Disable zstd-by-default again (needs adjustments in at least
|
||||||
|
golang,llvm15,llvm17 first)
|
||||||
|
- Add binutils-fix-branch.diff.
|
||||||
|
- Check non-changing of flex/bison inputs only after applying
|
||||||
|
branch and fix-branch diffs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 20 14:59:28 UTC 2024 - Jiri Slaby <jslaby@suse.cz>
|
Wed Nov 20 14:59:28 UTC 2024 - Jiri Slaby <jslaby@suse.cz>
|
||||||
|
@ -132,6 +132,7 @@ Source2: binutils-%{version}.tar.bz2.sig
|
|||||||
Source3: binutils.keyring
|
Source3: binutils.keyring
|
||||||
Source4: baselibs.conf
|
Source4: baselibs.conf
|
||||||
Patch1: binutils-2.43-branch.diff.gz
|
Patch1: binutils-2.43-branch.diff.gz
|
||||||
|
Patch2: binutils-fix-branch.diff
|
||||||
Patch3: binutils-skip-rpaths.patch
|
Patch3: binutils-skip-rpaths.patch
|
||||||
Patch4: s390-biarch.diff
|
Patch4: s390-biarch.diff
|
||||||
Patch5: x86-64-biarch.patch
|
Patch5: x86-64-biarch.patch
|
||||||
@ -244,13 +245,18 @@ The next generation profiling tool for Linux
|
|||||||
echo "make check will return with %{make_check_handling} in case of testsuite failures."
|
echo "make check will return with %{make_check_handling} in case of testsuite failures."
|
||||||
%setup -q -n binutils-%{version}
|
%setup -q -n binutils-%{version}
|
||||||
|
|
||||||
# Backup flex and biscon files for later verification.
|
|
||||||
cp ld/ldlex.l ld/ldlex.l.orig
|
|
||||||
cp ld/ldgram.y ld/ldgram.y.orig
|
|
||||||
|
|
||||||
# Patch is outside test_vanilla because it's supposed to be the
|
# Patch is outside test_vanilla because it's supposed to be the
|
||||||
# patch bringing the tarball to the newest upstream version
|
# patch bringing the tarball to the newest upstream version
|
||||||
%patch -P 1 -p1
|
%patch -P 1 -p1
|
||||||
|
%patch -P 2 -p1
|
||||||
|
|
||||||
|
# Backup flex and biscon files for later verification. Do this
|
||||||
|
# after branch and fix-branch patches are applied (which are assumed
|
||||||
|
# to manual fixup generated files, in case the branch diff touches
|
||||||
|
# the flex/bison source files)
|
||||||
|
cp ld/ldlex.l ld/ldlex.l.orig
|
||||||
|
cp ld/ldgram.y ld/ldgram.y.orig
|
||||||
|
|
||||||
%if !%{test_vanilla}
|
%if !%{test_vanilla}
|
||||||
%patch -P 3 -p1
|
%patch -P 3 -p1
|
||||||
%patch -P 4
|
%patch -P 4
|
||||||
@ -379,9 +385,6 @@ cd build-dir
|
|||||||
%endif
|
%endif
|
||||||
--enable-colored-disassembly \
|
--enable-colored-disassembly \
|
||||||
%endif
|
%endif
|
||||||
%if %{suse_version} > 1600
|
|
||||||
--enable-default-compressed-debug-sections-algorithm=zstd \
|
|
||||||
%endif
|
|
||||||
%if ! %build_gprofng
|
%if ! %build_gprofng
|
||||||
--disable-gprofng \
|
--disable-gprofng \
|
||||||
%endif
|
%endif
|
||||||
@ -389,6 +392,12 @@ cd build-dir
|
|||||||
--enable-warn-execstack=yes \
|
--enable-warn-execstack=yes \
|
||||||
--enable-warn-rwx-segments=yes
|
--enable-warn-rwx-segments=yes
|
||||||
|
|
||||||
|
# FIXME: enable in future, when at least llvm15,llvm17,golang are
|
||||||
|
# fixed to accept zstd
|
||||||
|
#%if %{suse_version} > 1600
|
||||||
|
# --enable-default-compressed-debug-sections-algorithm=zstd \
|
||||||
|
#%endif
|
||||||
|
|
||||||
# we patch headers (bfd-in.h) that are input to other headers
|
# we patch headers (bfd-in.h) that are input to other headers
|
||||||
# which are generated only with --enable-maintainer-mode (which we
|
# which are generated only with --enable-maintainer-mode (which we
|
||||||
# don't do) or explicitely by make headers, so do this:
|
# don't do) or explicitely by make headers, so do this:
|
||||||
|
Loading…
Reference in New Issue
Block a user