Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302162 - app-backup/bacula: version bump to 5.0.1
Summary: app-backup/bacula: version bump to 5.0.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Wolfram Schlich (RETIRED)
URL: http://www.bacula.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-25 12:40 UTC by Marc Schiffbauer
Modified: 2010-03-23 10:21 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bacula 5.0.0 ebuild (bacula-5.0.0.ebuild,14.91 KB, text/plain)
2010-01-25 14:06 UTC, Marc Schiffbauer
Details
Update to new ebuild (bacula-5.0.0.ebuild,14.21 KB, text/plain)
2010-01-25 14:17 UTC, Marc Schiffbauer
Details
bacula-5.0.1.ebuild (bacula-5.0.1.ebuild,14.53 KB, text/plain)
2010-02-26 16:04 UTC, Marc Schiffbauer
Details
bacula-5.0.1.ebuild (bacula-5.0.1.ebuild,14.87 KB, text/plain)
2010-02-26 17:03 UTC, Marc Schiffbauer
Details
bacula-gnomesu2gksu.diff (updated version) (bacula-gnomesu2gksu.diff,2.28 KB, text/plain)
2010-02-26 17:04 UTC, Marc Schiffbauer
Details
bacula-miscbuildfixes.patch (bacula-libssl.patch,3.04 KB, patch)
2010-03-09 18:35 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2010-01-25 12:40:58 UTC
app-backup/bacula: veraion 5.0.0 has been released

Reproducible: Always

Steps to Reproduce:
Comment 1 Marc Schiffbauer gentoo-dev 2010-01-25 14:06:52 UTC
Created attachment 217386 [details]
bacula 5.0.0 ebuild

Improvements:
 * get rid of bacula-default-configs.patch (replaced by simple shell snipped)
   this way there is no need for a new patch on every bacula release

TODO:
 * test with bacula-dir and -sd
 * check for updates to default config files


This ebuild ist tested with "bacula-clientonly bacula-console mysql postgres python qt4 readline sqlite3 ssl tcpd" USE flags set only.
Comment 2 Marc Schiffbauer gentoo-dev 2010-01-25 14:17:38 UTC
Created attachment 217387 [details]
Update to new ebuild

Additional changes:
* remove gnome USE flag and gnome-console stuff as there is not gnome-console anymore
Comment 3 Marc Schiffbauer gentoo-dev 2010-01-26 14:57:42 UTC
Now I tested by submitted ebuild with bacula-dir and bacula-sd as well. They all work as expected.
Comment 4 Janusz 2010-01-27 20:55:01 UTC
Tested, works.

BTW:

ther is an option gor gnome-console:

 --enable-gnome          enable build of bgnome-console GUI [default=no]  
Comment 5 Marc Schiffbauer gentoo-dev 2010-02-26 16:00:39 UTC
5.0.1 is avalable. Will attach ebuild with additional fix
Comment 6 Marc Schiffbauer gentoo-dev 2010-02-26 16:04:27 UTC
Created attachment 221339 [details]
bacula-5.0.1.ebuild

This ebeuild is for bacula 5.0.1

Additional changes:

- fixed: out of the box readline support is broken on gentoo because of hardcoded
  -ltermcap which must be -lncurses on gentoo
  (readline is required to have the tab completion feature new in bacula 5)

TODO: reinsert the gnome-console support that I removed on error (sorry)
Comment 7 Marc Schiffbauer gentoo-dev 2010-02-26 17:03:20 UTC
Created attachment 221341 [details]
bacula-5.0.1.ebuild

Another update:

* change USE wxwindows (deprecated) to wxwidgets
* re-added gnome use flag for desktop files (maybe there should be a generic desktop use flag or something as we might have gnome or kde desktop ...)
* and NO, gnome-console is NOT supported anymore (the --enable-gnome option gives an error that its not supported anymore...)

To make this ebuild work you have to create a files/5.0.1 folder and put the files from the 3.0.3 folder into it - all but bacula-default-configs.patch which is not required anymore in my ebuild, and the updated patch for the desktop files which I will also attach.

Tested:
* bwx-console: works
* bat: works
* bacula-tray-monitor: works
* fd/sd/dir: work
* bconsole with tab completion: works
Comment 8 Marc Schiffbauer gentoo-dev 2010-02-26 17:04:33 UTC
Created attachment 221343 [details]
bacula-gnomesu2gksu.diff (updated version)

put this into the files/5.0.1 directory
Comment 9 Janusz 2010-02-27 21:02:00 UTC
5.0.1 ebuild tested, works. Sorry for misleading you with --enable-gnome, I've just saw it but never turn it on.

Anyway, when can we have this in ~ Portage branch?
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2010-03-09 18:29:21 UTC
emerge succeeds, but it fails to build many programs. So we need to fix following:

1. Fix build system so it aborts in case something fails to build.

2. Builds libraries that use ssl libs but build system does not pass -lcrypto -lssl on command line:

/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/libtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -Wl,--as-needed,-O1 -L../lib -o bsmtp bsmtp.o -lbac -lm  -lpthread -ldl   -lssl -lcrypto
/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/src/lib/.libs/libbac.so: undefined reference to `TLSv1_method'

/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/libtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -Wl,--as-needed,-O1 -L/usr/lib -L../lib -L../cats -o bconsole console.o console_conf.o authenticate.o  \
               -lreadline -lhistory -lncurses -lbaccfg -lbac -lm -lpthread -ldl   \
              -lssl -lcrypto
/usr/lib/libbac.so: undefined reference to `TLSv1_method'

3. Linking with system wide library while it should use locally built:
/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/libtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -Wl,--as-needed,-O1 -L/usr/lib -L../lib -L../cats -o bconsole console.o console_conf.o authenticate.o  \
               -lreadline -lhistory -lncurses -lbaccfg -lbac -lm -lpthread -ldl   \
              -lssl -lcrypto
/usr/lib/libbac.so: undefined reference to `TLSv1_method'


4. fails to mention libbac.la for linking:

/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/libtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -g -Wl,--as-needed,-O1 -o testfind testfind.o ../dird/dird_conf.o ../dird/inc_conf.o ../dird/run_conf.o -L. -L../lib -L../findlib \
           -lbacfind -lbaccfg -lbac -lm -lpthread -ldl   -lssl -lcrypto
/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/src/findlib/.libs/libbacfind.so: undefined reference to `alist::get(int)'
/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/src/findlib/.libs/libbacfind.so: undefined reference to `sm_malloc(char const*, int, unsigned int)'

5. Does not path -lpthread, while using threads:

/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/libtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -g -Wl,--as-needed,-O1 -L. -L../lib -o bwild bwild.o \
           -lbac -lm -lpthread -ldl   -lssl -lcrypto
/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/libtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -g -Wl,--as-needed,-O1 -L. -L../lib -o bregex bregex.o \
           -lbac -lm -lpthread -ldl   -lssl -lcrypto
/var/tmp/portage/app-backup/bacula-5.0.1/work/bacula-5.0.1/src/lib/.libs/libbac.so: undefined reference to `pthread_key_create'

I'll provide patch for the last items shortly but in general if we want reliable package, somebody needs to review build system and fix this similar errors in other places too. I'm short of time atm.
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2010-03-09 18:35:17 UTC
Created attachment 222879 [details, diff]
bacula-miscbuildfixes.patch

Ok this is rough patch which made things working here at least in one configuration... But again somebody needs to review these things.
Comment 12 Wolfram Schlich (RETIRED) gentoo-dev 2010-03-23 10:21:30 UTC
Peter, can you please report the build system issues upstream?
5.0.1-r2 is in the tree, but I missed some fixes that are in your patch.

I think I'm going to drop maintainership of bacula as I don't have time
for this stuff either :)