app-backup/bacula: veraion 5.0.0 has been released Reproducible: Always Steps to Reproduce:
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.
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
Now I tested by submitted ebuild with bacula-dir and bacula-sd as well. They all work as expected.
Tested, works. BTW: ther is an option gor gnome-console: --enable-gnome enable build of bgnome-console GUI [default=no]
5.0.1 is avalable. Will attach ebuild with additional fix
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)
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
Created attachment 221343 [details] bacula-gnomesu2gksu.diff (updated version) put this into the files/5.0.1 directory
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?
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.
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.
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 :)