Hello,

* Damyan Ivanov <[EMAIL PROTECTED]>, [2006-09-15  9:15 +0300]:
>  Clint Adams -- 15.09.2006 07:50 --:
>  > debian/patches/fix-mcpu-to-mtune.dpatch changes -mcpu=ultrasparc to
>  > -march=ultrasparc.
>  > 
>  > This is invalid and should be dropped altogether.
>  
>  Thank you for your interest for building firebird2 on sparc.
>  
>  The above patch snipplet was modelled around the changes for
>  i386/amd64 and sort of blindly applied to sparc too. This is now
>  removed in the pkg-firebird svn repository.
>  
>  Does firebird2 packages build on sparc after this change? If yes, I'll
>  be glad to initiate an upload that adds sparc to the list of supported
>  architectures.

Now firebird builds correctly on sparc:
http://people.debian.org/~ema/firebird2_1.5.3.4870-12_sparc.build

What I did was just dropping the -march=ultrasparc patch and adding
sparc to the list of supported architectures (see attached patch).

ciao,
    ema
diff -Nur firebird2-1.5.3.4870/debian/patches/fix-mcpu-to-mtune.dpatch firebird2-1.5.3.4870.new/debian/patches/fix-mcpu-to-mtune.dpatch
--- firebird2-1.5.3.4870/debian/patches/fix-mcpu-to-mtune.dpatch	2007-03-04 14:12:38.000000000 +0100
+++ firebird2-1.5.3.4870.new/debian/patches/fix-mcpu-to-mtune.dpatch	2007-03-04 14:11:59.000000000 +0100
@@ -17,14 +17,3 @@
  DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch
  
  OS_ServerFiles=inet_server.cpp
---- firebird2-1.5.2.orig/builds/posix/prefix.linux_sparc32
-+++ firebird2-1.5.2/builds/posix/prefix.linux_sparc32
-@@ -22,7 +22,7 @@
- 
- # -fno-builtin is used because GCC 3.0-3.2.2 had bug with builtins expansion
- # you may remove it if engine is getting compiled with any other GCC version
--PROD_FLAGS=-m32 -mcpu=ultrasparc -mtune=ultrasparc -O3 -DNDEBUG -DLINUX -pipe -MMD -fPIC -Dsparc
-+PROD_FLAGS=-m32 -march=ultrasparc -mtune=ultrasparc -O3 -DNDEBUG -DLINUX -pipe -MMD -fPIC -Dsparc
- DEV_FLAGS=-ggdb -m32 -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch -Dsparc
- 
- OS_ServerFiles=inet_server.cpp
diff -Nur firebird2-1.5.3.4870/debian/rules firebird2-1.5.3.4870.new/debian/rules
--- firebird2-1.5.3.4870/debian/rules	2007-03-04 14:12:38.000000000 +0100
+++ firebird2-1.5.3.4870.new/debian/rules	2007-03-04 14:11:59.000000000 +0100
@@ -221,7 +221,7 @@
 		debian/firebird2-classic
 
 	cat debian/control.in \
-	| sed "s/@arches@/`type-handling i386,amd64 any`/g" \
+	| sed "s/@arches@/`type-handling i386,amd64 any` `type-handling sparc linux-gnu`/g" \
 	> debian/control
 
 	dh_clean

Reply via email to