Blame SOURCES/binutils-version.patch

a8cd6b
diff -rup binutils.orig/bfd/Makefile.am binutils-2.38/bfd/Makefile.am
a8cd6b
--- binutils.orig/bfd/Makefile.am	2022-02-09 14:10:42.659300681 +0000
a8cd6b
+++ binutils-2.38/bfd/Makefile.am	2022-02-09 14:12:40.562532916 +0000
a8cd6b
@@ -977,8 +977,8 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD
a8cd6b
 bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
a8cd6b
 	$(AM_V_GEN)\
a8cd6b
 	bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
a8cd6b
-	bfd_version_string="\"$(VERSION)\"" ;\
a8cd6b
-	bfd_soversion="$(VERSION)" ;\
a8cd6b
+	bfd_version_string="\"$(VERSION)-%{release}\"" ;\
a8cd6b
+	bfd_soversion="$(VERSION)-%{release}" ;\
a8cd6b
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
a8cd6b
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
a8cd6b
 	. $(srcdir)/development.sh ;\
a8cd6b
@@ -989,7 +989,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
a8cd6b
 	fi ;\
a8cd6b
 	$(SED) -e "s,@bfd_version@,$$bfd_version," \
a8cd6b
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
a8cd6b
-	    -e "s,@bfd_version_package@,$$bfd_version_package," \
a8cd6b
+	    -e "s,@bfd_version_package@,\"version \"," \
a8cd6b
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
a8cd6b
 	    < $(srcdir)/version.h > $@; \
a8cd6b
 	echo "$${bfd_soversion}" > libtool-soversion
a8cd6b
diff -rup binutils.orig/bfd/Makefile.in binutils-2.38/bfd/Makefile.in
a8cd6b
--- binutils.orig/bfd/Makefile.in	2022-02-09 14:10:42.653300720 +0000
a8cd6b
+++ binutils-2.38/bfd/Makefile.in	2022-02-09 14:19:03.362040188 +0000
a8cd6b
@@ -2094,8 +2094,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC
a8cd6b
 bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
a8cd6b
 	$(AM_V_GEN)\
a8cd6b
 	bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
a8cd6b
-	bfd_version_string="\"$(VERSION)\"" ;\
a8cd6b
-	bfd_soversion="$(VERSION)" ;\
a8cd6b
+	bfd_version_string="\"$(VERSION)-%{release}\"" ;\
a8cd6b
+	bfd_soversion="$(VERSION)-%{release}" ;\
a8cd6b
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
a8cd6b
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
a8cd6b
 	. $(srcdir)/development.sh ;\
a8cd6b
@@ -2106,7 +2106,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
a8cd6b
 	fi ;\
a8cd6b
 	$(SED) -e "s,@bfd_version@,$$bfd_version," \
a8cd6b
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
a8cd6b
-	    -e "s,@bfd_version_package@,$$bfd_version_package," \
a8cd6b
+	    -e "s,@bfd_version_package@,\"version \"," \
a8cd6b
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
a8cd6b
 	    < $(srcdir)/version.h > $@; \
a8cd6b
 	echo "$${bfd_soversion}" > libtool-soversion