diff --git a/0002-cracklib-2.9.2-visibility.patch b/0002-cracklib-2.9.2-visibility.patch index 7973005..187747e 100644 --- a/0002-cracklib-2.9.2-visibility.patch +++ b/0002-cracklib-2.9.2-visibility.patch @@ -6,48 +6,48 @@ Index: configure.ac dnl Handle local dict compiling properly AC_SUBST(CROSS_COMPILING, $cross_compiling) -+ dnl ************************************************************ -+ dnl Enable hiding of internal symbols in library to reduce its size and -+ dnl speed dynamic linking of applications. This currently is only supported -+ dnl on gcc >= 4.0 and SunPro C. -+ dnl -+ AC_MSG_CHECKING([whether to enable hidden symbols in the library]) -+ AC_ARG_ENABLE(hidden-symbols, -+ AC_HELP_STRING([--enable-hidden-symbols],[Hide internal symbols in library]) -+ AC_HELP_STRING([--disable-hidden-symbols],[Leave all symbols with default visibility in library]), -+ [ case "$enableval" in -+ no) -+ AC_MSG_RESULT(no) -+ ;; -+ *) -+ AC_MSG_CHECKING([whether $CC supports it]) -+ if test "$GCC" = yes ; then -+ if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(CRACKLIB_API, [extern __attribute__ ((visibility ("default")))], [to make a symbol visible]) -+ CFLAGS="$CFLAGS -fvisibility=hidden" -+ else -+ AC_MSG_RESULT(no) -+ fi -+ ++dnl ************************************************************ ++dnl Enable hiding of internal symbols in library to reduce its size and ++dnl speed dynamic linking of applications. This currently is only supported ++dnl on gcc >= 4.0 and SunPro C. ++dnl ++AC_MSG_CHECKING([whether to enable hidden symbols in the library]) ++AC_ARG_ENABLE(hidden-symbols, ++AC_HELP_STRING([--enable-hidden-symbols],[Hide internal symbols in library]) ++AC_HELP_STRING([--disable-hidden-symbols],[Leave all symbols with default visibility in library]), ++[ case "$enableval" in ++ no) ++ AC_MSG_RESULT(no) ++ ;; ++ *) ++ AC_MSG_CHECKING([whether $CC supports it]) ++ if test "$GCC" = yes ; then ++ if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then ++ AC_MSG_RESULT(yes) ++ AC_DEFINE(CRACKLIB_API, [extern __attribute__ ((visibility ("default")))], [to make a symbol visible]) ++ CFLAGS="$CFLAGS -fvisibility=hidden" + else -+ dnl Test for SunPro cc -+ if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(CRACKLIB_API, [__global], [to make a symbol visible]) -+ CFLAGS="$CFLAGS -xldscope=hidden" -+ else -+ AC_MSG_RESULT(no) -+ fi ++ AC_MSG_RESULT(no) ++ fi +++ ++ else ++ dnl Test for SunPro cc ++ if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then ++ AC_MSG_RESULT(yes) ++ AC_DEFINE(CRACKLIB_API, [__global], [to make a symbol visible]) ++ CFLAGS="$CFLAGS -xldscope=hidden" ++ else ++ AC_MSG_RESULT(no) + fi -+ ;; -+ esac ], -+ AC_MSG_RESULT(no) -+ ) ++ fi ++ ;; ++ esac ], ++ AC_MSG_RESULT(no) ++) + - AC_OUTPUT(util/Makefile lib/Makefile doc/Makefile python/Makefile Makefile \ + AC_CONFIG_FILES([util/Makefile lib/Makefile doc/Makefile python/Makefile Makefile \ python/setup.py \ - po/Makefile.in m4/Makefile dicts/Makefile cracklib.spec) + po/Makefile.in m4/Makefile dicts/Makefile cracklib.spec]) Index: lib/crack.h =================================================================== --- lib/crack.h.orig @@ -84,7 +84,7 @@ Index: lib/packer.h =================================================================== --- lib/packer.h.orig +++ lib/packer.h -@@ -76,7 +76,7 @@ typedef struct +@@ -66,7 +66,7 @@ typedef struct #define PIH_MAGIC 0x70775631 /* Internal routines */ @@ -93,7 +93,7 @@ Index: lib/packer.h #else -@@ -87,15 +87,15 @@ typedef struct { +@@ -77,15 +77,15 @@ typedef struct { #endif diff --git a/cracklib-2.9.11.tar.bz2 b/cracklib-2.9.11.tar.bz2 new file mode 100644 index 0000000..5f6037a --- /dev/null +++ b/cracklib-2.9.11.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca8b049a3c2d3b2225a1e8d15d613798ebc748e3950388eda2694de507ba6020 +size 621076 diff --git a/cracklib-2.9.8.tar.bz2 b/cracklib-2.9.8.tar.bz2 deleted file mode 100644 index 8c185e0..0000000 --- a/cracklib-2.9.8.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f9d34385ea3aa7cd7c07fa388dc25810aea9d3c33e260c713a3a5873d70e386 -size 613017 diff --git a/cracklib.changes b/cracklib.changes index b7a0601..e62d969 100644 --- a/cracklib.changes +++ b/cracklib.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Jun 7 09:04:19 UTC 2023 - pgajdos@suse.com + +- version update to 2.9.11 + * Merge fedora patches and man pages + * Fix missing files in dist tarball, other automake fixes (Leandro Nini) + * Fix error handling during build of dictionary (yixiangzhike) + * Fix to localization support (A. Wilcox, nekopsykose) + * Fix to test utilities (Alexander Kanavin) + * Translation updates from weblate + * python: adjust include path for builddir by @thesamesam in #61 + * Make buffer static and avoid returning stack-allocated memory by @drfiemost in #63 +- modified patches + % 0002-cracklib-2.9.2-visibility.patch (refreshed) + ------------------------------------------------------------------- Wed Dec 7 22:09:01 UTC 2022 - Dirk Müller diff --git a/cracklib.spec b/cracklib.spec index 4939267..63f9afe 100644 --- a/cracklib.spec +++ b/cracklib.spec @@ -1,7 +1,7 @@ # # spec file for package cracklib # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: cracklib -Version: 2.9.8 +Version: 2.9.11 Release: 0 Summary: Library to crack passwords using dictionaries License: LGPL-2.1-only @@ -112,8 +112,8 @@ ln -sf %{_datadir}/cracklib/pw_dict.pwi %{buildroot}%{_prefix}/lib/cracklib_dict # using zip'ed dict takes too long for a check. But the support # for this is still in the lib. # -#gzip $RPM_BUILD_ROOT/%{_datadir}/cracklib/pw_dict.pwd -#ln -sf %{_datadir}/cracklib/pw_dict.pwd.gz $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwd.gz +#gzip $RPM_BUILD_ROOT/%%{_datadir}/cracklib/pw_dict.pwd +#ln -sf %%{_datadir}/cracklib/pw_dict.pwd.gz $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwd.gz %find_lang %{name} %ifnarch ppc64 nm -C -D %{buildroot}%{_libdir}/libcrack.so.2 | grep ' T ' @@ -140,17 +140,22 @@ sed -i 's:\(util/cracklib-check\):\1 %{buildroot}%{_prefix}/lib/cracklib_dict:' %{_sbindir}/cracklib-check %{_sbindir}/cracklib-format %{_sbindir}/cracklib-packer +%{_sbindir}/cracklib-update %{_sbindir}/cracklib-unpacker %dir %{_datadir}/cracklib %{_datadir}/cracklib/cracklib.magic %{_prefix}/lib/cracklib_dict.hwm %{_prefix}/lib/cracklib_dict.pwd %{_prefix}/lib/cracklib_dict.pwi +%{_mandir}/man8/cracklib-check.8%{?ext_man} +%{_mandir}/man8/cracklib-format.8%{?ext_man} +%{_mandir}/man8/cracklib-update.8%{?ext_man} %files devel %{_includedir}/crack.h %{_includedir}/packer.h %{_libdir}/libcrack.so +%{_mandir}/man3/FascistCheck.3%{?ext_man} %files dict-small %{_datadir}/cracklib/pw_dict.hwm