public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Leigh Scott <leigh123linux@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libasyncns] f44: Add debian patches (RHBZ#2264221)
Date: Fri, 05 Jun 2026 08:22:14 GMT	[thread overview]
Message-ID: <178064773487.1.7285683170443537008.rpms-libasyncns-54a3b350d296@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-06-05  8:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178064773487.1.7285683170443537008.rpms-libasyncns-54a3b350d296@fedoraproject.org \
    --to=leigh123linux@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox