Github messages for voidlinux
 help / color / mirror / Atom feed
From: 0x5c <0x5c@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] libpwquality: update to 1.4.5.
Date: Sun, 20 Nov 2022 05:29:39 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40635@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]

There is a new pull request by 0x5c against master on the void-packages repository

https://github.com/0x5c/void-packages update/libpwquality
https://github.com/void-linux/void-packages/pull/40635

libpwquality: update to 1.4.5.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/40635.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update/libpwquality-40635.patch --]
[-- Type: text/x-diff, Size: 4928 bytes --]

From 383fc5efe1ed5e72f412c78b393c5444d163752b Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Sat, 19 Nov 2022 23:08:22 -0500
Subject: [PATCH] libpwquality: update to 1.4.5.

---
 .../libpwquality/patches/0001-musl-pam.patch  | 49 -------------------
 .../libpwquality/patches/0002-musl-pam.patch  | 39 ---------------
 srcpkgs/libpwquality/template                 |  6 +--
 3 files changed, 3 insertions(+), 91 deletions(-)
 delete mode 100644 srcpkgs/libpwquality/patches/0001-musl-pam.patch
 delete mode 100644 srcpkgs/libpwquality/patches/0002-musl-pam.patch

diff --git a/srcpkgs/libpwquality/patches/0001-musl-pam.patch b/srcpkgs/libpwquality/patches/0001-musl-pam.patch
deleted file mode 100644
index 1b8d15e3920e..000000000000
--- a/srcpkgs/libpwquality/patches/0001-musl-pam.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 9084c1b032161cdb53d5f66132a91bdc207faecf Mon Sep 17 00:00:00 2001
-From: Noel Kuntze <noel.kuntze@thermi.consulting>
-Date: Mon, 24 May 2021 14:15:34 +0200
-Subject: [PATCH] pam_pwquality.c: Use pam_modutil_check_user_in_passwd instead
- of fgetpwent_r (not available on musl)
-
----
- configure.ac        | 5 +++++
- src/pam_pwquality.c | 4 ++++
- 2 files changed, 9 insertions(+)
-
-diff --git a/configure.ac b/configure.ac
-index 201a2e6..f995294 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -97,6 +97,11 @@ if test "$enable_pam" != "no"; then
-       test $fail = 1 &&
-         AC_MSG_ERROR([You must install the PAM development package in order to compile libpwquality])
-   fi
-+  AC_CHECK_FUNC(
-+    [pam_modutil_check_user_in_passwd],
-+    [AC_DEFINE([HAVE_PAM_CHECK_USER_IN_PASSWD], [], [have pam_modutil_check_user_in_passwd])],
-+    []
-+  )  
- fi
- 
- if test "$enable_pam" = "yes"; then
-diff --git a/src/pam_pwquality.c b/src/pam_pwquality.c
-index 53a9b66..5c09bc7 100644
---- a/src/pam_pwquality.c
-+++ b/src/pam_pwquality.c
-@@ -98,6 +98,9 @@ static int
- check_local_user (pam_handle_t *pamh,
-                   const char *user)
- {
-+#ifdef HAVE_PAM_CHECK_USER_IN_PASSWD
-+        return pam_modutil_check_user_in_passwd(pamh, user, NULL) == PAM_SUCCESS;
-+#else
-         struct passwd pw, *pwp;
-         char buf[4096];
-         int found = 0;
-@@ -136,6 +139,7 @@ check_local_user (pam_handle_t *pamh,
-         } else {
-                 return found;
-         }
-+#endif
- }
- 
- PAM_EXTERN int
diff --git a/srcpkgs/libpwquality/patches/0002-musl-pam.patch b/srcpkgs/libpwquality/patches/0002-musl-pam.patch
deleted file mode 100644
index 9900eec93826..000000000000
--- a/srcpkgs/libpwquality/patches/0002-musl-pam.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 25b7b37fd65df957c24c46ed06884ef19e2852cb Mon Sep 17 00:00:00 2001
-From: Sam James <sam@gentoo.org>
-Date: Wed, 7 Sep 2022 05:42:17 +0100
-Subject: [PATCH] pam_pwquality: add include for
- pam_modutil_check_user_in_passwd
-
-After 9084c1b032161cdb53d5f66132a91bdc207faecf, one gets:
-```
-pam_pwquality.c: In function 'check_local_user':
-pam_pwquality.c:102:16: error: implicit declaration of function 'pam_modutil_check_user_in_passwd' [-Werror=implicit-function-declaration]
-  102 |         return pam_modutil_check_user_in_passwd(pamh, user, NULL) == PAM_SUCCESS;
-      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-cc1: some warnings being treated as errors
-make[2]: *** [Makefile:634: pam_pwquality.lo] Error 1
-make[2]: *** Waiting for unfinished jobs....
-```
-
-We need to include security/pam_modutil.h when appropriate.
-
-Signed-off-by: Sam James <sam@gentoo.org>
----
- src/pam_pwquality.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/pam_pwquality.c b/src/pam_pwquality.c
-index 5c09bc7..d68118a 100644
---- a/src/pam_pwquality.c
-+++ b/src/pam_pwquality.c
-@@ -34,6 +34,10 @@
- #include <security/_pam_macros.h>
- #include <security/pam_ext.h>
- 
-+#ifdef HAVE_PAM_CHECK_USER_IN_PASSWD
-+#include <security/pam_modutil.h>
-+#endif
-+
- /* argument parsing */
- #define PAM_DEBUG_ARG       0x0001
- 
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index c66f32af8c1e..1669fe255dc7 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,7 +1,7 @@
 # Template file for 'libpwquality'
 pkgname=libpwquality
-version=1.4.4
-revision=3
+version=1.4.5
+revision=1
 build_style=gnu-configure
 build_helper=python3
 configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
@@ -15,7 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/libpwquality/libpwquality"
 changelog="https://raw.githubusercontent.com/libpwquality/libpwquality/master/NEWS"
 distfiles="https://github.com/libpwquality/libpwquality/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
-checksum=d43baf23dc6887fe8f8e9b75cabaabc5f4bbbaa0f9eff44278d276141752a545
+checksum=6fcf18b75d305d99d04d2e42982ed5b787a081af2842220ed63287a2d6a10988
 
 pre_configure() {
 	autoreconf -fi

             reply	other threads:[~2022-11-20  4:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20  4:29 0x5c [this message]
2022-11-20  6:48 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40635@inbox.vuxu.org \
    --to=0x5c@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).