aurupdater

bacula7-check_bacula

Build times (auto-updated)


What it packages

examples/nagios/check_bacula from the same bacula-7.4.7 source tarball as bacula7 – a standalone Nagios plugin (check_bacula -H <host> -D director|client|storage -M <name> -P <port> -K <password>) that speaks Bacula’s native socket protocol directly, no catalog/DB access needed.

Reuses bacula7’s own 4 build-compat patches (00-qmake4.patch, 01-basename.patch, 02-conio-termios.patch, 03-fstype-narrowing.patch) – needed for the top-level ./configure/make to succeed on this ~2015-era source tree against a modern toolchain, same as bacula7 itself.

Build approach: upstream’s own make bacula-fd top-level target (builds src, src/lib [libbac], src/findlib, src/filed, src/console, etc – the client-only subset) instead of full make all (which also builds src/cats/dird/stored, none of which check_bacula links against – confirmed via its Makefile.in: only -lbac -lm $(LIBS) $(OPENSSL_LIBS)). Then make -C examples/nagios/check_bacula (never part of any top-level target’s subdir list) and that subdir’s own install target ($(DESTDIR)$(sbindir)/check_bacula) – top-level --sbindir= is set to /usr/lib/monitoring-plugins (same plugin-dir convention as nrpe/ monitoring-plugins in this project) specifically so that install step lands in the right place with no manual cp.

--without-mysql --without-postgresql --without-sqlite3 – configure supports a real DB_BACKENDS="none" state; check_bacula needs no catalog driver at all, so skipping all three avoids sqlite/postgresql-libs makedepends entirely (unlike bacula7-dir, which needs at least one).

Runtime dependency, not a bundled copy: depends=('bacula7-common' 'openssl-1.0') – check_bacula dynamically links libbac-7.4.7.so (built via libtool during this package’s own build, from the identical source), and since it’s the exact same upstream version, it resolves against bacula7-common’s already-installed copy of that same .so at runtime rather than needing its own.

2026-11-19: first build attempt, two real findings

  1. Used bare extra-x86_64-build first (wrong – official-repo-only chroot config) – failed with target not found: bacula7-common / openssl-1.0, neither of which are official-repo packages. Needed archlinuxaba-x86_64-build (or, better, just repo_release.sh, which resolves the right per-arch build command itself) – see memory/TOOLING_NOTES.md’s entry on exactly this archlinuxaba-archbuild vs plain archbuild distinction.
  2. bacula7-common is currently only published for x86_64 and armv7h (confirmed via OVERVIEW.md: ❌aarch64 ❌armv6h ✅armv7h ❌i686 ✅x86_64 for the whole bacula7 family as of 2026-11-19) – a pre-existing gap in bacula7 itself, not something this package caused. repo_release.sh’s first full run therefore failed i686/armv6h/ aarch64 on a genuinely missing dependency (expected, not a bug) and also hit x86_64 FAILED on the known same-pkgver-pkgrel stale-pacman- cache gotcha (same-day openssl-1.0 rebuild, different SOURCE_DATE_EPOCH each time – see TOOLING_NOTES.md’s dated entry on this exact failure mode). Retried with REPO_BUILD_ONLY_ARCH="x86_64 armv7h" (the two arches that actually have bacula7-common available) rather than burning time on the other three again.

Kept arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') matching bacula7’s own declared (if not fully published) arch=() rather than narrowing it – same aspirational-row convention already visible on bacula7-common itself in OVERVIEW.md.

  1. configure genuinely requires either --enable-client-only or a real DB backend – my assumption that DB_BACKENDS="none" (reached by passing --without-{mysql,postgresql,sqlite3} alone) was a legal standalone state was wrong; it’s only reachable via --enable-client-only, which also flips ALL_DIRS away from subdirs (confirmed in configure’s own source, not just trial and error). Without it: You have not specified either --enable-client-only or one of the supported databases ... Aborting the configuration. Added --enable-client-only to build().
  2. make -C examples/nagios/check_bacula install doesn’t create its own destination directory – that subdir’s Makefile.in just does $(INSTALL_PROGRAM) check_bacula $(DESTDIR)$(sbindir)/check_bacula with no installdirs/mkdir -p step of its own (that’s normally done by a top-level make install we never run, since we only build+install this one subdir). Fixed with an explicit install -d "${pkgdir}/usr/lib/monitoring-plugins" at the top of package() before calling make install.
  3. armv7h (eurobuild5) had a real, pre-existing, unrelated file conflict: that board already had a package called bacula-client installed, owning /usr/lib/libbac-7.4.7.so, /etc/bacula/scripts/{bacula_config,btraceback.*}, /usr/bin/btraceback, etc – the exact same paths bacula7-common installs. bacula7-check_bacula’s own build never got far enough to fail on its own merits; pacman refused to even install the bacula7-common dependency there. Resolved by the user (installed bacula7-common on eurobuild5 directly, 2026-11-19) – retried with REPO_BUILD_ONLY_ARCH=armv7h, built and published cleanly, 8m37s.

Published 2026-11-19: x86_64 (39s) and armv7h (8m37s), 7.4.7-1, both clean builds, no real namcap warnings beyond the usual harmless implicit-dependency/unused-shared-library noise and the environment’s known-broken checkpkg (see TOOLING_NOTES.md). i686/armv6h/aarch64 still blocked on bacula7-common not being published there at all (finding #2 above) – revisit if that coverage improves.