public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libasyncns] f44: Add debian patches (RHBZ#2264221)
@ 2026-06-05  8:22 Leigh Scott
  0 siblings, 0 replies; only message in thread
From: Leigh Scott @ 2026-06-05  8:22 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libasyncns
Branch : f44
Commit : 54a3b350d2962643a6ec475ba1ee0f28b3fc682e
Author : Leigh Scott <leigh123linux@gmail.com>
Date   : 2026-06-04T17:28:36+01:00
Stats  : +46/-2 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/libasyncns/c/54a3b350d2962643a6ec475ba1ee0f28b3fc682e?branch=f44

Log:
Add debian patches (RHBZ#2264221)

---
diff --git a/equality_in_assert.patch b/equality_in_assert.patch
new file mode 100644
index 0000000..633f1ab
--- /dev/null
+++ b/equality_in_assert.patch
@@ -0,0 +1,27 @@
+Author: Myhailo Danylenko <isbear@isbear.org.ua>
+Last-Update: 2017-05-14
+Bug-Debian: https://bugs.debian.org/862596
+Origin: https://bugs.freedesktop.org/show_bug.cgi?id=91859
+Description: Replace possibly unwanted assignment by check for equality
+FIXME: Needs review
+
+--- a/libasyncns/asyncns.c
++++ b/libasyncns/asyncns.c
+@@ -1506,7 +1506,7 @@ int asyncns_isdone(asyncns_t *asyncns, a
+ void asyncns_setuserdata(asyncns_t *asyncns, asyncns_query_t *q, void *userdata) {
+     assert(q);
+     assert(asyncns);
+-    assert(q->asyncns = asyncns);
++    assert(q->asyncns == asyncns);
+ 
+     q->userdata = userdata;
+ }
+@@ -1514,7 +1514,7 @@ void asyncns_setuserdata(asyncns_t *asyn
+ void* asyncns_getuserdata(asyncns_t *asyncns, asyncns_query_t *q) {
+     assert(q);
+     assert(asyncns);
+-    assert(q->asyncns = asyncns);
++    assert(q->asyncns == asyncns);
+ 
+     return q->userdata;
+ }

diff --git a/libasyncns.spec b/libasyncns.spec
index 4531d88..828a2f2 100644
--- a/libasyncns.spec
+++ b/libasyncns.spec
@@ -1,10 +1,12 @@
 Name:    libasyncns
 Version: 0.8
-Release: 33%{?dist}
+Release: 34%{?dist}
 Summary: Asynchronous Name Service Library
 License: LGPL-2.1-or-later
 URL:     http://0pointer.de/lennart/projects/libasyncns/
-Source0: %{url}/libasyncns-%{version}.tar.gz
+Source0: %{url}/%{name}-%{version}.tar.gz
+Patch0:  pkg-config-multiarch.patch
+Patch1:  equality_in_assert.patch
 
 BuildRequires:  gcc
 BuildRequires:  make
@@ -42,6 +44,9 @@ rm -rf %{buildroot}%{_datadir}/doc/libasyncns/
 %{_libdir}/pkgconfig/libasyncns.pc
 
 %changelog
+* Thu Jun 04 2026 Leigh Scott <leigh123linux@gmail.com> - 0.8-34
+- Add debian patches (RHBZ#2264221)
+
 * Thu Jun 04 2026 Leigh Scott <leigh123linux@gmail.com> - 0.8-33
 - Clean up
 

diff --git a/pkg-config-multiarch.patch b/pkg-config-multiarch.patch
new file mode 100644
index 0000000..805543f
--- /dev/null
+++ b/pkg-config-multiarch.patch
@@ -0,0 +1,12 @@
+--- a/libasyncns.pc.in
++++ b/libasyncns.pc.in
+@@ -1,7 +1,7 @@
+ prefix=@prefix@
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
+-includedir=${prefix}/include
++libdir=@libdir@
++includedir=@includedir@
+ 
+ Name: libasyncns
+ Description: Asynchronous Name Service

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-05  8:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05  8:22 [rpms/libasyncns] f44: Add debian patches (RHBZ#2264221) Leigh Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox