Skip to content

Commit

Permalink
add patch for sha256 computing in pw-sha2 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed May 27, 2024
1 parent bb442c2 commit d751005
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SOURCES/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)
3 changes: 3 additions & 0 deletions SPECS/openldap-ltb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d751005

Please sign in to comment.