Koha-clms/debian
Martin Renvoize 5562b26bb0
Bug 40901: (QA follow-up) Fix Z39.50 option expansion and honour the indexer defaults
Two problems in how the units consume koha-generate-env's output:

1. koha-z3950@.service passed ${Z3950_ADDITIONAL_OPTS}. In systemd unit
   files "${VAR}" always expands to exactly one argument, and to a single
   empty argument when the variable is empty; only unbraced "$VAR" is
   word-split. So a configured value like "--add-item-status k -t 5"
   reached z3950_responder.pl as one unknown option, and the default
   empty value reached it as a "" listener address. Verified with
   systemd-run: ${X}="--a --b" gives ["--a --b"], ${Y}="" gives [""],
   $X gives ["--a"] ["--b"]. Use the unbraced form.

2. koha-indexer@.service hardcoded rebuild_zebra.pl -daemon -sleep,
   ignoring ALTERNATE_INDEXER_DAEMON and INDEXER_PARAMS from
   /etc/default/koha-common that the SysV path honours. koha-generate-env
   now resolves INDEXER_DAEMON and INDEXER_PARAMS exactly like
   koha-indexer and the unit runs them through /usr/bin/env, so any
   configured indexer works.

koha-generate-env is also tightened up: numeric values are validated
and fall back to their defaults, every value is forced onto one line
without quote characters so the EnvironmentFile always parses, the
debug_mode test matches is_debug_mode, Z3950_ADDITIONAL_OPTS is read
from /etc/default/koha-common first (as before this patchset), the
Z39.50 config dir uses the same config.xml test as is_z3950_enabled,
the env dir is created with the instance's ownership if it does not
exist yet, and unknown services get an empty env file instead of a
chmod failure. The responder is invoked through /usr/bin/perl like the
other Perl daemons.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-09-29 09:02:31 +00:00
..
docs Bug 32736: Add --all-queues switch to koha-worker 2026-01-12 10:26:06 -07:00
scripts Bug 40901: (QA follow-up) Make koha-common.service a dependency-free shim 2026-09-29 09:02:30 +00:00
source Bug 32994: Remove compiled files from src (2) 2023-02-22 10:03:25 -03:00
systemd Bug 40901: (QA follow-up) Fix Z39.50 option expansion and honour the indexer defaults 2026-09-29 09:02:31 +00:00
templates Bug 40901: (QA follow-up) Remove redundant unit files ( koha-sysv.service, koha-worker@.service ) 2026-09-29 09:02:13 +00:00
README.build
…
bd-to-depends
…
build-git-snapshot Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
changelog Update debian/changelog file: 22.12.00-3 2023-02-20 09:44:12 -03:00
clean Bug 32994: Remove compiled files from src (2) 2023-02-22 10:03:25 -03:00
compat
…
control Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
control.in Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
copyright Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
koha-common.README.Debian
…
koha-common.docs Bug 35713: Remove outdated debian/docs/LEEME.Debian file 2024-01-11 12:10:45 +01:00
koha-common.maintscript Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-common.postinst Bug 40901: (QA follow-up) Restore the RabbitMQ and memcached steps in koha-common.postinst 2026-09-29 09:02:25 +00:00
koha-common.preinst Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.bash-completion Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.config Bug 40901: (QA follow-up) Migrate debconf answers from koha-common to koha-core 2026-09-29 09:02:26 +00:00
koha-core.dirs Bug 26672: Add additional koha-core and koha-full files to ./debian 2020-11-25 16:18:03 +01:00
koha-core.docs Bug 35713: Remove outdated debian/docs/LEEME.Debian file 2024-01-11 12:10:45 +01:00
koha-core.install Bug 33108: koha-es-indexer added 2023-03-20 09:39:45 -03:00
koha-core.koha-common.cron.d Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.cron.daily Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.cron.hourly Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.cron.monthly Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.default Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.logrotate Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.links Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.maintscript Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.postinst Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.preinst Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.templates Bug 26672: Add additional koha-core and koha-full files to ./debian 2020-11-25 16:18:03 +01:00
koha-full.postinst Bug 40901: (QA follow-up) Restore the RabbitMQ and memcached steps in koha-common.postinst 2026-09-29 09:02:25 +00:00
koha-post-install-setup Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
koha-systemd.README.Debian Bug 40901: Add koha-systemd package with native systemd units 2026-09-29 09:01:21 +00:00
koha-systemd.dirs Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
koha-systemd.install Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
koha-systemd.postinst Bug 40901: (QA follow-up) Don't stop all Koha services on every koha-systemd upgrade 2026-09-29 09:02:15 +00:00
koha-systemd.prerm Bug 40901: Add koha-systemd package with native systemd units 2026-09-29 09:01:21 +00:00
koha-sysv.koha-common.init Bug 40901: (QA follow-up) Install the SysV init script through dh_installinit 2026-09-29 09:02:22 +00:00
koha-sysv.postinst Bug 40901: (QA follow-up) Install the SysV init script through dh_installinit 2026-09-29 09:02:22 +00:00
koha.README.Debian
…
koha.apache-ports
…
koha.config
…
koha.dirs
…
koha.install
…
koha.postinst Bug 25691: Replace link to non-existing README with wiki link 2024-01-16 12:06:08 +01:00
koha.postrm
…
koha.prerm
…
list-deps Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
rules Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
unavailable.html
…
update-control
…

README.build

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.