Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-04-08 12:13:40 +0300
committerTasos Sahanidis <tasos@tasossah.com>2024-04-08 12:13:40 +0300
commita067ea3afb59e15072304b2cefd7aa6cb94c5418 (patch)
treedff18264f4636a0045185b4af1de43653b924487 /extra
parent8316c651c3d15313a45966845c6de77ec858d4bc (diff)
extra/powerdns: Force allow building with 32 bit time_t
Diffstat (limited to 'extra')
-rw-r--r--extra/powerdns/32_bit_time_t.diff11
-rw-r--r--extra/powerdns/PKGBUILD3
2 files changed, 14 insertions, 0 deletions
diff --git a/extra/powerdns/32_bit_time_t.diff b/extra/powerdns/32_bit_time_t.diff
new file mode 100644
index 00000000..e6fa2596
--- /dev/null
+++ b/extra/powerdns/32_bit_time_t.diff
@@ -0,0 +1,11 @@
+--- configure 2024-03-15 11:18:50.000000000 +0200
++++ configure.time_t 2024-04-08 12:01:25.464421078 +0300
+@@ -7269,7 +7269,7 @@
+ printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
+
+
+-if test $ac_size -lt 8
++if false
+ then :
+ as_fn_error $? "size of time_t is $ac_size, which is not large enough to fix the y2k38 bug" "$LINENO" 5
+ fi
diff --git a/extra/powerdns/PKGBUILD b/extra/powerdns/PKGBUILD
new file mode 100644
index 00000000..a959a04e
--- /dev/null
+++ b/extra/powerdns/PKGBUILD
@@ -0,0 +1,3 @@
+sha512sums+=(a8e6301b82e2b83180d224bc4119c348745a2444e5d403da02020d25b3e40cf64f5b158c3b0127d285d2531bcad4cb8d348b152da9a37924670074a48d79aaf6)
+source+=(32_bit_time_t.diff)
+eval "$(declare -f prepare | sed '4ipatch -Np0 -i ../32_bit_time_t.diff')"