public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Ambroz <rebus@seznam.cz>
To: git-commits@fedoraproject.org
Subject: [rpms/afflib] epel9: - sync with upstream, fix build with git snapshot
Date: Mon, 09 Nov 2026 14:55:50 GMT	[thread overview]
Message-ID: <179423615093.1.13415392532631486689.rpms-afflib-082153f449e0@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/afflib
Branch : epel9
Commit : 082153f449e0514e97ad8ba7328646420f5e0373
Author : Michal Ambroz <rebus@seznam.cz>
Date   : 2024-06-14T12:51:00+02:00
Stats  : +47/-42 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/afflib/c/082153f449e0514e97ad8ba7328646420f5e0373?branch=epel9

Log:
- sync with upstream, fix build with git snapshot

---
diff --git a/Fix-build-with-gcc-14-Wincompatible-pointer-types.patch b/Fix-build-with-gcc-14-Wincompatible-pointer-types.patch
deleted file mode 100644
index 5f867a3..0000000
--- a/Fix-build-with-gcc-14-Wincompatible-pointer-types.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 535968c2f861027f3a7d0245fb2b9c6407a575ae Mon Sep 17 00:00:00 2001
-From: Nicolas Chauvet <kwizart@gmail.com>
-Date: Tue, 30 Jan 2024 09:09:27 +0100
-Subject: [PATCH] Fix build with gcc-14 -Wincompatible-pointer-types
-
-Reported at https://github.com/sshock/AFFLIBv3/issues/53
-
-Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
----
- pyaff/pyaff.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyaff/pyaff.c b/pyaff/pyaff.c
-index 873c6c8a288f..9f7414253968 100644
---- a/pyaff/pyaff.c
-+++ b/pyaff/pyaff.c
-@@ -832,7 +832,7 @@ struct __pyx_obj_5pyaff_affile;
-  */
- struct __pyx_obj_5pyaff_affile {
-   PyObject_HEAD
--  struct AFFILE *af;
-+  AFFILE *af;
-   int64_t size;
- };
- 
--- 
-2.42.0
-

diff --git a/afflib-0003-Fix-build-with-gcc-14-Wincompatible-pointer-types.patch b/afflib-0003-Fix-build-with-gcc-14-Wincompatible-pointer-types.patch
new file mode 100644
index 0000000..5f867a3
--- /dev/null
+++ b/afflib-0003-Fix-build-with-gcc-14-Wincompatible-pointer-types.patch
@@ -0,0 +1,28 @@
+From 535968c2f861027f3a7d0245fb2b9c6407a575ae Mon Sep 17 00:00:00 2001
+From: Nicolas Chauvet <kwizart@gmail.com>
+Date: Tue, 30 Jan 2024 09:09:27 +0100
+Subject: [PATCH] Fix build with gcc-14 -Wincompatible-pointer-types
+
+Reported at https://github.com/sshock/AFFLIBv3/issues/53
+
+Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
+---
+ pyaff/pyaff.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyaff/pyaff.c b/pyaff/pyaff.c
+index 873c6c8a288f..9f7414253968 100644
+--- a/pyaff/pyaff.c
++++ b/pyaff/pyaff.c
+@@ -832,7 +832,7 @@ struct __pyx_obj_5pyaff_affile;
+  */
+ struct __pyx_obj_5pyaff_affile {
+   PyObject_HEAD
+-  struct AFFILE *af;
++  AFFILE *af;
+   int64_t size;
+ };
+ 
+-- 
+2.42.0
+

diff --git a/afflib.spec b/afflib.spec
index f8ba085..0832842 100644
--- a/afflib.spec
+++ b/afflib.spec
@@ -1,9 +1,7 @@
-%global commit0 01210f488410a23838c54fcc22297cf08ac7de66
-%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
-
 Name:           afflib
 Version:        3.7.20
 Release:        %autorelease
+License:        BSD with advertising
 Summary:        Library to support the Advanced Forensic Format
 
 # Build also the python2 package
@@ -11,26 +9,33 @@ Summary:        Library to support the Advanced Forensic Format
 # Build also the python3 package
 %global         with_python3    1
 
+%global         gituser      sshock
+%global         gitname      AFFLIBv3
+%global         gitdate      20240324
+%global         commit       95bf6cb9cf344ed6dccb8eb12bc159a17e616adb
+%global         shortcommit %(c=%{commit}; echo ${c:0:7})
 
-License:        BSD with advertising
 URL:            https://github.com/sshock/AFFLIBv3
-#Source0:        %%{url}/archive/v%%{version}/%%{name}-%%{version}.tar.gz
-Source0:        %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
+VCS:            https://github.com/sshock/AFFLIBv3
+#Source0:       %%{vcs}/archive/v%%{version}/%%{name}-%%{version}.tar.gz
+Source0:        %{vcs}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz#/%{name}-%{version}-%{shortcommit}.tar.gz
 
 BuildRequires:  gcc-c++
 BuildRequires:  libtool
+BuildRequires:  make
 
 BuildRequires:  curl-devel
 BuildRequires:  expat-devel
-# GPLv2 FOSS incompatible with BSD with advertising
-##BuildRequires:  fuse-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  openssl-devel
+BuildRequires:  zlib-devel
+
+# GPLv2 FOSS incompatible with BSD with advertising
+##BuildRequires:  fuse-devel
 # GPLv2 FOSS incompatible with BSD with advertising
 ##BuildRequires:  readline-devel
-#BuildRequires:  libedit-devel - good replacement for readline - not supported for now
-BuildRequires:  zlib-devel
-BuildRequires: make
+#BuildRequires:   libedit-devel - good replacement for readline - not supported for now
+
 
 %if 0%{?with_python2}
 BuildRequires:  python2
@@ -112,7 +117,7 @@ basic metadata accessor functions. The binding is not currently complete.
 
 
 %prep
-%autosetup -p1 -n AFFLIBv3-%{commit0}
+%autosetup -p1 -n AFFLIBv3-%{commit}
 # prevent internal lzma to be built - testing
 #rm -rf lzma443
 
@@ -140,7 +145,7 @@ rm $(grep -rl '/\* Generated by Cython')
 
 %make_build
 cd pyaff
-%global py_setup_args build_ext --include-dirs %{_builddir}/AFFLIBv3-%{version}/include --library-dirs %{_builddir}/AFFLIBv3-%{version}/lib/.libs
+%global py_setup_args build_ext --include-dirs %{_builddir}/AFFLIBv3-%{commit}/include --library-dirs %{_builddir}/AFFLIBv3-%{commit}/lib/.libs
 %if 0%{?with_python2}
 %py2_build
 %endif

diff --git a/sources b/sources
index 351beb7..00522de 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (afflib-01210f4.tar.gz) = de5932871e57e8702016011431540429d3820d868e0d810a3a4a35e50148708b350dfd4268855ee2eb71504cbab811c960339b6f68e90ed89401a86866efe4e4
+SHA512 (afflib-3.7.20-95bf6cb.tar.gz) = c0054a56396ccf25f434c3dcd1d26ab95ed284b9d8efeb936fc6d7e209a20b85e2a23e0b7b9df02a458a666b52b69f3a370b0fbf997e0c00b0f9cf4a078dd7fb

                 reply	other threads:[~2026-11-09 14:55 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=179423615093.1.13415392532631486689.rpms-afflib-082153f449e0@fedoraproject.org \
    --to=rebus@seznam.cz \
    --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