Brad Hinson wrote:
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
Er
A primary concept with rpm (and dpkg for that matter) is to package the
_unaltered_ _original_ source, and to patch that source at the time of
building.
Pretty much any source rpm you can find does this, if changes are
required, whether to fix problems (such as this) or to bend the package
to the distro's standards.
The documentation for first release of RHL I used (3.0.3) goes though
this in some detail, and so did the book "Maximum RPM." I believe the
latter was published to www.rpm.org; unless it's been updated, the
information is fairly old and will need some translation for recent
versions.
Now, rpmbuild will pick up the new tarball and (should) complete
successfully.
-Brad
On Mon, 2008-02-11 at 17:36 +0200, Bruce Arro wrote:
Hi
I trying to do a "rpmbuild -ba bacula.spec"
I aways get this message
s390-unknown-linux-gnu
This is a SLES 10 SP1 enviroment.
Any clues?
--
Cheers
John
-- spambait
[EMAIL PROTECTED] [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390