forked from pool/libunistring
This commit is contained in:
parent
6ca86f01de
commit
c32940d667
14
libunistring-test-malloca.patch
Normal file
14
libunistring-test-malloca.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: libunistring-0.9.7/tests/test-malloca.c
|
||||||
|
===================================================================
|
||||||
|
--- libunistring-0.9.7.orig/tests/test-malloca.c 2016-12-02 17:42:02.000000000 +0100
|
||||||
|
+++ libunistring-0.9.7/tests/test-malloca.c 2017-05-05 09:21:26.457936689 +0200
|
||||||
|
@@ -27,7 +27,8 @@ do_allocation (int n)
|
||||||
|
{
|
||||||
|
void *ptr = malloca (n);
|
||||||
|
freea (ptr);
|
||||||
|
- safe_alloca (n);
|
||||||
|
+ ptr = safe_alloca (n);
|
||||||
|
+ freea (ptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void (*func) (int) = do_allocation;
|
@ -28,6 +28,7 @@ Source0: http://ftp.gnu.org/gnu/libunistring/libunistring-%{version}.tar.
|
|||||||
Source1: http://ftp.gnu.org/gnu/libunistring/libunistring-%{version}.tar.xz.sig
|
Source1: http://ftp.gnu.org/gnu/libunistring/libunistring-%{version}.tar.xz.sig
|
||||||
Source2: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=libunistring&download=1#/%{name}.keyring
|
Source2: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=libunistring&download=1#/%{name}.keyring
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
|
Patch0: %{name}-test-malloca.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if %{?suse_version } == 1110
|
%if %{?suse_version } == 1110
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
@ -66,6 +67,7 @@ case folding and regular expressions).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --disable-rpath --docdir=%{_docdir}/%{name}
|
%configure --disable-static --disable-rpath --docdir=%{_docdir}/%{name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user