Accepting request 1077563 from home:elvigia:branches:devel:libraries:c_c++

- 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
This commit is contained in:
Dirk Mueller 2023-04-27 22:02:19 +00:00 committed by Git OBS Bridge
parent ba1f23cc7c
commit 283dd71b36
3 changed files with 41 additions and 1 deletions

View File

@ -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 <sys/cdefs.h>
#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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Apr 5 15:01:43 UTC 2023 - Cristian Rodríguez <crrodriguez@opensuse.org>
- 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 <dmueller@suse.com>

View File

@ -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