forked from pool/libedit
Accepting request 1083349 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1083349 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=33
This commit is contained in:
commit
43eed2855b
30
libedit-hidden-symbols.patch
Normal file
30
libedit-hidden-symbols.patch
Normal 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
|
@ -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>
|
Sun Dec 5 21:43:39 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libedit
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Source1: README.SUSE
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch0: libedit-20180525-manpage-conflicts.patch
|
Patch0: libedit-20180525-manpage-conflicts.patch
|
||||||
|
Patch1: libedit-hidden-symbols.patch
|
||||||
# For patch0
|
# For patch0
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
Loading…
Reference in New Issue
Block a user