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 24, 2024
1 parent bb442c2 commit 0aa6a4d
Show file tree
Hide file tree
Showing 2 changed files with 13 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)
2 changes: 2 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

0 comments on commit 0aa6a4d

Please sign in to comment.