[packages/ldns] Up to 1.9.2

arekm arekm at pld-linux.org
Thu Nov 26 08:30:15 CET 2026


commit d32090f1d5caa623c56017e8d59e079e5e7137b3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 26 03:43:47 2026 +0100

    Up to 1.9.2
    
    Fixes CVE-2026-10846. Disable python2.

 ldns-stdbool.patch | 12 ++++++++++++
 ldns.spec          | 17 ++++++++++++-----
 2 files changed, 24 insertions(+), 5 deletions(-)
---
diff --git a/ldns.spec b/ldns.spec
index 5220183..67df665 100644
--- a/ldns.spec
+++ b/ldns.spec
@@ -2,32 +2,38 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# static library
-%bcond_without	python2		# Python 2.x modules
+%bcond_with	python2		# Python 2.x modules (swig >= 4.2 generates Python 3 only code)
 %bcond_without	python3		# Python 3.x modules
 #
 Summary:	ldns - a library with the aim to simplify DNS programing in C
 Summary(pl.UTF-8):	ldns - biblioteka mająca na celu uproszczenie programowania DNS w C
 Name:		ldns
-Version:	1.9.0
+Version:	1.9.2
 Release:	1
 License:	BSD
 Group:		Libraries
 Source0:	https://www.nlnetlabs.nl/downloads/ldns/%{name}-%{version}.tar.gz
-# Source0-md5:	895ccabbeadf67fe72fdf07c6a5e2a1a
+# Source0-md5:	6d17848f387d7aa2e9daf7d6ac3c1b13
 Patch0:		python-install.patch
 Patch1:		%{name}-link.patch
+Patch2:		%{name}-stdbool.patch
 URL:		https://www.nlnetlabs.nl/projects/ldns/about/
 BuildRequires:	autoconf >= 2.71
 BuildRequires:	automake
 BuildRequires:	doxygen
 BuildRequires:	libtool >= 2:2
 BuildRequires:	openssl-devel >= 1.1.0
-%if %{with python}
-BuildRequires:	python-devel >= 1:2.4.0
+%if %{with python2} || %{with python3}
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
 BuildRequires:	swig-python >= 2.0.4
 %endif
+%if %{with python2}
+BuildRequires:	python-devel >= 1:2.4.0
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel >= 1:3.2
+%endif
 Requires:	openssl >= 1.0.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -122,6 +128,7 @@ nie będa wspierane.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__libtoolize}
diff --git a/ldns-stdbool.patch b/ldns-stdbool.patch
new file mode 100644
index 0000000..0457bee
--- /dev/null
+++ b/ldns-stdbool.patch
@@ -0,0 +1,12 @@
+# glibc assert.h is re-included after common.h redefined _Bool as signed char (public header gets no config.h)
+--- ldns-1.9.2/ldns/common.h.in	2026-11-26 03:41:24.681420122 +0100
++++ ldns-1.9.2/ldns/common.h.in	2026-11-26 03:41:24.751941850 +0100
+@@ -41,7 +41,7 @@
+ /*@ignore@*/
+ /* splint barfs on this construct */
+ #ifndef __bool_true_false_are_defined
+-# ifdef HAVE_STDBOOL_H
++# if defined(HAVE_STDBOOL_H) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
+ #  include <stdbool.h>
+ # else
+ #  ifndef HAVE__BOOL
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ldns.git/commitdiff/d32090f1d5caa623c56017e8d59e079e5e7137b3



More information about the pld-cvs-commit mailing list