Subject: [alpine-aports] [PATCH] testing/alacritty: new APKBUILD

From: Drew DeVault <[email-masked]>
Date: Fri, 1 Mar 2019 17:49:53 -0700

---
 testing/alacritty/APKBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 testing/alacritty/APKBUILD

diff --git a/testing/alacritty/APKBUILD b/testing/alacritty/APKBUILD
new file mode 100644
index 0000000000..ee3be5b3c4
--- /dev/null
+++ b/testing/alacritty/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=alacritty
+pkgver=0.2.9
+pkgrel=0
+pkgdesc="A cross-platform, GPU-accelerated terminal emulator"
+url="https://github.com/jwilm/alacritty"
+arch="all"
+license="Apache-2.0"
+makedepends="rust cargo"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jwilm/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+export CARGO_HOME="$srcdir"/cargo
+export RUSTFLAGS="-C target-feature=-crt-static"
+
+build() {
+	cd "$builddir"
+	cargo build --release --verbose
+}
+
+check() {
+	cd "$builddir"
+	cargo test --all --release --verbose
+}
+
+package() {
+	cd "$builddir"
+	install -Dm755 target/release/alacritty "$pkgdir"/usr/bin/alacritty
+	install -Dm644 alacritty.man "$pkgdir"/usr/share/man/man1/alacritty.1
+	install -Dm644 alacritty.yml "$pkgdir"/etc/alacritty/alacritty.yml
+}
+
+sha512sums="c36dea633d5c9faa42956eff47fbd676b5f3a5ef28ae7d6711145f76e99ae92aa8ddcdde1eb5bc700855af5928e2da0b4be3f618bb05aa93c284b73727b2e337  alacritty-0.2.9.tar.gz"
-- 
2.21.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Henrik Riomar <[email-masked]>
Date: Sat, 2 Mar 2019 10:31:15 +0100

>  testing/alacritty/APKBUILD | 33 +++++++++++++++++++++++++++++++++
....
> +makedepends="rust cargo"

regarding arch="all", we only have rust on "x86_64".

I am not able to test build this package on my x86_64 box:
 >>> alacritty: Checking sha512sums...
 alacritty-0.2.9.tar.gz: OK
 >>> alacritty: Unpacking /var/cache/distfiles/alacritty-0.2.9.tar.gz...
    Updating crates.io index
   Segmentation fault
 >>> ERROR: alacritty: build failed

But I have the same problem with librespot, so it might be my box, or
something recently changed in edge.

/ Henrik

---

---

From: Drew DeVault <[email-masked]>
Date: Sat, 2 Mar 2019 09:54:41 -0700

---
I'm unable to reproduce the crates.io update segfault issue you
encountered.

index 0000000000..06b47f05f2
+arch="x86_64" # via Rust

---

---

From: Henrik Riomar <[email-masked]>
Date: Sat, 2 Mar 2019 23:54:07 +0100

> I'm unable to reproduce the crates.io update segfault issue you

tried on a other box with Intel CPU where it did not fail (Ryzen when
it failed).

Seems these "cmake fontconfig-dev freetype-dev" makedepends are
missing for the build to succeed.

But then it fails in the test suite on 'x11:tests:clipboard_works'
test, missing checkdepend?

/ Henrik

---

---

From: Chloe Kudryavtsev <[email-masked]>
Date: Sat, 2 Mar 2019 19:42:33 -0500

> tried on a other box with Intel CPU where it did not fail (Ryzen when

This is likely an amd64-specific issue with libcurl's handling of http/2.
It will segfault sporadically while trying to download other crates for 
building.
Please make sure you're running libcurl 7.64.0-r1 (r1 is the one in 
which the patch to fix the issue was added).

---

---

From: Drew DeVault <[email-masked]>
Date: Sun, 3 Mar 2019 14:01:19 -0700

---
 testing/alacritty/APKBUILD | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 testing/alacritty/APKBUILD

index 0000000000..cdf9c288d4
@@ -0,0 +1,34 @@
+makedepends="rust cargo cmake fontconfig-dev freetype-dev"
+checkdepends="xclip"

---

---

From: Milan P. Stanić <[email-masked]>
Date: Sun, 3 Mar 2019 22:30:12 +0100

> +++ b/testing/alacritty/APKBUILD
                 ^^^^^^^^^^
I suspect this comment is needed, rust and cargo are in makedepends
Ok, this is nitpicking but anyway I ask.

---

---

From: Henrik Riomar <[email-masked]>
Date: Mon, 4 Mar 2019 11:24:42 +0100

Yes seems xclip was the missing check depend. But now the test fails on
"Can't open display: (null)"

/ Henrik

On Sun, Mar 3, 2019, 22:01 Drew DeVault <[email-masked]> wrote:

> +source="$pkgname-$pkgver.tar.gz::
> https://github.com/jwilm/$pkgname/archive/v$pkgver.tar.gz"

---

From: Drew DeVault <[email-masked]>
Date: Mon, 4 Mar 2019 08:31:48 -0700

Hmm. Spinning up an entire X server seems like a bit much. I'm thinking
about adding !check, anyone opposed?

---