Blame SOURCES/binutils-version.patch

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