Kanwar Ranbir Sandhu
2005-Aug-31 01:00 UTC
[CentOS] Building bacula RPM from Karanbir's repo
Hi all,
Has anyone tried to rebuild bacula from the source RPM provided on
Karanbir's CentOS yum repo? Every time I give it a go, I'm given this
error during the configure stage:
checking host system type... configure: error: can not guess host type;
you must specify one
make[1]: Entering directory
`/home/rpmbuilder/rpmbuild/BUILD/depkgs/mtx-1.2.17kes'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory
`/home/rpmbuilder/rpmbuild/BUILD/depkgs/mtx-1.2.17kes'
make: *** [mtx] Error 2
error: Bad exit status from /home/rpmbuilder/rpmbuild/tmp/rpm-tmp.1839
(%build)
I've tried specifying the host type in the spec file itself by entering
the following:
--host=x86_64-centos-linux-gnu
and
--host=x86_64-redhat-linux-gnu
but neither have worked.
This is my first go at building bacula, so I'm pretty sure I'm missing
something: I just don't know what.
Do I need to enter a macro in my .rpmmacros file? Currently:
%_topdir %(echo "$HOME")/rpmbuild
%_tmppath %{_topdir}/tmp
Is the spec file hosed? Something else entirely?
Any help would be appreciated.
Thanks,
Ranbir
--
Kanwar Ranbir Sandhu
Systems Aligned Inc.
www.systemsaligned.com
Kanwar Ranbir Sandhu wrote:> Hi all, > > Has anyone tried to rebuild bacula from the source RPM provided on > Karanbir's CentOS yum repo?yes :) I have!> Every time I give it a go, I'm given this > error during the configure stage: > > checking host system type... configure: error: can not guess host type; > you must specify one>> I've tried specifying the host type in the spec file itself by entering > the following: > --host=x86_64-centos-linux-gnu > and > --host=x86_64-redhat-linux-gnuwhats in /etc/rpm/platform ? and you might want to work with --define "_host foo"> but neither have worked.Have you ever managed to build anything on this machine ? ( try something smaller like time-*.src.rpm )> This is my first go at building bacula, so I'm pretty sure I'm missing > something: I just don't know what. > > Is the spec file hosed? Something else entirely?Spec builds fine for me. install the src.rpm and take a look, its quite a well defined spec[1] file. - KB [1] make sure you look at the changelog and see my first note in there - you might want to override those settings -- Karanbir Singh : http://www.karan.org/ GnuPG Public Key : http://www.karan.org/publickey.asc