bacula7-check_bacula
Build times (auto-updated)
- x86_64: 39s (2026-11-19 09:19 UTC, MAKEFLAGS=-j6)
- armv7h: 8m37s (2026-11-19 09:30 UTC, remote, MAKEFLAGS=-j4)
- Path:
private/bacula7-check_bacula - Category: private (not AUR – user decided against publishing, “presumably
just me is using it”, 2026-11-19; the rest of the
bacula7family lives here too, for the unrelated reason of a pkgname collision with the newer AURbaculasplit – seeprivate/bacula7/PKGBUILD’s own header comment). - I first created it under
maintained/assuming a fresh AUR submission (nocheck_bacula/bacula7-check_baculaexists on AUR); the user moved+committed it toprivate/and clarified the real intent before I noticed the category mismatch myself.
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
- Used bare
extra-x86_64-buildfirst (wrong – official-repo-only chroot config) – failed withtarget not found: bacula7-common/openssl-1.0, neither of which are official-repo packages. Neededarchlinuxaba-x86_64-build(or, better, justrepo_release.sh, which resolves the right per-arch build command itself) – seememory/TOOLING_NOTES.md’s entry on exactly thisarchlinuxaba-archbuildvs plainarchbuilddistinction. bacula7-commonis currently only published forx86_64andarmv7h(confirmed viaOVERVIEW.md:❌aarch64 ❌armv6h ✅armv7h ❌i686 ✅x86_64for the wholebacula7family as of 2026-11-19) – a pre-existing gap inbacula7itself, not something this package caused.repo_release.sh’s first full run therefore failedi686/armv6h/aarch64on a genuinely missing dependency (expected, not a bug) and also hitx86_64 FAILEDon the known same-pkgver-pkgrel stale-pacman- cache gotcha (same-dayopenssl-1.0rebuild, differentSOURCE_DATE_EPOCHeach time – seeTOOLING_NOTES.md’s dated entry on this exact failure mode). Retried withREPO_BUILD_ONLY_ARCH="x86_64 armv7h"(the two arches that actually havebacula7-commonavailable) 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.
configuregenuinely requires either--enable-client-onlyor a real DB backend – my assumption thatDB_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 flipsALL_DIRSaway fromsubdirs(confirmed inconfigure’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-onlytobuild().make -C examples/nagios/check_bacula installdoesn’t create its own destination directory – that subdir’sMakefile.injust does$(INSTALL_PROGRAM) check_bacula $(DESTDIR)$(sbindir)/check_baculawith noinstalldirs/mkdir -pstep of its own (that’s normally done by a top-levelmake installwe never run, since we only build+install this one subdir). Fixed with an explicitinstall -d "${pkgdir}/usr/lib/monitoring-plugins"at the top ofpackage()before callingmake install.armv7h(eurobuild5) had a real, pre-existing, unrelated file conflict: that board already had a package calledbacula-clientinstalled, owning/usr/lib/libbac-7.4.7.so,/etc/bacula/scripts/{bacula_config,btraceback.*},/usr/bin/btraceback, etc – the exact same pathsbacula7-commoninstalls.bacula7-check_bacula’s own build never got far enough to fail on its own merits;pacmanrefused to even install thebacula7-commondependency there. Resolved by the user (installedbacula7-commononeurobuild5directly, 2026-11-19) – retried withREPO_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.