[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#323512: Tested patch



Howdy,

I incorporated Lennert's suggestion and created a patch that fixes the
problem on at least i386.

-- 
Matt
diff -ru gcc-2.95-2.95.4.ds15-old/debian/rules2 gcc-2.95-2.95.4.ds15/debian/rules2
--- gcc-2.95-2.95.4.ds15-old/debian/rules2	2005-10-13 06:58:48.000000000 -0700
+++ gcc-2.95-2.95.4.ds15/debian/rules2	2005-10-13 07:03:06.000000000 -0700
@@ -33,7 +33,7 @@
 #docdir		= usr/doc
 
 cxx_inc_dir	= g++-$(LIBSTDCXX_IF)
-ifeq ($(DEB_HOST_GNU_SYSTEM), linux)
+ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu)
   lib_arlib	= libstdc++-$(LIBSTDCXX_IF)$(LIBC_IF)$(CXX_IF)-$(lib_version).a
   lib_marlink	= libstdc++$(LIBC_IF)$(CXX_IF).a.$(LIBSTDCXX_IF)
   lib_shlib	= libstdc++-$(LIBSTDCXX_IF)$(LIBC_IF)$(CXX_IF)-$(lib_version).so
@@ -109,7 +109,7 @@
 endif
 # MULTILIBS is one or more of "gcc g++ stdc++ chill objc g77"
 # MULTIDIRS is in the format "32" or "{m68000,m68020,m68040}"
-ifeq ($(DEB_HOST_GNU_TYPE),sparc64-linux)
+ifeq ($(DEB_HOST_GNU_TYPE),sparc64-linux-gnu)
     CONFARGS += --with-cpu=ultrasparc
     MULTIDIRS := 32
     MULTILIBS := gcc
@@ -131,7 +131,7 @@
     MULTIDIRS := 64
     MULTILIBS := gcc
 endif
-ifeq ($(DEB_HOST_GNU_TYPE),alpha-linux)
+ifeq ($(DEB_HOST_GNU_TYPE),alpha-linux-gnu)
     MULTIDIRS := ieee
     MULTILIBS += g77
 endif
@@ -349,7 +349,7 @@
 ifeq ($(with_check),yes)
 	rm -f test-protocol
 
-  ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
+  ifeq ($(DEB_HOST_GNU_SYSTEM),linux-gnu)
 	-echo "Running testsuite ..."; \
 	  if [ -e /proc/meminfo ]; then \
 	    m=`awk '/^((Mem|Swap)Free|Cached)/{m+=$$2}END{print int(m*.9)}' \
@@ -392,7 +392,7 @@
 check:
 	rm -f test-protocol
 
-ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
+ifeq ($(DEB_HOST_GNU_SYSTEM),linux-gnu)
 	-echo "Running testsuite ..."; \
 	  if [ -e /proc/meminfo ]; then \
 	    m=`awk '/^((Mem|Swap)Free|Cached)/{m+=$$2}END{print int(m*.9)}' \
diff -ru gcc-2.95-2.95.4.ds15-old/debian/rules.conf gcc-2.95-2.95.4.ds15/debian/rules.conf
--- gcc-2.95-2.95.4.ds15-old/debian/rules.conf	2005-10-13 06:58:48.000000000 -0700
+++ gcc-2.95-2.95.4.ds15/debian/rules.conf	2005-10-13 07:03:21.000000000 -0700
@@ -8,7 +8,7 @@
 include debian/rules.defs
 
 # FIRST_PRIMARY - first gcc version built as primary compiler
-ifeq ($(DEB_HOST_GNU_TYPE),i386-linux)
+ifeq ($(DEB_HOST_GNU_TYPE),i386-linux-gnu)
   FIRST_PRIMARY = 2.91.63-1.1
 endif
 ifeq ($(DEB_HOST_ARCH),sparc)
@@ -66,7 +66,7 @@
 
 if_config 	:= $(shell cd $(srcdir); \
 			topsrcdir=$(srcdir); \
-			target_os=$(DEB_HOST_GNU_SYSTEM)-gnu; \
+			target_os=$(DEB_HOST_GNU_SYSTEM); \
 			target=$(DEB_HOST_GNU_TYPE); \
 			enable_libstdcxx_v3=$(with_libstdcxx_v3); \
 			. config.if >/dev/null 2>&1; \
@@ -164,7 +164,7 @@
     LGP_PKG_SONAME = $(LGPSONAME)
   endif
 else
-  ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
+  ifeq ($(DEB_HOST_GNU_SYSTEM),linux-gnu)
     PKG_SONAME     = $(SONAME)-glibc$(GLIBC_VER)
     LGP_PKG_SONAME = $(LGPSONAME)-glibc$(GLIBC_VER)
   else
diff -ru gcc-2.95-2.95.4.ds15-old/debian/rules.defs gcc-2.95-2.95.4.ds15/debian/rules.defs
--- gcc-2.95-2.95.4.ds15-old/debian/rules.defs	2005-10-13 06:58:48.000000000 -0700
+++ gcc-2.95-2.95.4.ds15/debian/rules.defs	2005-10-13 07:00:38.000000000 -0700
@@ -73,7 +73,7 @@
 # build the libg++ library (deprecated)
 with_libgpp := no
 ifeq ($(with_gplusplus),yes)
-  ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
+  ifeq ($(DEB_HOST_GNU_SYSTEM),linux-gnu)
     with_libgpp := yes
   endif
 endif

Attachment: signature.asc
Description: Digital signature


Reply to: