[packages/jq] fix build on x32; rel 2
atler
atler at pld-linux.org
Sat Jun 20 22:26:46 CEST 2026
commit 6304dfbcf2e21bb7cf39e63e1c2b5ea2ac691d2d
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Jun 20 22:25:33 2026 +0200
fix build on x32; rel 2
time_t and off_t are 64-bits already. don't confuse glibc needlessly.
jq.spec | 4 +++-
x32.patch | 8 ++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/jq.spec b/jq.spec
index 6d2feb3..c46d853 100644
--- a/jq.spec
+++ b/jq.spec
@@ -8,13 +8,14 @@ Summary: Command-line JSON processor
Summary(pl.UTF-8): Procesor JSON działający z linii poleceń
Name: jq
Version: 1.8.2
-Release: 1
+Release: 2
License: MIT, Apache, CC-BY, GPL v3
Group: Applications/Text
#Source0Download: https://github.com/jqlang/jq/releases
Source0: https://github.com/jqlang/jq/releases/download/%{name}-%{version}/jq-%{version}.tar.gz
# Source0-md5: e288a84cf2957ea2cfc643aa9e59b473
Patch0: tests-no-pty.patch
+Patch1: x32.patch
URL: https://jqlang.github.io/jq/
# for --enable-year2038
BuildRequires: autoconf >= 2.72
@@ -85,6 +86,7 @@ Statyczna biblioteka jq.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__libtoolize}
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..b542232
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,8 @@
+--- jq-1.8.2/src/builtin.c.orig 2026-06-20 15:36:30.000000000 +0200
++++ jq-1.8.2/src/builtin.c 2026-06-20 22:22:17.858914468 +0200
+@@ -1,4 +1,4 @@
+-#if __SIZEOF_POINTER__==4
++#if __SIZEOF_POINTER__==4 && !defined(__x86_64__)
+ # define _TIME_BITS 64
+ #endif
+ #ifndef __sun__
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/jq.git/commitdiff/6304dfbcf2e21bb7cf39e63e1c2b5ea2ac691d2d
More information about the pld-cvs-commit
mailing list