[packages/libtool] filterout -DNDEBUG for tests

atler atler at pld-linux.org
Wed Jun 17 19:10:27 CEST 2026


commit 0ba118c8837e1a82881179c64f919f4e4e54f55a
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jun 17 19:07:54 2026 +0200

    filterout -DNDEBUG for tests
    
    lalib-syntax is supposed to fail on assert but same preprocessor flags
    are used for both compiling libtool as well as test snippets

 libtool-lalib-syntax.patch | 11 -----------
 libtool.spec               |  4 ++--
 2 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/libtool.spec b/libtool.spec
index 8e106fc..3e5fbb7 100644
--- a/libtool.spec
+++ b/libtool.spec
@@ -24,7 +24,6 @@ Patch1:		%{name}-libdirs.patch
 Patch2:		%{name}-multilib.patch
 Patch3:		%{name}-linking-order.patch
 Patch4:		%{name}-libx32.patch
-Patch5:		%{name}-lalib-syntax.patch
 URL:		http://www.gnu.org/software/libtool/
 BuildRequires:	/usr/bin/which
 BuildRequires:	autoconf >= 2.64
@@ -47,6 +46,8 @@ Conflicts:	autoconf < 2.58
 Conflicts:	gettext-devel < 0.17
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		filterout_cpp	-DNDEBUG
+
 %description
 GNU libtool is a set of shell scripts to automatically configure UNIX
 architectures to build shared libraries in generic fashion.
@@ -154,7 +155,6 @@ utilizando componentes estáticos (raramente necessário).
 %patch -P2 -p1
 %patch -P3 -p1
 %patch -P4 -p1
-%patch -P5 -p1
 
 %{__sed} -i -e '1s, /usr/bin/env sh,/bin/sh,' libtoolize.in build-aux/ltmain.{in,sh}
 
diff --git a/libtool-lalib-syntax.patch b/libtool-lalib-syntax.patch
deleted file mode 100644
index 18a6d64..0000000
--- a/libtool-lalib-syntax.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libtool-2.5.4/tests/lalib-syntax.at.orig
-+++ libtool-2.5.4/tests/lalib-syntax.at
-@@ -22,8 +22,6 @@
- AT_KEYWORDS([libtool])
- AT_KEYWORDS([libltdl])
- 
--AT_XFAIL_IF([:]) dnl libltdl does not consistently return non-NULL lt_dlerror
--
- AT_DATA([main.c],
- [[#include <ltdl.h>
- #include <stdio.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtool.git/commitdiff/0ba118c8837e1a82881179c64f919f4e4e54f55a



More information about the pld-cvs-commit mailing list