Accepting request 749837 from home:marxin:branches:Base:System
- Add disable-null-ptr-argument.patch in order to fix boo#1157218. OBS-URL: https://build.opensuse.org/request/show/749837 OBS-URL: https://build.opensuse.org/package/show/Base:System/sed?expand=0&rev=40
This commit is contained in:
parent
08b1a4ec13
commit
9d2bba42d7
14
disable-null-ptr-argument.patch
Normal file
14
disable-null-ptr-argument.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/gnulib-tests/test-canonicalize-lgpl.c b/gnulib-tests/test-canonicalize-lgpl.c
|
||||||
|
index 4cec490..c91aa1f 100644
|
||||||
|
--- a/gnulib-tests/test-canonicalize-lgpl.c
|
||||||
|
+++ b/gnulib-tests/test-canonicalize-lgpl.c
|
||||||
|
@@ -71,9 +71,6 @@ main (void)
|
||||||
|
ASSERT (result == NULL);
|
||||||
|
ASSERT (errno == ENOENT);
|
||||||
|
errno = 0;
|
||||||
|
- result = canonicalize_file_name (null_ptr ());
|
||||||
|
- ASSERT (result == NULL);
|
||||||
|
- ASSERT (errno == EINVAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check that a non-directory with trailing slash yields NULL. */
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 20 09:09:47 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Add disable-null-ptr-argument.patch in order to fix
|
||||||
|
boo#1157218.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 19 11:48:38 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
|
Thu Sep 19 11:48:38 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
4
sed.spec
4
sed.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package sed
|
# spec file for package sed
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 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
|
||||||
@ -28,6 +28,7 @@ Source1: https://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.xz.sig
|
|||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
# PATCH-FIX-SLE sed-dont_close_twice.patch bnc@880817 tcech@suse.cz -- Fix double close.
|
# PATCH-FIX-SLE sed-dont_close_twice.patch bnc@880817 tcech@suse.cz -- Fix double close.
|
||||||
Patch0: sed-dont_close_twice.patch
|
Patch0: sed-dont_close_twice.patch
|
||||||
|
Patch1: disable-null-ptr-argument.patch
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
Requires(post): %{install_info_prereq}
|
Requires(post): %{install_info_prereq}
|
||||||
@ -45,6 +46,7 @@ occurrences of a string within a file.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
|
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
|
||||||
|
Loading…
Reference in New Issue
Block a user