summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/at/APKBUILD1
-rw-r--r--system/easy-kernel/APKBUILD6
-rw-r--r--system/easy-kernel/kernel.h17
-rw-r--r--system/file/APKBUILD2
-rw-r--r--system/libedit/APKBUILD2
5 files changed, 25 insertions, 3 deletions
diff --git a/system/at/APKBUILD b/system/at/APKBUILD
index 2bd02c7da..d09571f91 100644
--- a/system/at/APKBUILD
+++ b/system/at/APKBUILD
@@ -31,6 +31,7 @@ prepare() {
build() {
LEXLIB=-lfl \
+ PATH=$PATH:/usr/sbin \
./configure \
--build=$CBUILD \
--host=$CHOST \
diff --git a/system/easy-kernel/APKBUILD b/system/easy-kernel/APKBUILD
index 2afe706d0..640caa7cb 100644
--- a/system/easy-kernel/APKBUILD
+++ b/system/easy-kernel/APKBUILD
@@ -30,6 +30,7 @@ source="https://cdn.kernel.org/pub/linux/kernel/v${_pkgmajver}.x/linux-${_pkgmin
config-aarch64
config-sparc64
config-m68k
+ kernel.h
"
builddir="$srcdir/linux-${_pkgminver}"
@@ -115,6 +116,8 @@ headers() {
# needed for spl, VMware on x86, etc
install -D -m644 "$builddir"/include/generated/utsrelease.h \
"$subpkgdir"/usr/include/linux/utsrelease.h
+
+ install -m644 "$srcdir"/kernel.h "$subpkgdir"/usr/include/linux/kernel.h
}
src() {
@@ -132,4 +135,5 @@ ec86baafbfc22fdb08872276284eac7dce695c192a02c3b7d35a5d67861b98be18475ccfbb366ff9
689e0f9c84afb7060a7438e5c1aee8342ace50983562745ef04d02be7b3ca5f61c02259cd0dffdb46d7d5857ea3cf3fee6b65c28eba0bf2341000e265ed60885 config-pmmx
baefddb2e1de0105f9333702121d3dd2c1f1d54ce22ee7f7d3a54d4fa1028e9b5dadeecb6cca8a717d30c7bc083daa652b0281fb1b39a85f191954ac5a95fecd config-aarch64
430d968f60cfd33d3ba1e7c2fec8b1d1eedee8086c7cebebf162223b058b0e1d873033e46e05f63d8a50c61397eaf1036b1e4b3a60581f08c6482810aa25df7f config-sparc64
-1b99310e2de81267fdb1668ad6f52f26d8798d94c0a952cfe9992ff40e5d7331ddfb324b8f99bfa300240aa568bbd4525150e0c774c797d85756714163fd0fa5 config-m68k"
+1b99310e2de81267fdb1668ad6f52f26d8798d94c0a952cfe9992ff40e5d7331ddfb324b8f99bfa300240aa568bbd4525150e0c774c797d85756714163fd0fa5 config-m68k
+61dcd633d72876566b7738dd08856b26850c935b4a81ab2364711335fe01c397083160f530b3382bbc239c6a8135be6a032e93039083ec2cefdae2902429a2e0 kernel.h"
diff --git a/system/easy-kernel/kernel.h b/system/easy-kernel/kernel.h
new file mode 100644
index 000000000..f9171158b
--- /dev/null
+++ b/system/easy-kernel/kernel.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _LINUX_KERNEL_H
+#define _LINUX_KERNEL_H
+
+#ifdef __GLIBC__
+#include <linux/sysinfo.h>
+#endif
+
+/*
+ * 'kernel.h' contains some often-used function prototypes etc
+ */
+#define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
+#define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
+
+#define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
+
+#endif /* _LINUX_KERNEL_H */
diff --git a/system/file/APKBUILD b/system/file/APKBUILD
index da9059a2b..b1c337355 100644
--- a/system/file/APKBUILD
+++ b/system/file/APKBUILD
@@ -9,7 +9,7 @@ url="http://www.darwinsys.com/file/"
arch="all"
license="BSD-2-Clause"
depends=""
-makedepends="autoconf automake"
+makedepends="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc libmagic"
source="$pkgname-$pkgver.tar.gz::https://github.com/file/file/archive/FILE${pkgver%.*}_${pkgver#*.}.tar.gz"
builddir="$srcdir/$pkgname-FILE${pkgver%.*}_${pkgver#*.}"
diff --git a/system/libedit/APKBUILD b/system/libedit/APKBUILD
index 0c0ffc468..63e80b875 100644
--- a/system/libedit/APKBUILD
+++ b/system/libedit/APKBUILD
@@ -10,7 +10,7 @@ arch="all"
license="BSD-2-Clause"
depends=""
depends_dev="ncurses-dev" # XXX is this always unconditionally needed?
-makedepends="$depends_dev autoconf automake"
+makedepends="$depends_dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://thrysoee.dk/editline/libedit-$_realver.tar.gz
tinfo.patch