diff options
author | Chloe Kudryavtsev <toast@toastin.space> | 2019-06-24 01:11:30 -0400 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-06-24 10:39:56 +0000 |
commit | c85025000149954ec8c5d0f1cd937e28f28a54be (patch) | |
tree | e9e9be02c0681004f7bc9ed0c435204fd542566f /testing/procs | |
parent | b319095697fe54b56031a53b5e6fb6d2515d5e3c (diff) | |
download | aports-c85025000149954ec8c5d0f1cd937e28f28a54be.tar.bz2 aports-c85025000149954ec8c5d0f1cd937e28f28a54be.tar.xz |
testing/procs: new aport
A modern replacement for ps written in Rust
re: tests
In the following scenarios, tests pass:
- running by hand on real hardware
- running by hand in an alpine container
However, the moment abuild is involved, tests will segfault on test 3.
I couldn't figure out why exactly this happens.
I have a hunch that it has something to do with stdout handling, but
it's hard to verify.
Closes GH-9034
Diffstat (limited to 'testing/procs')
-rw-r--r-- | testing/procs/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/procs/APKBUILD b/testing/procs/APKBUILD new file mode 100644 index 0000000000..009228404e --- /dev/null +++ b/testing/procs/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Chloe Kudryavtsev <toast@toastin.space> +# Maintainer: Chloe Kudryavtsev <toast@toastin.space> +pkgname=procs +pkgver=0.8.7 +pkgrel=0 +pkgdesc="A modern replacement for ps written in Rust" +url="https://github.com/dalance/procs" +arch="x86_64" # limited by rust/cargo +license="MIT" +options="!check net" # abuild specifically causes tests to segfault +makedepends="cargo" +source="$pkgname-$pkgver.tar.gz::https://github.com/dalance/procs/archive/v$pkgver.tar.gz" + +export CARGO_HOME="$srcdir"/cargo + +build() { + cargo build \ + --release \ + --verbose +} + +check() { + cargo test --all \ + --release \ + --verbose +} + +package() { + install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname" +} + +sha512sums="2f0645c08b86f48a81d0d2055317954365f2b290b3b1cf56cea60e28c21800f907b9fc802b0832decd3f62b009c9faff82158611c4fb0044da4a28d2b50f0d3b procs-0.8.7.tar.gz" |