From 8810728317c2d3ea67fd0f40c81cbdb31acd0169 Mon Sep 17 00:00:00 2001 From: nitori Date: Tue, 2 Jan 2024 15:22:32 +0000 Subject: [PATCH] libbsd: new at 0.11.7 --- extra/libbsd/build | 7 +++++++ extra/libbsd/checksums | 2 ++ extra/libbsd/depends | 1 + extra/libbsd/largefile64.patch | 14 ++++++++++++++ extra/libbsd/sources | 2 ++ extra/libbsd/version | 1 + 6 files changed, 27 insertions(+) create mode 100755 extra/libbsd/build create mode 100644 extra/libbsd/checksums create mode 100644 extra/libbsd/depends create mode 100644 extra/libbsd/largefile64.patch create mode 100644 extra/libbsd/sources create mode 100644 extra/libbsd/version diff --git a/extra/libbsd/build b/extra/libbsd/build new file mode 100755 index 00000000..62a8c834 --- /dev/null +++ b/extra/libbsd/build @@ -0,0 +1,7 @@ +#!/bin/sh -e + +patch -p1 < largefile64.patch + +./configure --prefix=/usr +make +make DESTDIR="$1" install diff --git a/extra/libbsd/checksums b/extra/libbsd/checksums new file mode 100644 index 00000000..67ffedd0 --- /dev/null +++ b/extra/libbsd/checksums @@ -0,0 +1,2 @@ +97712f30a614595aade23a00fe2bbf0da82ad13941eaf67285ea28e4015d568f87 +b73a7182fb61985d3f5eb14b6529d440f65e18a2ba510f11419baa7b04b6b2ea4e diff --git a/extra/libbsd/depends b/extra/libbsd/depends new file mode 100644 index 00000000..bad26870 --- /dev/null +++ b/extra/libbsd/depends @@ -0,0 +1 @@ +libmd diff --git a/extra/libbsd/largefile64.patch b/extra/libbsd/largefile64.patch new file mode 100644 index 00000000..d9a850c0 --- /dev/null +++ b/extra/libbsd/largefile64.patch @@ -0,0 +1,14 @@ +Large file extensions are not exposed to funopen.c unless two macros are defined. +--- a/src/funopen.c ++++ b/src/funopen.c +@@ -24,6 +24,9 @@ + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#define _LARGEFILE64_SOURCE ++#define _FILE_OFFSET_BITS 64 ++ + #include + #include + #include + diff --git a/extra/libbsd/sources b/extra/libbsd/sources new file mode 100644 index 00000000..2661f73b --- /dev/null +++ b/extra/libbsd/sources @@ -0,0 +1,2 @@ +https://libbsd.freedesktop.org/releases/libbsd-0.11.7.tar.xz +./largefile64.patch diff --git a/extra/libbsd/version b/extra/libbsd/version new file mode 100644 index 00000000..eb8c0995 --- /dev/null +++ b/extra/libbsd/version @@ -0,0 +1 @@ +0.11.7 1