diff --git a/libedit-hidden-symbols.patch b/libedit-hidden-symbols.patch new file mode 100644 index 0000000..6fd0a38 --- /dev/null +++ b/libedit-hidden-symbols.patch @@ -0,0 +1,30 @@ +Index: libedit-20210910-3.1/src/sys.h +=================================================================== +--- libedit-20210910-3.1.orig/src/sys.h ++++ libedit-20210910-3.1/src/sys.h +@@ -40,6 +40,10 @@ + #ifndef _h_sys + #define _h_sys + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #ifdef HAVE_SYS_CDEFS_H + #include + #endif +@@ -84,12 +88,12 @@ typedef void *ioctl_t; + + #ifndef HAVE_STRLCAT + //#define strlcat libedit_strlcat +-size_t strlcat(char *dst, const char *src, size_t size); ++size_t strlcat(char *dst, const char *src, size_t size) libedit_private; + #endif + + #ifndef HAVE_STRLCPY + //#define strlcpy libedit_strlcpy +-size_t strlcpy(char *dst, const char *src, size_t size); ++size_t strlcpy(char *dst, const char *src, size_t size) libedit_private; + #endif + + #ifndef HAVE_GETLINE diff --git a/libedit.changes b/libedit.changes index 7cc1c0d..f1ce419 100644 --- a/libedit.changes +++ b/libedit.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Apr 5 15:01:43 UTC 2023 - Cristian Rodríguez + +- libedit-hidden-symbols.patch: hide strlcpy and strlcat + symbols + * Both now part of POSIX, will appear in libc shortly. + * Function names starting with ‘str’, ‘mem’, or ‘wcs’ followed + by a lowercase letter are reserved. + ------------------------------------------------------------------- Sun Dec 5 21:43:39 UTC 2021 - Dirk Müller diff --git a/libedit.spec b/libedit.spec index cc23415..04ba784 100644 --- a/libedit.spec +++ b/libedit.spec @@ -1,7 +1,7 @@ # # spec file for package libedit # -# Copyright (c) 2021 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 @@ -29,6 +29,7 @@ Source0: https://www.thrysoee.dk/editline/libedit-%{pkg_version}.tar.gz Source1: README.SUSE Source2: baselibs.conf Patch0: libedit-20180525-manpage-conflicts.patch +Patch1: libedit-hidden-symbols.patch # For patch0 BuildRequires: automake BuildRequires: libtool