[Git][openldap-team/openldap][mjt] 11 commits: d/rules: only do actual work in arch-dependent build

Michael Tokarev (@mjt) gitlab at salsa.debian.org
Tue Jan 7 17:35:22 GMT 2025



Michael Tokarev pushed to branch mjt at Debian OpenLDAP Maintainers / openldap


Commits:
1972bfc3 by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/rules: only do actual work in arch-dependent build

for arch-all libldap-common package, we only need ldap.conf.5
manpage, - there's no need to build everything for it.  Split
dh_auto_build &Co overrides into -arch and -indep parts.

It is possible to reduce arch-indep work further (and drop arch-indep
build deps), but the manpages uses substitutions which would be done
manually in this case:
  RELEASEDATE (ol_release_date from build/version.var)
  LDVERSION (DEB_VERSION, see debian/patches/debian-version)
  ETCDIR (/etc)
This change already makes use of internal way upstream is using to
generate the manpages (using .tmp suffix), but adding even more internal
stuff (even for these 3 vars) seems too much.

- - - - -
fd000d80 by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/control: add myself to Uploaders

- - - - -
2c4e25fd by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/rules: add -Wno-unused-const-variable to CFLAGS

many openldap sources has static const char copyright[] = ".."
and the like, all of which are being reported by the compiler.

- - - - -
01deaa76 by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/rules: add LC_ALL=C for the build rule

makes build reproducible (fixes order of shell *.o etc)

- - - - -
271bbe69 by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/rules: add slapdS.c to blhc ignore-line

- - - - -
68f265df by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/libldap-dev.links: stop generating it, dh is pretty much capable to expand variables now

- - - - -
9079aeb8 by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/rules: fix override_dh_makeshlibs & override_dh_installdeb conditionals

debhelper isn't smart enough to expand make conditionals,
it is especially mentioned in its documentation.

- - - - -
2e9ff4c0 by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/slapd.preinst: remove stopping of slapd (#989155 in debhelper has been fixed)

- - - - -
2a63e50f by Michael Tokarev at 2025-01-07T19:47:27+03:00
d/rules: build flags & build tools

move DEB_*_MAINT_* defines up
use future=+lfs maint option for LFS, instead of -D_FILE_OFFSET_BITS
include buildtools.mk to get (cross) build tools (not just CC)
tell dpkg to export build tools
remove explicit export of (cross) CC

- - - - -
22e7e1a3 by Michael Tokarev at 2025-01-07T19:54:14+03:00
d/rules: simplify noslapd build-profile expressions by using noslapd variable

- - - - -
f2a28bc3 by Michael Tokarev at 2025-01-07T19:54:14+03:00
d/rules: export DEB_MAINTAINER only once

small optimization: export DEB_MAINTAINER only once, do
not set it again if it is already present in the environment.

- - - - -


7 changed files:

- − debian/clean
- debian/control
- debian/libldap-common.install
- debian/libldap-dev.links.in → debian/libldap-dev.links
- debian/not-installed
- debian/rules
- debian/slapd.preinst


View it on GitLab: https://salsa.debian.org/openldap-team/openldap/-/compare/fda727208aa53dd4842507472a64352dce235500...f2a28bc3b50f6f86a5eb0c079913f13889f1a49f

-- 
View it on GitLab: https://salsa.debian.org/openldap-team/openldap/-/compare/fda727208aa53dd4842507472a64352dce235500...f2a28bc3b50f6f86a5eb0c079913f13889f1a49f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-openldap-devel/attachments/20250107/51f8ca5b/attachment.htm>


More information about the Pkg-openldap-devel mailing list