bacula server without gconsole

Craig White craigwhite at azapple.com
Wed Apr 12 02:45:38 UTC 2006


On Tue, 2006-04-11 at 19:35 -0700, RYAN M. vAN GINNEKEN wrote:
> ----- Craig White <craigwhite at azapple.com> wrote:

> > > [king at shoemasters SOURCES]$ rpmbuild -bb --define 'fc3 1' --define
> > 'build_mysql 1' --define 'nobuild_gconsole 1' 
> > bacula-1.38.6-1.src.rpm
> > > error: File /home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm does
> > not appear to be a specfile.
> > > [king at shoemasters SOURCES]$ ls
> > > bacula-1.38.6-1.src.rpm       bacula-docs-1.38.6.tar.gz
> > > bacula-1.38.6-makefile.patch  bacula-rescue-1.8.2.tar.gz
> > > bacula-1.38.6-script.patch    depkgs-22Jun05.tar.gz
> > > bacula-1.38.6.tar.gz          Release_Notes-1.38.6-1.tar.gz
> > ----
> > OK then...
> > 
> > rpmbuild --rebuild \
> > --define 'fc3 1' \
> > --define 'build_mysql 1' \
> > --define 'nobuild_gconsole 1' \
> > /home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm
> > 
> > though I'm not quite sure if you don't need to add '--with'
> > 
> > if that were the case...
> > 
> > rpmbuild --rebuild \
> > /home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm \
> > --with \
> > --define 'fc3 1' \
> > --define 'build_mysql 1' \
> > --define 'nobuild_gconsole 1' \
> > 
> > or something like that
> > 
> > Craig
> > 
> Nope still seems to be a problem with the specfile what is fedora talking about where is this file so i can look at line 68?
> 
> 
> [king at shoemasters SOURCES]$ rpmbuild --rebuild /home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm --with \ --define 'fc3 1' --define 'build_mysql 1' --define 'nobuild_gconsole 1' /home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm
> Installing /home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> error:  You must specify a platform. Please examine the spec file.
> error: line 68: Unknown tag: exit 1
----
make sure you try both of these methods...

rpmbuild --rebuild \
--with \
--define 'fc3 1' \
--define 'build_mysql 1' \
--define 'nobuild_gconsole 1' \
/home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm

or

rpmbuild --rebuild \
--define 'fc3 1' \
--define 'build_mysql 1' \
--define 'nobuild_gconsole 1' \
/home/king/rpmbuild/SOURCES/bacula-1.38.6-1.src.rpm

one of these should work.

If you were to install the source rpm, you would have the spec file and
could build it like I normally do but I am not entirely certain how to
pass the parameters when you want to rebuild the src rpm with build
options...you have all the information you need and you can check
'rpmbuild --usage' to see if you can glean the proper format of the
command.

Craig




More information about the users mailing list