Skip to content

Commit

Permalink
add patch for sha256 computing in pw-sha2 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcoutadeur committed May 24, 2024
1 parent 310a788 commit f54504e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions openldap-ltb/debian/patches/pw-sha2.patch
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 5 additions & 0 deletions openldap-ltb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f54504e

Please sign in to comment.