Bladeren bron

revamp gcc35 branding logic from patch to shtool subst

Thomas Lotterer 21 jaren geleden
bovenliggende
commit
6b371a7953
2 gewijzigde bestanden met toevoegingen van 2 en 18 verwijderingen
  1. 0 17
      gcc35/gcc35.patch
  2. 2 1
      gcc35/gcc35.spec

+ 0 - 17
gcc35/gcc35.patch

@@ -1,20 +1,3 @@
---- gcc/version.c.orig	2003-08-04 14:50:23.000000000 +0200
-+++ gcc/version.c	2003-09-27 15:01:39.000000000 +0200
-@@ -5,7 +5,7 @@
-    please modify this string to indicate that, e.g. by putting your
-    organization's name in parentheses at the end of the string.  */
- 
--const char version_string[] = "3.5.0 20040606 (experimental)";
-+const char version_string[] = "3.5.0 20040606 (experimental) (@l_openpkg_release@)";
- 
- /* This is the location of the online document giving instructions for
-    reporting bugs.  If you distribute a modified version of GCC,
-@@ -15,4 +15,4 @@
-    forward us bugs reported to you, if you determine that they are
-    not bugs in your modifications.)  */
- 
--const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
-+const char bug_report_url[] = "<URL:http://www.openpkg.org/>";
 --- config.guess.orig	Thu Jan 30 23:32:36 2003
 +++ config.guess	Wed Feb  5 09:54:43 2003
 @@ -189,7 +189,7 @@

+ 2 - 1
gcc35/gcc35.spec

@@ -91,7 +91,8 @@ Provides:     gcc = %{version}-%{release}
         -e 's;PREFIX_INCLUDE_DIR;PREFIX_INCLUDE_DIR_DISABLED;g' \
         gcc/configure
     %{l_shtool} subst -v -s \
-        -e 's;@l_openpkg_release@;%{l_openpkg_release -F "OpenPKG-%s"};' \
+        -e 's;\(version_string\[\] = "[^"]*\);\1 (%{l_openpkg_release -F "OpenPKG-%s"});' \
+        -e 's;\(bug_report_url\[\] = "\)[^"]*;\1<URL:http://www.openpkg.org/>;' \
         gcc/version.c
 
 %build