https://bugs.openldap.org/show_bug.cgi?id=10495
Issue ID: 10495 Summary: Environment variable for Systemd is ignored by configure Product: OpenLDAP Version: 2.6.13 Hardware: All OS: Linux Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: build Assignee: bugs@openldap.org Reporter: openldap.aftermost863@passinbox.com Target Milestone: ---
Hello,
When using the configure script to generate the Makefile, the documentation in the --help option states that the environment variable 'systemdsystemunitdir' can be used to override the default system path for Systemd units.
However, this does not work: if I export the variable with a valid existing path (e.g. 'export systemdsystemunitdir=/tmp/test') and then run ./configure, the variable is found but is ignored in the output variables and is therefore not used in the Makefile. config.log: ... ## ---------------- ## ## Cache variables. ## ## ---------------- ## ... ac_cv_env_systemdsystemunitdir_set=set ac_cv_env_systemdsystemunitdir_value=/tmp/test ... ## ----------------- ## ## Output variables. ## ## ----------------- ## ... systemdsystemunitdir='/usr/lib/systemd/system' ...
The configure script seems to override that variable on line 23942: systemdsystemunitdir=
I don’t quite understand why this line is there, and it seems suspicious to me. However, if I remove it and run ./configure again in the exact same shell, config.log now shows the correct path in the output variables, and the Makefile uses it correctly afterward: ... ## ---------------- ## ## Cache variables. ## ## ---------------- ## ... ac_cv_env_systemdsystemunitdir_set=set ac_cv_env_systemdsystemunitdir_value=/tmp/test ... pkg_cv_systemdsystemunitdir=/tmp/test ## ----------------- ## ## Output variables. ## ## ----------------- ## ... systemdsystemunitdir='/tmp/test'
I had this issue on both Debian 13 (using bash) and Arch Linux (using zsh).
https://bugs.openldap.org/show_bug.cgi?id=10495
openldap.aftermost863@passinbox.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Environment variable for |Environment variable |Systemd is ignored by |systemdsystemunitdir is |configure |ignored by configure
https://bugs.openldap.org/show_bug.cgi?id=10495
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org Target Milestone|--- |2.6.14 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10495
--- Comment #1 from Howard Chu hyc@openldap.org --- Commit f3501534d4443a2d241d70291b60be6034761cf1 for ITS#8707 explicitly unsets this variable before any systemd checks. Looks like a bogus change.
https://bugs.openldap.org/show_bug.cgi?id=10495
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #2 from Howard Chu hyc@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/869
https://bugs.openldap.org/show_bug.cgi?id=10495
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |TEST
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- head:
• d60bfa7e by Howard Chu at 2026-04-29T13:28:26+00:00 ITS#10495 configure: fix systemdsystemunitdir config variable
RE26:
• 4277f738 by Howard Chu at 2026-05-06T18:01:46+00:00 ITS#10495 configure: fix systemdsystemunitdir config variable