Fix gshadow configure check (switching to glibc implementation)
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
parent
d3e12503af
commit
bb5dc8ec04
20
shadow-utils-configure-gshadow.patch
Normal file
20
shadow-utils-configure-gshadow.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
The missing #include <gshadow.h> causes the configure check to fail
|
||||||
|
spuriously, resulting in HAVE_SHADOWGRP not being defined.
|
||||||
|
|
||||||
|
Submitted upstream: <https://github.com/shadow-maint/shadow/pull/595>
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 924254a0c8171802..6c7d9839979e037d 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -116,6 +116,10 @@ if test "$ac_cv_header_shadow_h" = "yes"; then
|
||||||
|
ac_cv_libc_shadowgrp,
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([
|
||||||
|
#include <shadow.h>
|
||||||
|
+ #ifdef HAVE_GSHADOW_H
|
||||||
|
+ #include <gshadow.h>
|
||||||
|
+ #endif
|
||||||
|
+ int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
struct sgrp *sg = sgetsgent("test:x::");
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Utilities for managing accounts and shadow password files
|
Summary: Utilities for managing accounts and shadow password files
|
||||||
Name: shadow-utils
|
Name: shadow-utils
|
||||||
Version: 4.13
|
Version: 4.13
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
License: BSD-3-Clause AND GPL-2.0-or-later
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
||||||
URL: https://github.com/shadow-maint/shadow
|
URL: https://github.com/shadow-maint/shadow
|
||||||
@ -31,6 +31,7 @@ Patch4: shadow-4.11.1-audit-update.patch
|
|||||||
Patch5: shadow-4.5-usermod-unlock.patch
|
Patch5: shadow-4.5-usermod-unlock.patch
|
||||||
# Additional SElinux related changes - upstreamability unknown
|
# Additional SElinux related changes - upstreamability unknown
|
||||||
Patch6: shadow-4.12.3-selinux-perms.patch
|
Patch6: shadow-4.12.3-selinux-perms.patch
|
||||||
|
Patch7: shadow-utils-configure-gshadow.patch
|
||||||
|
|
||||||
### Dependencies ###
|
### Dependencies ###
|
||||||
Requires: audit-libs >= 1.6.5
|
Requires: audit-libs >= 1.6.5
|
||||||
@ -98,6 +99,7 @@ Development files for shadow-utils-subid.
|
|||||||
%patch4 -p1 -b .audit-update
|
%patch4 -p1 -b .audit-update
|
||||||
%patch5 -p1 -b .unlock
|
%patch5 -p1 -b .unlock
|
||||||
%patch6 -p1 -b .selinux-perms
|
%patch6 -p1 -b .selinux-perms
|
||||||
|
%patch7 -p1
|
||||||
|
|
||||||
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
||||||
cp -f doc/HOWTO.utf8 doc/HOWTO
|
cp -f doc/HOWTO.utf8 doc/HOWTO
|
||||||
@ -271,6 +273,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.a
|
|||||||
%{_libdir}/libsubid.so
|
%{_libdir}/libsubid.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 21 2022 Florian Weimer <fweimer@redhat.com> - 2:4.13-2
|
||||||
|
- Fix gshadow configure check (switching to glibc implementation)
|
||||||
|
|
||||||
* Wed Nov 9 2022 Iker Pedrosa <ipedrosa@redhat.com> - 2:4.13-1
|
* Wed Nov 9 2022 Iker Pedrosa <ipedrosa@redhat.com> - 2:4.13-1
|
||||||
- Rebase to version 4.13
|
- Rebase to version 4.13
|
||||||
- SPDX license migration
|
- SPDX license migration
|
||||||
|
Loading…
Reference in New Issue
Block a user