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

[Bacula-devel] FW: s390-unknown-linux-gnu --- rpmbuild of Bacula.


Problem reported elsewhere with compiling Bacula from source RPM on
zSeries Linux in 64-bit mode. Patch attached to fix compilation of mtx
in depkgs.  

> The error is actually coming from mtx, which is a dependency packaged
> with bacula.  If you cd into BUILD/depkgs/mtx-1.3.11 and
> run ./configure, you'll see the same error:
> 
> ---
> checking build system type... Invalid configuration
> `s390x-unknown-linux-gnu': machine `s390x-unknown' not recognized
> configure: error: /bin/sh ./config.sub s390x-unknown-linux-gnu failed
> ---
> 
> The problem is that the machine arch is 's390x', and mtx expects
's390'.
> Attached is a patch to fix this.  Here's one way to apply it.  The
basic
> idea is to untar the tarball containing mtx, apply the patch, then
> re-tar it:
> 
> 1.) Save the patch to /tmp/mtx-s390x.patch
> 2.) cd to the .../SOURCES directory
> 3.) cp  depkgs-09Sep07.tar.gz  depkgs-09Sep07.tar.gz.orig
> 4.) tar xvzf depkgs-09Sep07.tar.gz
> 5.) cd  depkgs/mtx-1.3.11/
> 6.) patch -p0 < /tmp/mtx-s390x.patch
> 7.) cd  ../..
> 8.) tar cvzf  depkgs-09Sep07.tar.gz  depkgs
> 
> Now, rpmbuild will pick up the new tarball and (should) complete
> successfully.
--- config.sub.orig
+++ config.sub
@@ -219,7 +219,7 @@
 	      | mips64el-* | mips64orion-* | mips64orionel-* \
 	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
 	      | mipstx39-* | mipstx39el-* | mcore-* \
-	      | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
+	      | f301-* | armv*-* | s390x-* | s390-* | sv1-* | t3e-* \
 	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
 	      | k[56]-* | k6[23]-* | athlon-* | powerpc64-* \
 	      | sparcv8-* | supersparc-* | microsparc-* | ultrasparc-* \
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilot Consulting.