libpwquality/libpwquality-pythons.patch
Dominique Leuenberger f8aadb0864 Accepting request 562475 from openSUSE:Factory:Staging:O
- Switch url to https://github.com/libpwquality/libpwquality/
- Update to release 1.4.0:
  * Fix possible buffer overflow with data from /dev/urandom
    in pwquality_generate().
  * Do not try to check presence of too short username in password.
    (thanks to Nikos Mavrogiannopoulos)
  * Make the user name check optional (via usercheck option).
  * Add an 'enforcing' option to make the checks to be warning-only
    in PAM.
  * The difok = 0 setting will disable all old password similarity
    checks except new and old passwords being identical.
  * Updated translations from Zanata.
- Add patch libpwquality-pythons.patch to avoid duping pythondir
- Make python3 default and enable py2 only when needed

OBS-URL: https://build.opensuse.org/request/show/562475
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libpwquality?expand=0&rev=20
2018-01-08 14:34:31 +00:00

26 lines
1.1 KiB
Diff

From 694445da998ae3c5507df9651876488e91e6dafa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen@pld-linux.org>
Date: Mon, 3 Jul 2017 20:39:14 +0300
Subject: [PATCH] use separate build tree for python versions
added python patch to allow multiple python versions build without
duplicating source tree
---
python/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/Makefile.am b/python/Makefile.am
index abc5cd3..fd3a5ea 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -11,7 +11,7 @@ CLEANFILES = *~ constants.c *.so
EXTRA_DIST = pwquality.c setup.py
all-local:
- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
+ CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV)
install-exec-local:
- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
+ CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix}