[RFC PATCH 1/1] community/linux-test-project: new aport
Export this patch
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Hi,
NOTE: build has failure on tracking dependencies, but otherwise ends ok.
>>> ltp-full-doc*: Create ltp-full-doc-20210121-r0.apk
>>> ltp-full*: Tracing dependencies...
>>> ERROR: ltp-full*: lddfile1.obj.so: path not found
acl
attr
bc
binutils
e2fsprogs
iputils
iproute2
so:libacl.so.1
so:libaio.so.1
so:libc.musl-x86_64.so.1
so:libcap.so.2
so:libcrypto.so.1.1
so:libkeyutils.so.1
so:libnuma.so.1
so:libselinux.so.1
so:libtirpc.so.3
>>> ltp-full*: Package size: 296.6 MB
>>> ltp-full*: Compressing data...
>>> ltp-full*: Create checksum...
>>> ltp-full*: Create ltp-full-20210121-r0.apk
>>> ltp-full: Build complete at Mon, 25 Jan 2021 01:46:18 +0000 elapsed time 0h 7m 9s
>>> ltp-full: Cleaning up srcdir
>>> ltp-full: Cleaning up pkgdir
>>> ltp-full: Uninstalling dependencies...
(1/56) Purging .makedepends-ltp-full (20210125.013910)
...
Executing busybox-1.31.1-r19.trigger
OK: 1096 MiB in 214 packages
>>> ltp-full: Updating the testing/x86_64 repository index...
>>> ltp-full: Signing the index...
Kind regards,
Petr
testing/linux-test-project/APKBUILD | 79 +++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
create mode 100644 testing/linux-test-project/APKBUILD
diff --git a/testing/linux-test-project/APKBUILD b/testing/linux-test-project/APKBUILD
new file mode 100644
index 0000000000..e8bd718b90
--- /dev/null
+++ b/testing/linux-test-project/APKBUILD
@@ -0,0 +1,79 @@
+# Contributor: Petr Vorel <petr.vorel@gmail.com>
+# Maintainer: Petr Vorel <petr.vorel@gmail.com>
+pkgname=ltp-full
+pkgver=20210121
+pkgrel=0
+pkgdesc="The Linux Test Project"
+url="http://linux-test-project.github.io"
+arch="all"
+license="GPL-2.0-or-later"
+depends="
+ acl
+ attr
+ bc
+ binutils
+ e2fsprogs
+ iputils
+ iproute2
+"
+depends_dev="
+ acl-dev
+ autoconf
+ automake
+ bison
+ flex
+ gcc
+ keyutils-dev
+ libaio-dev
+ libacl
+ libcap-dev
+ libselinux-dev
+ libsepol-dev
+ libtirpc-dev
+ linux-headers
+ make
+ musl-dev
+ numactl-dev
+ openssl-dev
+ pkgconfig
+"
+makedepends="$depends_dev"
+options="!check" # no tests
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/linux-test-project/ltp/releases/download/$pkgver/ltp-full-$pkgver.tar.xz"
+builddir="$srcdir/ltp-full-$pkgver"
+
+prepare() {
+ default_prepare
+
+ # https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh
+ cd "$builddir"
+ rm -rf \
+ testcases/kernel/sched/process_stress/process.c \
+ testcases/kernel/syscalls/confstr/confstr01.c \
+ testcases/kernel/syscalls/fmtmsg/fmtmsg01.c \
+ testcases/kernel/syscalls/getcontext/getcontext01.c \
+ testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c \
+ testcases/kernel/syscalls/timer_create/timer_create01.c \
+ testcases/kernel/syscalls/timer_create/timer_create03.c \
+ utils/benchmark/ebizzy-0.3
+ cd -
+}
+
+build() {
+ LEXLIB=-lfl \
+ ./configure \
+ --with-realtime-testsuite \
+ --with-open-posix-testsuite \
+ --disable-metadata \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr
+ make V=1
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="382e4b851138805f58093bc8232df5d22f9cf64ffa110bbaa5c5637517c47663772b96c55eca172f447bee7d1a1fb29084660c5374c4042461c59ba8faab3101 ltp-full-20210121.tar.xz"
--
2.30.0