From 0aa6a4d982b0c878aa423f6ba2bfc472816ff850 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Fri, 24 May 2024 19:11:49 +0200 Subject: [PATCH] add patch for sha256 computing in pw-sha2 (#120) --- SOURCES/pw-sha2.patch | 11 +++++++++++ SPECS/openldap-ltb.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 SOURCES/pw-sha2.patch diff --git a/SOURCES/pw-sha2.patch b/SOURCES/pw-sha2.patch new file mode 100644 index 0000000..e13e5c8 --- /dev/null +++ b/SOURCES/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/SPECS/openldap-ltb.spec b/SPECS/openldap-ltb.spec index 42cb8a1..7907981 100644 --- a/SPECS/openldap-ltb.spec +++ b/SPECS/openldap-ltb.spec @@ -71,6 +71,8 @@ Source2: openldap.sh Source4: https://github.com/ltb-project/explockout/archive/v%{explockout_version}/%{explockout_name}-%{explockout_version}.tar.gz Source5: https://github.com/ltb-project/ppm/archive/v%{ppm_version}/%{ppm_name}-%{ppm_version}.tar.gz +Patch0: pw-sha2.patch + BuildRequires: cracklib BuildRequires: cracklib-devel BuildRequires: cyrus-sasl-devel