From d751005792f81ebdf3998fc7033b03644736b0ec Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Mon, 27 May 2024 16:55:30 +0200 Subject: [PATCH] add patch for sha256 computing in pw-sha2 (#120) --- SOURCES/pw-sha2.patch | 11 +++++++++++ SPECS/openldap-ltb.spec | 3 +++ 2 files changed, 14 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..16a4fde 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 @@ -195,6 +197,7 @@ exponential time %setup -q -n %{real_name}-%{real_version} -T -D -a 1 %setup -q -n %{real_name}-%{real_version} -T -D -a 4 %setup -q -n %{real_name}-%{real_version} -T -D -a 5 +%patch0 -p0 #================================================= # Building