Package Details: bacula-bat 7.4.3-1

Git Clone URL: https://aur.archlinux.org/bacula.git (read-only)
Package Base: bacula
Description: Bacula - A Network Backup Tool (management GUI)
Upstream URL: http://www.bacula.org
Licenses: AGPL3
Submitter: None
Maintainer: MarcinWieczorek
Last Packager: MarcinWieczorek
Votes: 29
Popularity: 0.216887
First Submitted: 2014-04-25 13:59
Last Updated: 2016-09-18 17:49

Latest Comments

maleckii commented on 2016-09-12 05:34

Unfortunately, I am no longer using Arch Linux and must disown this package.

mfulz commented on 2016-09-11 10:39

Could you update the package to 7.4.3 it fixes the issues with actual gcc and the crashes during status.

badbytes commented on 2016-07-13 19:06

==> Starting package_bacula-bat()...
~/aur_build/bacula/install ~/aur_build/bacula/src
cp: cannot stat 'usr/bin/bat': No such file or directory
==> ERROR: A failure occurred in package_bacula-bat().
Aborting...

SebiH commented on 2016-07-05 10:57

Has anyone tried this with a recent version of GCC (e.g. gcc-6.1.1-2)?

bacula-sd seems to crash on startup due to either a bug within bacula-sd or GCC. I've filed a bug report against bacula [1], but he points towards GCC (since it works fine with -O0, or a previous version of GCC, e.g. gcc-5.4.x).

Haven't read about this anywhere else. Is this just an issue on my setup?

[1]: http://bugs.bacula.org/view.php?id=2231 (login is anonymous/anonymous)

ektich commented on 2016-03-27 17:14

alsa-utils 1.1.0-2 has been released that fixes the name conflict on /usr/bin/bat. There is no need to apply my patch anymore.

ektich commented on 2016-03-21 10:14

I've opened bug report against alsa-utils: https://bugs.archlinux.org/task/48654.

ektich commented on 2016-03-09 17:51

I agree, if alsa-utils will rename their binary there's no point in temporarily renaming bat in here. I should warn people using my patch that it is somehow incomplete: it won't modify the /usr/share/applications/bat.desktop file, rendering the icon in the menu unworkable. I think to make it work again one should change "Exec" line to be "Exec=/usr/bin/bacula-bat -c /etc/bacula/bat.conf"

maleckii commented on 2016-03-09 17:21

From what I can gather in discussions on both the Debian mailing lists and the alsa-utils upstream lists, this should be handled by patching alsa-utils upstream. There is an upstream patch under review for alsa-utils, but they haven't yet reached consensus on the new name for their /usr/bin/bat.

I don't think it would be proper to rename this package's binary because alsa-utils is likely to change their name in the near future and going back and forth would cause confusion. In the meantime, feel free to apply ekitch's patch to PKGBUILD as a temporary workaround. That said, I am also unsure what Arch's policy is on situations like this.

ektich commented on 2016-03-09 10:02

EDIT: alsa-utils 1.1.0-2 has been released that fixes the name conflict. This comment is left here for historical reasons.

the file name conflict between bacula-bat-7.4.0-1 and alsa-utils-1.1.0-1 still exists.
I've created a patch that install bacula's bat as /usr/bin/bacula-bat.

https://gist.github.com/ektich/9e887c0e83b2ca402e72

kisanth commented on 2016-03-04 15:18

Edit PKGBUILD
Remove parentheses from install statements:
install=("bacula.install") => install="bacula.install"
Add parentheses to provides and replaces:
provides="${pkgbase}-dir-mysql" => provides=("${pkgbase}-dir-mysql")
replaces="${pkgbase}-dir-mysql" => replaces=("${pkgbase}-dir-mysql")

Now it will work...

boscowitch commented on 2016-02-26 13:10

Though about testing it if it's worth deploying...
unforunately it fails install right at the beginning no mather if I say yes or no to:
Install only bacula-bat ? [Y/n]
==> -------------------------------
==>
==> ERROR: install should not be an array
==> ERROR: install should not be an array
==> ERROR: install should not be an array
==> ERROR: install should not be an array
==> ERROR: install should not be an array
==> ERROR: install should not be an array
==> ERROR: provides should be an array
==> ERROR: replaces should be an array
==> ERROR: install should not be an array
==> ERROR: install should not be an array
==> ERROR: Makepkg was unable to build bacula.

Thats always the result...

morlix commented on 2015-11-20 07:51

The current PKGBUILD doesn't create the working directory if only bacula-common, bacula-console and bacula-fd will be installed.

CptnChristo commented on 2015-11-17 23:55

With release of core package alsa-utils-1.1.0-1, there is a name conflict for /usr/bin/bat (i.e. the bacula administration tool). I'm passing along this info in case AUR packages must be modified to avoid conflicts with core packages.

maleckii commented on 2015-11-02 05:58

Since I'm actively using this in production, I may as well maintain it.

* Updated to 7.2.0
* /var/log/bacula is now created by the package
* Hostname in config files is now generated at package install time
* Removed tcp_wrappers support, since tcp_wrappers hasn't been in Arch for some time, and I'm not sure anyone is actually using it.

AlD commented on 2015-10-31 13:43

FYI, I'm disowning these packages as I moved on to Bareos.

georgnix commented on 2015-10-02 09:12

I tested disaster recovery with the new 7.2.0 version yesterday. It worked with some fiddling around. Just to document it here, there are some more or less minor glitches with the packaging:

* /var/log/bacula is not created by the packages, this causes the start of the director to fail.
* /etc/bacula/scripts is not readable for user postgres. Thus database scripts cannot be executed properly. I think it would it be OK to have /etc/bacula and children world readable as long as the config files are only readable by root (clear text passwords).
* Generated config files are in the package, i.e. static. They should be generated at package installation to have unique passwords and proper hostname.

If anybody wants to fix the PKGBUILD, go ahead. I probably won't find the time to do it myself.

georgnix commented on 2015-10-01 14:29

I created an updated PKGBUILD for bacula 7.2.0 with additional minor fixes.

http://www.george-net.de/aur/bacula/PKGBUILD-bacula-7.2.0

Diff against the old PKGBUILD to see the changes.

lka commented on 2015-09-21 15:04

Installation successful, systemctl status bacula-fd successful loaded and running, but server (bacula-dir, 2nd maschine) can't connect to client (arch).
Nmap shows tcp port 9102 st up, but servers bconsole (status client arch) says no. By the way all other systems (non-arch) work fine, so i think my configuration is ok. I don't know why there is no respone from bacula-fd.

xisberto commented on 2015-09-02 15:43

Anyone can successfully install bacula-fd?

It depends on tcp_wrappers, but its upstream URL can not be reached.

wespe commented on 2015-04-16 05:54

When trying to install the build package I get the following error:

error: missing package metadata in bacula-7.0.5.tar.gz
error: 'bacula-7.0.5.tar.gz': invalid or corrupted package

AlD commented on 2015-03-06 01:13

Oh and configure flags haven't changed, tcp_wrappers were always enabled.

AlD commented on 2015-03-06 01:04

Thanks for the patch, georgnix. Tweaked it slightly, let me know if there are problems.

georgnix commented on 2015-03-04 21:29

@lockheed

Download the AUR tarball, extract, download the patch, then
$ patch -p0 < 2015-03-04-PKGBUILD.patch
$ makepkg
Install the relevant packages with pacman.

lockheed commented on 2015-03-04 20:15

@georgnix, I see you wrote a patch that might address my problem.

After installing bacula on server, when I try to run bacula-dir, I get
bacula-dir: error while loading shared libraries: libbaccats-7.0.5.so: cannot open shared object file: No such file or directory

If you patch solves it, then how do I apply it? I have no idea how to do it.

georgnix commented on 2015-03-04 17:35

@AlD Did you change the configure flags since 7.0.4?
Suddenly bacula daemons respect /etc/hosts.allow which I had to find out the hard way
bacula-dir -d 10000 ... also gives every config lexer token ... *YUCK*

Does anybody use tcp wrappers? I don't and would be happy if this would be removed from the build. There are firewalls these days...

georgnix commented on 2015-03-04 16:28

http://www.george-net.de/aur/bacula/2015-03-04-PKGBUILD.patch

# Patch for bacula AUR package.
# Date: 2015-03-04 Georg Altmann <george@george-net.de>
#
# 1) Create working directory on install.
# 2) Install libbaccats.so with the current version in the filename instead of
# 7.0.3
# 3) Make bacula-dir-* backend packages conflict with each other: They install
# the same file/symlink ${pkgdir}/usr/lib/libbaccats-${pkgver}.so

ill commented on 2015-02-08 05:16

@khouli: Remove all of teh bacular-dir-* from the PKGBUILD and install them one-by-one if you need them.

ill commented on 2015-02-08 05:14

@khouli:

Remove those from the PKGBUILD and then install them after.

ill commented on 2015-02-08 04:45

@khouli:

Edit the PKGBUILD to only include bacula-bat, bacula-common, and bacula-dir. If you need db support you can add those after.

lockheed commented on 2015-01-29 10:04

Could you make it compatible with armv6h (Raspberry Pi)? Even if I manually add this arch to PKGBUILD, I get lib install warnings during compilation and meta errors prevent from installing the compiled package.

khouli commented on 2015-01-01 07:17

If I try to install aur/bacula-common I get this:

error: failed to commit transaction (conflicting files)
/usr/lib/libbaccats-7.0.3.so exists in both 'bacula-dir-mariadb' and 'bacula-dir-postgresql'
/usr/lib/libbaccats-7.0.3.so exists in both 'bacula-dir-mariadb' and 'bacula-dir-sqlite3'
/usr/lib/libbaccats-7.0.3.so exists in both 'bacula-dir-postgresql' and 'bacula-dir-sqlite3'
Errors occurred, no packages were upgraded.

No /usr/lib/libbac* exists on my computer and querying pacman shows that I have no bacula components installed. This seems to be an issue with the package itself.

I'm also getting a failing PGP signature for aur/bacula-client.

Suggestions? Thanks.

AlD commented on 2014-12-01 00:22

Updated, thanks.

PLum commented on 2014-11-26 14:44

version 7.0.5 is on the air :-)

AlD commented on 2014-07-23 10:30

Sure, thanks.

Anonymous comment on 2014-07-23 10:29

To be honest, I don't use arch linux anymore - nor Bacula....

If you'd like to take these packages over, I'd be more than happy to orphan them....

AlD commented on 2014-07-23 09:38

I was about to create a split package for bacula when I noticed that you already incorporated all the other packages into this one. If you'd like to adopt my packages bacula-common, -bat, -fd, -console, I'd orphan them. Let me know.

Would you be also interested in maintaining a bareos version of this?

Anonymous comment on 2014-05-08 02:27

This split package builds the following:
bacula-bat - management GUI
bacula-client - Client (bacula-fd)
bacula-common - common files
bacula-console - management CLI
bacula-dir - director daemon
bacula-dir-mysql - director daemon - mysql support
bacula-dir-postgresql - director daemon - postgresql support
bacula-dir-sqlite3 - director daemon - sqlite3 support
bacula-sd - storage daemon

maleckii commented on 2014-01-19 21:51

I do use this. I'll adopt it.

macxcool commented on 2013-10-02 20:20

I don't use this anymore and there doesn't seem to be much interest in it. I'm disowning it.

nemamradfazole commented on 2013-09-27 16:05

Improvements are as follows:
1. mkdir -p nonexisting directory in PKGBUILD
2. chown only in post_install, never in PKGBUILD
3. in DB scripts use mysql -p for asking for password
4. refrain from using rc.d scripts, Arch Linux works with systemd

nemamradfazole commented on 2013-09-27 16:02

Improvements are as follows:
1. mkdir -p nonexisting directory in PKGBUILD
2. chown only in post_install, never in PKGBUILD
3. in DB scripts use mysql -p for asking for password

nemamradfazole commented on 2013-09-27 15:31

After manually adding bacula:bacula, there's another error - cannot touch pkg/bacula-mariadb/var/log/bacula.log, there's no log under var... please double check PKGBUILDs before posting them in AUR.

nemamradfazole commented on 2013-09-27 15:08

During build of the package, chown cannot change to „bacula:bacula“ (the user doesn't exist), could you please correct that?

macxcool commented on 2013-06-11 14:26

This package is meant to replace the 'bacula-mysql' package (which replaced the 'bacula' package when it got kicked to the AUR). It is based on the great bacula-postgresql package.

macxcool commented on 2013-06-11 14:25

I've created a bacula-mariadb package to replace this one. I'm disowning this package. The new package is modelled after the very-nice bacula-postgresql package.

macxcool commented on 2013-06-10 12:31

I'll be doing some work on this one in the next day or two. I'm upgrading to the newest version and switching over to MariaDB as well. I'll be disowning this package and creating a new bacula-mariadb package. I'm doing the upgrade on my own server, so I'll test things there.

Malvineous commented on 2013-06-10 01:40

To make this work with the recent removal of /usr/sbin, edit the PKGBUILD and add "--sbindir=/usr/bin" to the "./configure" line. You'll also have to change "sbin" to "bin" in the "chmod" command on the second last line.

You can also remove the line "--enable-bat --enable-tray-monitor --enable-bwx-console" if you don't want the Qt dependency.

I also got these errors trying to start the updated daemon:

$ systemctl start bacula-fd
Failed to issue method call: Unit syslog.target failed to load: No such file or directory. See system logs and 'systemctl status syslog.target' for details.
$ systemctl status syslog.target
syslog.target
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)

To fix this I edited /usr/lib/systemd/system/bacula-fd.service and removed "syslog.target" from two lines. I think this should be removed because systemd is supposed to be handling logging now.

Anonymous comment on 2013-04-29 19:40

Not sure why, but the when I run makepkg -s I get lots of errors about directories that are not created. I did modify the PKGBUILD to put things in different directories, but does this have to be manually specified elsewhere? I did that in a couple instances, but after rerunning I get the same error for some other directory that is missing.

JoKoT3 commented on 2013-03-20 18:21

You should add a depend to syslog, with a full systemd install, I have the following error when starting services from systemd :
Failed to issue method call: Unit syslog.target failed to load

AlD commented on 2013-03-08 14:28

@mfulz: You're experiencing the same problem as previous commenters, which I cannot reproduce on a vanilla Arch installation.
AFAIK ${srcdir}/bacula-${pkgver}/src/qt-console/bat would be the libtool script.

mfulz commented on 2013-03-06 21:13

Tried to update today and receive:
make[1]: Leaving directory `/tmp/yaourt-tmp-olz/aur-bacula-bat/src/bacula-5.2.13/manpages'
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat ‘/tmp/yaourt-tmp-olz/aur-bacula-bat/src/bacula-5.2.13/src/qt-console/.libs/bat’: No such file or directory

Could you change the PKGBUILD at line 39:
false:
install -m755 ${srcdir}/bacula-${pkgver}/src/qt-console/.libs/bat ${pkgdir}/usr/bin/bat

Correct:
install -m755 ${srcdir}/bacula-${pkgver}/src/qt-console/bat ${pkgdir}/usr/bin/bat

AlD commented on 2013-03-04 10:00

Yea, annoyingly symlinks in the qt4 package were changed multiple times. Hope we're sticking with qmake-qt4 now.

mfulz commented on 2013-03-01 23:57

you're checking in the qmake4 patch for qmake4, which is not installed with the needed deps.

As a workaround I symlinked qmake4 to qmake-qt4, but I think it would be better to adjust the patch using qmake-qt4 directly?

BR,

Matthias

AlD commented on 2013-03-01 12:22

Thanks, updated.

BertVoegele commented on 2013-03-01 11:30

1. qt is now qt4
2. bacula-5.2.13 is out

AlD commented on 2013-02-04 16:10

Unfortunately I'm unable reproduce that problem.

Anonymous comment on 2013-01-23 19:46

Having same problem. Whole output here:

http://pastebin.com/aPU2NK80

AlD commented on 2013-01-22 15:42

@slot: Please provide the whole output, e. g. via https://gist.github.com/.

slot commented on 2013-01-22 14:47

I get error here in the end:
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat ‘/tmp/..../aur-bacula-bat/src/bacula-5.2.12/src/qt-console/.libs/bat’: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Makepkg was unable to build bacula-bat.
==> Restart building bacula-bat ? [y/N]

BertVoegele commented on 2012-10-30 22:12

@slot : unfortunately "bat" is not included in "bacula-client".

slot commented on 2011-03-12 22:50

FYI: Bat is also included in bacula-client

Anonymous comment on 2010-10-01 09:34

For 5.0.3 version:

http://aur.pastebin.com/M3xLvtGN