From c28a34ae0880d41cee67a4bec82a56959dee9268e29a08bb0bb206e572750034 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Sun, 24 Oct 2010 22:21:26 +0000 Subject: [PATCH 1/3] Updating link to change in openSUSE:Factory/cracklib revision 34.0 OBS-URL: https://build.opensuse.org/package/show/Base:System/cracklib?expand=0&rev=7af52c376a4faf15aa9cc3e5411afe00 --- cracklib.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cracklib.spec b/cracklib.spec index 2683847..f2f60b7 100644 --- a/cracklib.spec +++ b/cracklib.spec @@ -30,7 +30,7 @@ Obsoletes: cracklib-64bit %endif # Version: 2.8.18 -Release: 4 +Release: 1 Requires: cracklib-dict Summary: Library to crack passwords using dictionaries Source: http://prdownloads.sourceforge.net/cracklib/cracklib-%{version}.tar.bz2 From 858865317d2b8454331932230ea1e0d9aef95d3f332f47bdcac590d8ad7b7f11 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 30 Nov 2010 11:42:34 +0000 Subject: [PATCH 2/3] Accepting request 51720 from home:elvigia:branches:Base:System OBS-URL: https://build.opensuse.org/request/show/51720 OBS-URL: https://build.opensuse.org/package/show/Base:System/cracklib?expand=0&rev=17 --- cracklib-visibility.patch | 108 ++++++++++++++++++++++++++++++++++++++ cracklib.changes | 5 ++ cracklib.spec | 9 +++- 3 files changed, 120 insertions(+), 2 deletions(-) create mode 100644 cracklib-visibility.patch diff --git a/cracklib-visibility.patch b/cracklib-visibility.patch new file mode 100644 index 0000000..6c37f65 --- /dev/null +++ b/cracklib-visibility.patch @@ -0,0 +1,108 @@ +--- lib/crack.h.orig ++++ lib/crack.h +@@ -5,6 +5,10 @@ + extern "C" { + #endif + ++#ifndef CRACKLIB_API ++#define CRACKLIB_API extern ++#endif ++ + /* Pass this function a password (pw) and a path to the + * dictionaries (/usr/lib/cracklib_dict should be specified) + * and it will either return a NULL string, meaning that the +@@ -13,11 +17,11 @@ extern "C" { + * You must link with -lcrack + */ + +-extern const char *FascistCheck(const char *pw, const char *dictpath); ++CRACKLIB_API const char *FascistCheck(const char *pw, const char *dictpath); + + /* This function returns the compiled in value for DEFAULT_CRACKLIB_DICT. + */ +-extern const char *GetDefaultCracklibDict(void); ++CRACKLIB_API const char *GetDefaultCracklibDict(void); + + #ifdef __cplusplus + }; +--- configure.in.orig ++++ configure.in +@@ -90,6 +90,45 @@ AM_CONDITIONAL(BUILD_PYTHON,[test "$buil + 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 ++ ++ 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 ++ fi ++ ;; ++ esac ], ++ AC_MSG_RESULT(no) ++ ) ++ + AC_OUTPUT(util/Makefile lib/Makefile doc/Makefile python/Makefile Makefile \ + python/setup.py \ + po/Makefile.in m4/Makefile dicts/Makefile cracklib.spec) +--- lib/packer.h.orig ++++ lib/packer.h +@@ -74,7 +74,7 @@ typedef struct + #define PIH_MAGIC 0x70775631 + + /* Internal routines */ +-extern char *GetPW(PWDICT *pwp, uint32_t number); ++CRACKLIB_API char *GetPW(PWDICT *pwp, uint32_t number); + + #else + +@@ -85,13 +85,13 @@ typedef struct { + + #endif + +-extern PWDICT *PWOpen(const char *prefix, char *mode); +-extern int PWClose(PWDICT *pwp); +-extern unsigned int FindPW(PWDICT *pwp, char *string); +-extern int PutPW(PWDICT *pwp, char *string); +-extern int PMatch(char *control, char *string); +-extern char *Mangle(char *input, char *control); +-extern char Chop(char *string); +-extern char *Trim(char *string); ++CRACKLIB_API PWDICT *PWOpen(const char *prefix, char *mode); ++CRACKLIB_API int PWClose(PWDICT *pwp); ++CRACKLIB_API unsigned int FindPW(PWDICT *pwp, char *string); ++CRACKLIB_API int PutPW(PWDICT *pwp, char *string); ++CRACKLIB_API int PMatch(char *control, char *string); ++CRACKLIB_API char *Mangle(char *input, char *control); ++CRACKLIB_API char Chop(char *string); ++CRACKLIB_API char *Trim(char *string); + + #endif diff --git a/cracklib.changes b/cracklib.changes index 5b3021b..ac8f2da 100644 --- a/cracklib.changes +++ b/cracklib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Oct 30 22:56:15 UTC 2010 - cristian.rodriguez@opensuse.org + +- Support GCC visibility + ------------------------------------------------------------------- Thu Oct 21 18:49:22 CEST 2010 - ro@suse.de diff --git a/cracklib.spec b/cracklib.spec index f2f60b7..3a8261b 100644 --- a/cracklib.spec +++ b/cracklib.spec @@ -38,6 +38,8 @@ Source2: baselibs.conf # PATCH-FIX-OPENSUSE (should be upstreamed) # Remove support for broken 64bit indexes from magic entry [bnc#106007] Patch: cracklib-magic.diff +# PATCH-FIX-OPENSUSE Hide non-public functions +Patch1: cracklib-visibility.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -94,10 +96,10 @@ This package contains a small dictionay file used by cracklib. %prep %setup -q %patch - +%patch1 %build AUTOPOINT=true autoreconf -fi -%configure --disable-static --with-pic +%configure --enable-hidden-symbols --disable-static --with-pic %{__make} %{?_smp_mflags} make -C po update-po @@ -128,6 +130,9 @@ ln -sf %{_datadir}/cracklib/pw_dict.pwi $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pw #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} +nm -C -D %{buildroot}%{_libdir}/libcrack.so.2 | grep ' T ' +%check +make check %post -n libcrack2 -p /sbin/ldconfig From 2366b15adfc79a363f169b31b456eac8d1b2fda89b975161560df313c1e0e84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Fri, 25 Feb 2011 01:39:27 +0000 Subject: [PATCH 3/3] Accepting request 62703 from home:sbrabec:branches:translation-update-upstream OBS-URL: https://build.opensuse.org/request/show/62703 OBS-URL: https://build.opensuse.org/package/show/Base:System/cracklib?expand=0&rev=18 --- cracklib.changes | 5 +++++ cracklib.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/cracklib.changes b/cracklib.changes index ac8f2da..6c034ea 100644 --- a/cracklib.changes +++ b/cracklib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 14 17:35:37 CET 2011 - sbrabec@suse.cz + +- Added support for translation-update-upstream. + ------------------------------------------------------------------- Sat Oct 30 22:56:15 UTC 2010 - cristian.rodriguez@opensuse.org diff --git a/cracklib.spec b/cracklib.spec index 3a8261b..d52554f 100644 --- a/cracklib.spec +++ b/cracklib.spec @@ -20,6 +20,7 @@ Name: cracklib BuildRequires: gzip zlib-devel +BuildRequires: translation-update-upstream Url: http://sourceforge.net/projects/cracklib License: Artistic Group: System/Libraries @@ -95,6 +96,7 @@ This package contains a small dictionay file used by cracklib. %prep %setup -q +translation-update-upstream %patch %patch1 %build