[packages/poke] Up to 5.0
arekm
arekm at pld-linux.org
Mon Aug 17 23:16:49 CEST 2026
commit a16c3b01131a2a5431ad7552d5b0d86b9b3e429d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Aug 17 23:16:36 2026 +0200
Up to 5.0
poke-libm.patch | 29 +++++++++++++++++++++++++++++
poke.spec | 13 ++++++++-----
2 files changed, 37 insertions(+), 5 deletions(-)
---
diff --git a/poke.spec b/poke.spec
index 7dfe3c4..da9f23b 100644
--- a/poke.spec
+++ b/poke.spec
@@ -1,13 +1,14 @@
Summary: An interactive, extensible editor for binary data
Summary(pl.UTF-8): Interaktywny, rozszerzalny edytor do danych binarnych
Name: poke
-Version: 4.3
+Version: 5.0
Release: 1
License: GPL v3+
Group: Applications/Editors
Source0: https://ftp.gnu.org/gnu/poke/%{name}-%{version}.tar.gz
-# Source0-md5: 95a2598593a2f4e11513cde814b6a024
+# Source0-md5: 140fee8b7747442a770a3f4c7ae6c969
Patch0: %{name}-info.patch
+Patch1: %{name}-libm.patch
URL: http://www.jemarch.net/poke
BuildRequires: automake
BuildRequires: bison >= 3.6
@@ -16,7 +17,6 @@ BuildRequires: gawk
BuildRequires: gc-devel
BuildRequires: gettext-tools >= 0.19.8
BuildRequires: help2man
-BuildRequires: json-c-devel >= 0.11
BuildRequires: libnbd-devel
BuildRequires: libtextstyle-devel >= 0.20.5
BuildRequires: ncurses-devel >= 5.0
@@ -91,6 +91,7 @@ Tryb poke dla Emacsa.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%configure
@@ -103,6 +104,7 @@ rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libpoke.la
+%{__rm} $RPM_BUILD_ROOT%{_infodir}/dir
# already in vim-rt
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim
@@ -123,6 +125,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/pk-bin2poke
+%attr(755,root,root) %{_bindir}/pk-bpfcoredump
%attr(755,root,root) %{_bindir}/pk-jojopatch
%attr(755,root,root) %{_bindir}/pk-strings
%attr(755,root,root) %{_bindir}/poke
@@ -133,11 +136,12 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/poked.1*
%{_mandir}/man1/pokefmt.1*
%{_infodir}/poke.info*
+%{_infodir}/pokeint.info*
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpoke.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpoke.so.1
+%attr(755,root,root) %ghost %{_libdir}/libpoke.so.2
%files devel
%defattr(644,root,root,755)
@@ -152,5 +156,4 @@ rm -rf $RPM_BUILD_ROOT
%files -n emacs-poke-mode
%defattr(644,root,root,755)
-%{_datadir}/emacs/site-lisp/poke-map-mode.el
%{_datadir}/emacs/site-lisp/poke-ras-mode.el
diff --git a/poke-libm.patch b/poke-libm.patch
new file mode 100644
index 0000000..4d4eb05
--- /dev/null
+++ b/poke-libm.patch
@@ -0,0 +1,29 @@
+libpoke calls ceil/ceilf/fmod/fmodf/pow/powf/sqrt/sqrtf (floating point
+support added in 5.0) but is not linked against libm. -lc in LDFLAGS lands
+before the objects on the link line, where --as-needed drops it; libraries
+have to be listed in LIBADD instead.
+
+--- poke-5.0/libpoke/Makefile.am 2026-08-10 09:20:52.000000000 +0200
++++ poke-5.0/libpoke/Makefile.am 2026-08-17 23:05:44.856769259 +0200
+@@ -214,7 +214,8 @@
+ libpoke_la_CFLAGS = -Wall $(BDW_GC_CFLAGS) $(LIBNBD_CFLAGS)
+ libpoke_la_LIBADD = ../gl-libpoke/libgnu.la libpvmjitter.la \
+ $(BDW_GC_LIBS) \
+- $(LIBNBD_LIBS)
++ $(LIBNBD_LIBS) \
++ -lm
+ libpoke_la_LDFLAGS = -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
+ -lc -no-undefined
+
+--- poke-5.0/libpoke/Makefile.in 2026-08-17 00:04:13.000000000 +0200
++++ poke-5.0/libpoke/Makefile.in 2026-08-17 23:05:44.856994792 +0200
+@@ -3549,7 +3549,8 @@
+ libpoke_la_CFLAGS = -Wall $(BDW_GC_CFLAGS) $(LIBNBD_CFLAGS)
+ libpoke_la_LIBADD = ../gl-libpoke/libgnu.la libpvmjitter.la \
+ $(BDW_GC_LIBS) \
+- $(LIBNBD_LIBS)
++ $(LIBNBD_LIBS) \
++ -lm
+
+ libpoke_la_LDFLAGS = -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
+ -lc -no-undefined
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/poke.git/commitdiff/a16c3b01131a2a5431ad7552d5b0d86b9b3e429d
More information about the pld-cvs-commit
mailing list