From f54504e864c6f8bc306b4b4408a9e5a2b9430b63 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Fri, 24 May 2024 18:52:44 +0200 Subject: [PATCH] add patch for sha256 computing in pw-sha2 (#111) --- openldap-ltb/debian/patches/pw-sha2.patch | 11 +++++++++++ openldap-ltb/debian/rules | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 openldap-ltb/debian/patches/pw-sha2.patch diff --git a/openldap-ltb/debian/patches/pw-sha2.patch b/openldap-ltb/debian/patches/pw-sha2.patch new file mode 100644 index 0000000..e13e5c8 --- /dev/null +++ b/openldap-ltb/debian/patches/pw-sha2.patch @@ -0,0 +1,11 @@ +--- contrib/slapd-modules/passwd/sha2/Makefile 2024-05-24 17:36:52.698368571 +0200 ++++ contrib/slapd-modules/passwd/sha2/Makefile.patch 2024-05-24 17:56:42.685677280 +0200 +@@ -9,7 +9,7 @@ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -g -O2 -fno-strict-aliasing + DEFS = + #DEFS = -DSLAPD_SHA2_DEBUG + INCS = $(LDAP_INC) diff --git a/openldap-ltb/debian/rules b/openldap-ltb/debian/rules index f526c0c..f6cc60c 100755 --- a/openldap-ltb/debian/rules +++ b/openldap-ltb/debian/rules @@ -35,6 +35,11 @@ clean: (cd libraries/liblmdb && make clean) dh_clean + for oldap_patch in `pwd`/debian/patches/*.patch; do \ + if ! patch -R -p0 -s -f --dry-run < $$oldap_patch >/dev/null 2>&1; then \ + patch --forward -p0 < $$oldap_patch ; \ + fi \ + done install: install: build