From 283dd71b3617574746d02c64694203e51f73c511fcbcd1d461364661e594fa88 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 27 Apr 2023 22:02:19 +0000 Subject: [PATCH] Accepting request 1077563 from home:elvigia:branches:devel:libraries:c_c++ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. OBS-URL: https://build.opensuse.org/request/show/1077563 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libedit?expand=0&rev=70 --- libedit-hidden-symbols.patch | 30 ++++++++++++++++++++++++++++++ libedit.changes | 9 +++++++++ libedit.spec | 3 ++- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 libedit-hidden-symbols.patch 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