Sorry, please ignore my previous comment, I didn't notice this was for a 
client-only build.

On Monday 04 May 2009 11:57:22 Ulrich Leodolter wrote:
> Hello,
>
>
> Here is my bacula.spec diff for client only build
>
> > diff -c bacula.spec.3.0.1 bacula.spec
>
> *** bacula.spec.3.0.1 2009-05-02 18:41:30.000000000 +0200
> --- bacula.spec       2009-05-04 11:41:20.650425000 +0200
> ***************
> *** 1899,1904 ****
> --- 1899,1908 ----
>   rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
>   rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
>   rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
> + rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole
> + rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
> + rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
> + rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
>   %endif
>
>   %clean
>
>
>
> client only rpm build succeeds, but there is an
> ldconfig issue at the end.
> i am running rpmbuild as nonroot.
>
>
> rpmbuild -bb bacula.spec --define "build_su9 1" \
>   --define "build_client_only 1"
>   --define "nobuild_gconsole 1"
>   --define "nobuild_rescue 1"
> ...
> Obsoletes: bacula-rescue
> Checking for unpackaged
> file(s): /usr/lib/rpm/check-files /var/tmp/bacula-root
> Wrote: /home/ul/rpmbuild/RPMS/i586/bacula-client-3.0.1-1.i586.rpm
> Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.35906
> + umask 022
> + cd /home/ul/rpmbuild/BUILD
> + cd bacula-3.0.1
> + '[' /var/tmp/bacula-root '!=' / ']'
> + rm -rf /var/tmp/bacula-root
> + rm -rf /home/ul/rpmbuild/BUILD/bacula-docs-3.0.1
> + rm -rf /home/ul/rpmbuild/BUILD/bacula-rescue-3.0.1
> + rm -rf /home/ul/rpmbuild/BUILD/depkgs
> + rm -f /home/ul/rpmbuild/BUILD/Release_Notes-3.0.1-1.txt
> + /sbin/ldconfig
> /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~:
> Permission denied
> error: Bad exit status from /var/tmp/rpm-tmp.35906 (%clean)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.35906 (%clean
>
>
> Regards
> Ulrich
>
> On Mon, 2009-05-04 at 10:25 +0200, Ulrich Leodolter wrote:
> > Hello,
> >
> > I tried client only rebuild on CentOS 5.3 x86_64
> >
> > rpmbuild \
> >         --define "build_rhel5 1" \
> >         --define "build_client_only 1" \
> >         --define "nobuild_rescue 1" \
> >         --define "nobuild_gconsole 1" \
> >         --rebuild bacula-3.0.1-1.src.rpm
> >
> >
> > rebuild fails with unpackaged files:
> >
> > ....
> > Conflicts: bacula-mysql bacula-sqlite bacula-postgresql
> > Obsoletes: bacula-rescue
> > Checking for unpackaged
> > file(s): /usr/lib/rpm/check-files /home/ul/rpmbuild/tmp/bacula-root
> > error: Installed (but unpackaged) file(s) found:
> >    /usr/lib64/bacula/bconsole
> >    /usr/lib64/bacula/bpipe-fd.so
> >    /usr/lib64/bacula/mtx-changer.conf
> >    /usr/sbin/bacula
> >
> >
> > RPM build errors:
> >     InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID
> > 10a792ad
> >     user sbarn does not exist - using root
> >     user sbarn does not exist - using root
> >     user sbarn does not exist - using root
> >     user sbarn does not exist - using root
> >     user sbarn does not exist - using root
> >     user sbarn does not exist - using root
> >     user sbarn does not exist - using root
> >     Installed (but unpackaged) file(s) found:
> >    /usr/lib64/bacula/bconsole
> >    /usr/lib64/bacula/bpipe-fd.so
> >    /usr/lib64/bacula/mtx-changer.conf
> >    /usr/sbin/bacula
> >
> >
> >
> > I have done successful rebuild on CentOS 5.3 i386
> >
> > rpmbuild \
> >         --define "build_rhel5 1" \
> >         --define "nobuild_rescue 1" \
> >         --define "nobuild_gconsole 1" \
> >         --define "build_bat 1" \
> >         --define "build_mysql 1" \
> >         --rebuild bacula-3.0.1-1.src.rpm
> >
> >
> >
> > Regards
> > Ulrich
> >
> > On Sun, 2009-05-03 at 08:13 -0400, Scott Barninger wrote:
> > > Bacula-3.0 RPM Release Notes
> > > 02 May 2009
> > > D. Scott Barninger
> > > <barninger at fairfieldcomputers dot com>
> > >
> > > Release 3.0.1-1
> > >
> > > This release incorporates a number of significant changes since 2.0.
> > >
> > > These release notes refer to the rpm packaging only.
> > > Please refer to the release notes and changelog in the
> > > tarball or on sourceforge for complete information on all changes.
> > >
> > >
> > > *****************
> > > * Miscellaneous *
> > > *****************
> > >
> > > Added build switch to pass Distribution tag:
> > > --define "DISTNAME Distribution Name"
> > >
> > > Building rescue files is now off by default as it doesn't work and as
> > > of this release the static fd won't build for me. Thus the
> > > nobuild_rescue switch is replaced by build_rescue.
> > >
> > > Added build target for su111
> > >
> > > Added nobuild_rescue switch to supress building the rescue package
> > >
> > > Removed libtermcap dependency for fc9
> > >
> > > Added build target for su110
> > >
> > > Added build target for fc9
> > >
> > > File location changes for compatibility with FHS.
> > >
> > > Force stripping of binaries for SuSE packages.
> > >
> > > Fixed bug 1037.
> > >
> > > Added nobuild_mtx switch to supress build of mtx package.
> > >
> > > Added missing files now required by the rescue configure script.
> > >
> > > Corrected dist target for rhel5.
> > >
> > > Corrected QT dependency name for RedHat flavors.
> > >
> > > Added fix for RHEL5 64 bit QT paths.
> > >
> > > Added build target for su103.
> > >
> > > Added build targets for rhel5 and clones.
> > >
> > > Build target added for Scientific Linux (RHEL clone) thanks to Jon
> > > Peatfield.
> > >
> > > Merged Otto Mueller's patch changing some directory locations for FHS
> > > compatibility
> > > but retaining the script directory as /etc/bacula.
> > >
> > > gnome-console and wxconsole have been renamed to bgnome-console and
> > > bwx-console
> > > respectively.
> > >
> > > ***************************************************
> > > * New Build Option to Install in Single Directory *
> > > ***************************************************
> > >
> > > A new build define has been added which will build packages that
> > > install most of the
> > > files to /opt/bacula. Only the man pages, init scripts, logwatch and
> > > menu entries are
> > > installed to the root filesystem.
> > >
> > > --define "single_dir_install 1"
> > >
> > > *****************************************
> > > * Buffer Overflow Error and Crash in fd *
> > > *****************************************
> > >
> > > Fedora 8/9 now set -D_FORTIFY_SOURCE=2 as default compiler option. This
> > > will probably be true on other platforms as they move to glibc >= 2.7.
> > > This causes a false "buffer overflow detected" error and crash in
> > > bacula-fd and other executables.
> > >
> > > To avoid this problem a workaround for Redhat platforms is to set the
> > > CFLAGS in your ~/.rpmmacros file as follows:
> > >
> > > # uncomment for bacula
> > > #%__global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=0
> > > -fno-exceptions -fno-strict-aliasing -fno-rtti
> > >
> > > For SuSE platforms set as follows in your ~/.rpmrc file:
> > >
> > > optflags:
> > > i586 -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0
> > > -D_FORTIFY_SOURCE=0 optflags: x86_64 -O2 -g -fmessage-length=0
> > > -D_FORTIFY_SOURCE=0
> > >
> > > See the discussion thread on bacula-devel for more information:
> > > http://sourceforge.net/search/?ml_name=bacula-devel&type_of_search=mlis
> > >ts&group_id=50727&words=%22buffer+overflow+detected%22
> > >
> > > This problem should now be fixed in source but the project still
> > > recommends -D_FORTIFY_SOURCE=0.
> > >
> > > ***************************
> > > * bat (Bacula Admin Tool) *
> > > ***************************
> > >
> > > A new subpackage has been added for the new bat QT-based GUI
> > > administration tool.
> > > This requires QT >= 4.2
> > >
> > > --define "build_bat 1"
> > >
> > > If you encounter problems building the bat package on platforms where
> > > you do have the proper QT4 support (QT >= 4.2) it may be necessary to
> > > adjust your $QTDIR and $PATH variables. On Fedora 8/9 it was necessary
> > > to:
> > >
> > > export QTDIR=/usr/lib/qt4;export PATH=/usr/lib/qt4/bin:$PATH;rpmbuild
> > > blah...
> > >
> > > As of 2.4.4 this should no longer be necessary as we sniff the paths
> > > with pkgconfig.
> > >
> > > As of 3.0.0 Gnome console and WX console are deprecated in favor of
> > > bat.
> > >
> > > *******************************************
> > > * Gnome console dropped on some platforms *
> > > *******************************************
> > >
> > > The gconsole package has been dropped on older gnome platforms (gtk+ <
> > > 2.4). Changes in the gnome api and code produced by Glade no longer
> > > build. In addition, the tray monitor now fails to build on < 2.10
> > > platforms. gconsole is now not built on the following platforms:
> > > rh7, rh8, rh9, rhel3 (and clones), fc1, fc3, fc4, mdk, su9, su10
> > >
> > > *******************
> > > * Database update *
> > > *******************
> > >
> > > The 3.x release requires an update to the bacula database structure
> > > from version 10 to version 11. A pre-install routine will
> > > check for databases older than 10. In that event the install will exit
> > > with an error message indicating that the database must be updated to
> > > version 10 before installing this upgrade. Scripts for updating older
> > > database formats are available for download in the bacula-updatedb
> > > rpm package. In the event a version 10 database is detected a
> > > post-install routine will update the database after creating a backup
> > > file in the bacula working directory.
> > >
> > > ******************
> > > * SQLite Upgrade *
> > > ******************
> > >
> > > For users of the sqlite package, from 2.2.7 onward sqlite3 replaces
> > > sqlite2. Your sqlite2 database file (/var/lib/bacula/bacula.db) is not
> > > compatible with sqlite3. During an upgrade the pre-install script will
> > > check for this situation. If found it will dump your catalog data to
> > > the file /var/lib/bacula/bacula_backup.sql, rename your old catalog
> > > file to /var/lib/bacula/bacula.db.old, and exit. You should then re-run
> > > the rpm upgrade. After the upgrade is complete restore your catalog
> > > data with the following commands (as root):
> > >
> > > /etc/bacula/drop_sqlite3_tables
> > > cd /var/lib/bacula
> > > /usr/lib/bacula/sqlite/sqlite3 $* bacula.db < bacula_backup.sql
> > > chown bacula.bacula bacula.db
> > >
> > > ******************
> > > * Platform Notes *
> > > ******************
> > >
> > > The spec file currently supports building on the following platforms:
> > >
> > > # RedHat builds
> > > --define "build_rh7 1"
> > > --define "build_rh8 1"
> > > --define "build_rh9 1"
> > >
> > > # Fedora Core build
> > > --define "build_fc1 1"
> > > --define "build_fc3 1"
> > > --define "build_fc4 1"
> > > --define "build_fc5 1"
> > > --define "build_fc6 1"
> > > --define "build_fc7 1"
> > > --define "build_fc8 1"
> > > --define "build_fc9 1"
> > >
> > > # Whitebox Enterprise build
> > > --define "build_wb3 1"
> > >
> > > # RedHat Enterprise builds
> > > --define "build_rhel3 1"
> > > --define "build_rhel4 1"
> > > --define "build_rhel5 1"
> > >
> > > # CentOS build
> > > --define "build_centos3 1"
> > > --define "build_centos4 1"
> > > --define "build_centos5 1"
> > >
> > > # Scientific Linux build
> > > --define "build_sl3 1"
> > > --define "build_sl4 1"
> > > --define "build_sl5 1"
> > >
> > > # SuSE build
> > > --define "build_su9 1"
> > > --define "build_su10 1"
> > > --define "build_su102 1"
> > > --define "build_su103 1"
> > > --define "build_su110 1"
> > > --define "build_su111 1"
> > >
> > > # Mandrake 10.x build
> > > --define "build_mdk 1"
> > >
> > > # Mandriva build
> > > --define "build_mdv 1"
> > >
> > > **************************
> > > * Database build options *
> > > **************************
> > >
> > > Database support (must select one or build client only)
> > >
> > > MySQL support:
> > > --define "build_mysql 1"
> > > # OR if using mysql 4.x define this
> > > # currently: Mandrake 10.x, SuSE 9.x & 10.0, RHEL4, fc4
> > > --define "build_mysql4 1"
> > > # OR if using mysql 5.x define this
> > > # currently: SuSE 10.1 and higher, fc5 and higher
> > > --define "build_mysql5 1"
> > >
> > > PostgreSQL support:
> > > --define "build_postgresql 1"
> > >
> > > Sqlite support:
> > > --define "build_sqlite 1"
> > >
> > > ***********************
> > > * Other build options *
> > > ***********************
> > >
> > > Supply a distribution name
> > > --define "DISTNAME Distribution Name"
> > >
> > > Build the rescue files:
> > > --define "build_rescue 1"
> > >
> > > Install to /opt/bacula:
> > > --define "single_dir_install 1"
> > >
> > > Supress build of mtx package:
> > > --define "nobuild_mtx 1"
> > >
> > > Supress build of Gnome Console:
> > > --define "nobuild_gconsole 1"
> > >
> > > Enable X86-64 support
> > > --define "build_x86_64 1"
> > >
> > > This build switch remains but should no longer be necessary. The
> > > configure script
> > > was adjusted in the 1.39 development series to correctly detect the
> > > location of
> > > 64 bit libraries.
> > >
> > > Enable wxconsole:
> > > --define "build_wxconsole 1"
> > >
> > > Enable bat:
> > > --define "build_bat 1"
> > >
> > > Enable python support:
> > > --define "build_python 1"
> > >
> > > Build the client package only:
> > > --define "build_client_only 1"
> > >
> > > **********************************
> > > * Current binary package support *
> > > **********************************
> > >
> > > D. Scott Barninger <barninger at fairfieldcomputers dot com>
> > > fc9 i386
> > > su103 i586
> > > su110 i586
> > > su111 i586
> > >
> > > Felix Schwarz <felix dot schwarz at web dot de>
> > > fc6 i386
> > > fc6 x86_64
> > > fc7 i386
> > > fc7 x86_64
> > > el4 i386
> > > el4 x86_64
> > > el5 i386
> > > el5 x86_64
> > >
> > > PattiMichelle Sheaffer <pattimichelle at pattimichelle dot com>
> > > su103 x86_64
> > > su110 x86_64
> > > su111 x86_64
> > >
> > > Mandriva packages are available in the distribution contrib repository.
> > >
> > > *************************
> > > * Changelog since 2.0.0 *
> > > *************************
> > > * Sat May 02 2009 D. Scott Barninger <[email protected]>
> > > - 3.0.1
> > > - update for new docs configuration
> > > * Sat Apr 25 2009 D. Scott Barninger <[email protected]>
> > > - add switch to pass Distribution tag
> > > * Sun Apr 5 2009 D. Scott Barninger <[email protected]>
> > > - 3.0.0 release
> > > - database update version 10 to 11
> > > - make now installs docs so we rm from buildroot
> > > - add shared libs in %_libdir and other misc new files
> > > * Wed Dec 31 2008 D. Scott Barninger <[email protected]>
> > > - add su111 target
> > > * Sat Nov 08 2008 D. Scott Barninger <[email protected]>
> > > - set paths for QT using pkgconfig
> > > * Sat Oct 11 2008 D. Scott Barninger <[email protected]>
> > > - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx
> > > package * Sun Sep 07 2008 D. Scott Barninger
> > > <[email protected]> - adjust /opt/bacula install
> > > - add build switch to supress rescue package
> > > * Sun Aug 24 2008 D. Scott Barninger <[email protected]>
> > > - add support for install to /opt/bacula
> > > * Sun Aug 17 2008 D. Scott Barninger <[email protected]>
> > > - remove libtermcap dependancy for FC9
> > > * Mon Aug 04 2008 D. Scott Barninger <[email protected]>
> > > - fix bat dependencies
> > > * Sat Jun 28 2008 D. Scott Barninger <[email protected]>
> > > - add su110 target
> > > * Sat May 24 2008 D. Scott Barninger <[email protected]>
> > > - add fc9 target
> > > * Sun Mar 30 2008 D. Scott Barninger <[email protected]>
> > > - FHS compatibility changes
> > > * Sat Feb 16 2008 D. Scott Barninger <[email protected]>
> > > - remove fix for false buffer overflow detection with glibc >= 2.7
> > > - eliminate use of configure macro
> > > * Sat Feb 09 2008 D. Scott Barninger <[email protected]>
> > > - fix for false buffer overflow detection with glibc >= 2.7
> > > * Sun Jan 27 2008 D. Scott Barninger <[email protected]>
> > > - 2.2.8 release
> > > - add debug package for SuSE
> > > * Sat Jan 12 2008 D. Scott Barninger <[email protected]>
> > > - 2.2.8 beta release
> > > - fix bug 1037
> > > - add fc8 target
> > > * Fri Dec 28 2007 D. Scott Barninger <[email protected]>
> > > - add nobuild_mtx switch
> > > * Sat Nov 17 2007 D. Scott Barninger <[email protected]>
> > > - switch to sqlite3
> > > * Sun Nov 11 2007 D. Scott Barninger <[email protected]>
> > > - add new files required by rescue makefile
> > > * Sat Nov 10 2007 D. Scott Barninger <[email protected]>
> > > - add su103 build target
> > > * Sun Nov 04 2007 D. Scott Barninger <[email protected]>
> > > - fix dist defines for rhel5 and clones
> > > - fix rhel broken 64 bit QT4 paths
> > > - rh qt4 packages don't provide qt so fix that too
> > > * Mon Oct 29 2007 D. Scott Barninger <[email protected]>
> > > - correct ownership when creating sqlite db file in post script
> > > * Sun Sep 16 2007 D. Scott Barninger <[email protected]>
> > > - fix disable-batch-insert
> > > * Fri Sep 14 2007 D. Scott Barninger <[email protected]>
> > > - 2.2.4 release
> > > - turn off gconsole build for fc3, tray monitor fails to build
> > > - add new files for mtx package (09Sep07 depkgs update)
> > > * Sat Sep 08 2007 D. Scott Barninger <[email protected]>
> > > - add --disable-batch-insert for older platforms
> > > - add build targets for rhel5 and clones
> > > * Mon Sep 03 2007 D. Scott Barninger <[email protected]>
> > > - 2.2.1 release
> > > - turn off gconsole build for su10 & fc4, tray monitor fails to build
> > > * Sat Jul 14 2007 D. Scott Barninger <[email protected]>
> > > - 2.1.26 add make of qwt in depkgs for bat
> > > * Sat Jun 02 2007 D. Scott Barninger <[email protected]>
> > > - upgrade Qt requirement for bat to 4.2
> > > * Sun May 06 2007 D. Scott Barninger <[email protected]>
> > > - add fc7 build target
> > > * Sun Apr 29 2007 D. Scott Barninger <[email protected]>
> > > - 2.1.8
> > > - gnome-console now bgnome-console
> > > - wxconsole now bwx-console
> > > - add build option for bat
> > > * Sat Apr 08 2007 D. Scott Barninger <[email protected]>
> > > - merge Otto Mueller's patch but keep script dir set to /etc/bacula
> > > - add build tag for Scientific Linux per Jon Peatfield
> > > <[email protected]>
> > > * Tue Mar 27 2007 Otto Mueller <[email protected]>
> > > - adjust directory locations for FHS-compatibility
> > >   sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
> > >   working_dir (/var/lib/bacula) and pid_dir (/var/run)
> > > * Mon Feb 26 2007 D. Scott Barninger <[email protected]>
> > > - add SuSE 10.2 target
> > > * Sat Jan 20 2007 D. Scott Barninger <[email protected]>
> > > - correct bug 752
> > > - set query.sql as config file
> > > - correct bug 754
> > > * Sun Jan 14 2007 D. Scott Barninger <[email protected]>
> > > - 2.0.1 release
> > > - change determination of gcc version per patch from Marc Hennes
> > > - move BuildRequire for atk-devel to gnome only builds
> > > - add fc6 build tag
> > > * Sat Jan 06 2007 D. Scott Barninger <[email protected]>
> > > - 2.0.0 release
> > >
> > > -----------------------------------------------------------------------
> > >------- Register Now & Save for Velocity, the Web Performance &
> > > Operations Conference from O'Reilly Media. Velocity features a full day
> > > of expert-led, hands-on workshops and two days of sessions from
> > > industry leaders in dedicated Performance & Operations tracks. Use code
> > > vel09scf and Save an extra 15% before 5/3.
> > > http://p.sf.net/sfu/velocityconf
> > > _______________________________________________
> > > Bacula-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/bacula-devel



------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to