Accepting request 898482 from home:dirkmueller:Factory

- add remove-unportable-tests.patch to fix build

OBS-URL: https://build.opensuse.org/request/show/898482
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=88
This commit is contained in:
Marcus Meissner 2021-06-28 07:06:19 +00:00 committed by Git OBS Bridge
parent d35725d0a5
commit e35c7d21fb
3 changed files with 47 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 8 15:00:58 UTC 2021 - Dirk Müller <dmueller@suse.com>
- add remove-unportable-tests.patch to fix build
-------------------------------------------------------------------
Wed May 26 23:58:36 UTC 2021 - Jason Sikes <jsikes@suse.com>

View File

@ -31,6 +31,7 @@ Patch0: augeas-modprobe-lense.patch
Patch1: gcc9-disable-broken-test.patch
Patch2: augeas-new_options_for_chrony.patch
Patch3: augeas-allow_printable_ASCII.patch
Patch4: remove-unportable-tests.patch
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(libxml-2.0)
@ -97,6 +98,7 @@ modifying the official lenses, or when creating new ones.
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%configure \

View File

@ -0,0 +1,40 @@
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 27 Aug 2020 17:52:58 -0700
Subject: [PATCH] perror, strerror_r: remove unportable tests
Problem reported by Florian Weimer in:
https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
* tests/test-perror2.c (main):
* tests/test-strerror_r.c (main): Omit unportable tests.
---
ChangeLog | 8 ++++++++
tests/test-perror2.c | 3 ---
tests/test-strerror_r.c | 3 ---
3 files changed, 8 insertions(+), 6 deletions(-)
--- a/gnulib/tests/test-perror2.c
+++ b/gnulib/tests/test-perror2.c
@@ -79,9 +79,6 @@ main (void)
errno = -5;
perror ("");
ASSERT (!ferror (stderr));
- ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
- ASSERT (msg2 == msg4 || STREQ (msg2, str2));
- ASSERT (msg3 == msg4 || STREQ (msg3, str3));
ASSERT (STREQ (msg4, str4));
free (str1);
--- a/gnulib/tests/test-strerror_r.c
+++ b/gnulib/tests/test-strerror_r.c
@@ -165,9 +165,6 @@ main (void)
strerror_r (EACCES, buf, sizeof buf);
strerror_r (-5, buf, sizeof buf);
- ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
- ASSERT (msg2 == msg4 || STREQ (msg2, str2));
- ASSERT (msg3 == msg4 || STREQ (msg3, str3));
ASSERT (STREQ (msg4, str4));
free (str1);
--
2.17.1