Hello Scott,

first, I want to thank you for your good work on the bacula rpms, 
as I know it is not easy to build multi-platform rpm spec files.

Am Freitag 12 Februar 2010 00:19:28 schrieb Scott Barninger:
> Hello Phillip,
> 
> When producing the project 5.0 rpm release I used the spec files in the
> tarball which were the result of Kern splitting the packages and your input
> from the build service project. I did quite a bit of work to get working
> packages again which fit the project guidelines and I'm still fielding some
> bug reports and will be committing more changes this weekend. I also need
>  to add dependency information to the bat package. I would suggest you look
>  at what is currently in project git repo under platforms/rpm.
> 
> I would like to keep compatibility to build on opensuse build service in
>  the project code and so I appreciate your input. My thoughts to your
>  suggestions are below. If you would be willing to submit your thoughts in
>  a patch against the git repo after this weekend when I get some other
>  changes in that would be appreciated.

I absolutely agree that we should work on the specfiles together in order to 
make the bacula packages even better. 

When you are ready with your changes this weekend, just drop me a mail and I 
will try to make the obs build with your new specfile!


Do you have an open suse build service account? If not, I suggest that you get 
one, so that we can work and test the spec files together. 

If you do not know about the obs, I promise that you will love it. 
I have spent quite some time struggling with it, and now that I have my bacula 
packages working, it saves a lot of time, and I would be pleased to show its 
possibilities to you.


> > Subject: Re: [Bacula-devel] Bacula.spec Logwatch issues
> > Date: Monday 01 February 2010
> > From: Philipp Storz <[email protected]>
> > To: [email protected]
> >
> > Hello everybody,
> >
> > as some of you may know, I have a project in the opensuse build service,
> > where I had to make some changes to the specfile for Version 5.
> >
> > You find my diff attached.
> >
> > Changes:
> >
> > - in opensuse  build service, do not build mysql per default
> 
> Why?

The reason is that now I understood one very nice feature in opensuse build 
service: 

I can now make a base package, where I only deriver all other packages, 
like -mysql, -postgres, -singledir etc.

All files are shared between these packages, an obs automatically can add a
 first line
%define build_mysql
to the spec file in this specific package.

This makes it much easier to make needed changes in one "master" specfile, and 
automatically be able to see what this change impacts on all target OS.


> 
> > - removed gconsole, as it is not supported in V5 anymore
> 
> This was done in the 5.0 rpm release.
> 
> > - removed the patching of
> >   src/cats/make_sqlite3_tables.in,
> >   src/cats/create_sqlite3_database.in,
> >   src/cats/make_catalog_backup.in,
> >   src/cats/update_sqlite3_tables.in
> 
> I not only uncommented this, but updated the patches to current code and
> restored the use of embeded sqlite3 from depkgs. The project does not
>  support the use of system sqlite packages or sqlite 2, only the embedded,
>  possibly patched sqlite3 we provide.
> 
> > - copy the examples/sample-query.sql to query.sql, as before, the "query"
> >   command had no queries.
> 
> I don't know what this refers to.

This refers to 
http://www.bacula.org/5.0.x-manuals/en/main/main/New_Features_in_5_0_0.html:
---------------------------
Custom Catalog queries
If you wish to add specialized commands that list the contents of the catalog, 
you can do so by adding them to the query.sql file. This query.sql file is now 
empty by default. The file examples/sample-query.sql has an a number of sample 
commands you might find useful. 
---------------------------
I think that a rpm package should directly use the sample-query.sql file 
installed as the query.sql file, as otherwise the query command would have no 
single entry.

> 
> > - added the files
> >   %{script_dir}/bacula_config
> >   %{script_dir}/make_catalog_backup.pl
> 
> Done in the 5.0 rpm release.
> 
> > - I do not build the qt4 libs from scratch, but I get the package from
> > other opensuse build project where needed.
> 
> Again, the only project support is for building with the depkgs-qt4
>  tarball. The whole point of this change was to insure that the srpm can be
>  rebuilt on any platform. This would be OK in my opinion on a build service
>  build only but it would require a number of new %if sections in my
>  released spec.

I understand the reason for this, but it is really a pain to build qt from 
source, which takes a lot of time, while the most modern OS (except CentOS) 
have a qt version which works. Especially on the OBS, 

The best option would probably be to build an own bacula-qt package, which 
contains the supported qt version, but is independently built from the rest of 
the bacula package, and has not to be rebuilt on every change of the bacula 
spec file.

In my home:dassit:bacula repositoy, a single spec file change leads to rebuilt 
of 15 Packages x 12 Distributions x 2 Architectures (i586,x86_64), and this 
takes a very long time even on the ~200 Build hosts of the build service, when 
you always build qt.


I would be happy to work on the specfiles together with you,

best regards,

Philipp
> > The results of the opensuse build service building my spec can be found
> > on
> >
> > http://download.opensuse.org/repositories/home:/dassit:/bacula:/
> >
> > any feedback on the packages is appreciated.
> >
> >
> > best regards,
> >
> > Philipp
-- 
  Philipp Storz                               [email protected]
  dass IT GmbH                                 Phone:  +49.221.3565666-92
  http://www.dass-IT.de/                        Fax  : +49.221.3565666-10

  Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRB52500 
  GF: Stephan Dühr, Maik Außendorf, Jörg Steffens, Philipp Storz

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to