>From: Kern Sibbald [mailto:[email protected]]
>> RPM build errors:
>>     Bad owner/group: /builddir/build/SPECS/bacula.spec
>>
>>
>> Any immediate ideas?
>
>I have never seen that problem before, but then I always build as non-root,
>so
>I don't have permission problems.  It looks like you are working in some
>sort
>of chroot setup, which complicates everything -- you probably need to
>move /etc/passwd, ... into it.  IMO it is much easier to use .rpmmacros to
>work in your home directory. It takes a few tries to set it up the first
>time, but after that, it saves using root and possibly wrecking your OS or
>fiddling with chroots.

Tracked down that error: the .spec from the tarball is extracted as owner/group 
1000, which doesn't exist in my build system.  chowning it back to root sorted 
that. (Talking about unnecessary complications, my build system uses mock, 
which is how Fedora think it should be done.)

Now I'm guessing the paths through all those conditional builds need adjusting 
(unless it's my build options):

mock-chroot> rpmbuild -D 'build_centos5 1' -D 'build_sqlite 1' -ba bacula.spec
...
error: Installed (but unpackaged) file(s) found:
   /usr/lib/bacula/bacula_config
   /usr/lib/bacula/make_catalog_backup.pl

RPM build errors:
    File listed twice: /etc/bacula/bacula-dir.conf
    File listed twice: /etc/bacula/bacula-fd.conf
    File listed twice: /etc/bacula/bacula-sd.conf
    File listed twice: /etc/bacula/bconsole.conf
    File listed twice: /etc/bacula/bacula-fd.conf
    File listed twice: /etc/bacula/bconsole.conf
    File listed twice: /usr/lib/bacula/updatedb/README
    File listed twice: /usr/lib/bacula/updatedb/update_bacula_tables_8_to_9
    File listed twice: /usr/lib/bacula/updatedb/update_bdb_tables_8_to_9
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_10_to_11
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_10_to_11.in
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_4_to_5
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_5_to_6
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_6_to_7
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_7_to_8
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_8_to_9
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_9_to_10
    File listed twice: /usr/lib/bacula/updatedb/update_mysql_tables_9_to_10.in
    File listed twice: 
/usr/lib/bacula/updatedb/update_postgresql_tables_10_to_11
    File listed twice: 
/usr/lib/bacula/updatedb/update_postgresql_tables_10_to_11.in
    File listed twice: /usr/lib/bacula/updatedb/update_postgresql_tables_7_to_8
    File listed twice: /usr/lib/bacula/updatedb/update_postgresql_tables_8_to_9
    File listed twice: /usr/lib/bacula/updatedb/update_postgresql_tables_9_to_10
    File listed twice: 
/usr/lib/bacula/updatedb/update_postgresql_tables_9_to_10.in
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite3_tables_10_to_11
    File listed twice: 
/usr/lib/bacula/updatedb/update_sqlite3_tables_10_to_11.in
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite3_tables_8_to_9
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite3_tables_9_to_10
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite3_tables_9_to_10.in
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite_tables_10_to_11.in
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite_tables_4_to_5
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite_tables_5_to_6
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite_tables_6_to_7
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite_tables_7_to_8
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite_tables_8_to_9
    File listed twice: /usr/lib/bacula/updatedb/update_sqlite_tables_9_to_10.in
    Installed (but unpackaged) file(s) found:
   /usr/lib/bacula/bacula_config
   /usr/lib/bacula/make_catalog_backup.pl



Moray.
"To err is human.  To purr, feline"





------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to