Package Details: foot-terminfo 1.6.2-1

Git Clone URL: https://aur.archlinux.org/foot.git (read-only, click to copy)
Package Base: foot
Description: Terminfo files for the foot terminal emulator
Upstream URL: https://codeberg.org/dnkl/foot
Keywords: terminal wayland
Licenses: MIT
Submitter: danekl
Maintainer: danekl
Last Packager: danekl
Votes: 11
Popularity: 5.10
First Submitted: 2020-03-06 20:32
Last Updated: 2020-12-21 15:02

Latest Comments

tinywrkb commented on 2020-12-21 13:20

@danekl Thanks again for the prompt reply and fix.

danekl commented on 2020-12-21 12:59

@tinywrkb hopefully fixed now. Will take a look at aurutils for future releases.

tinywrkb commented on 2020-12-21 12:25

@danekl It fails again to build in a chroot.

Traceback (most recent call last):
  File "/build/foot/src/foot/./scripts/generate-alt-random-writes.py", line 194, in <module>
    sys.exit(main())
  File "/build/foot/src/foot/./scripts/generate-alt-random-writes.py", line 40, in main
    fcntl.ioctl(sys.stdout.fileno(),
OSError: [Errno 25] Inappropriate ioctl for device

You really need to start testing if your releases are being built correctly in a chroot. This is how Arch Linux package maintainers are building packages and you probably want to see the app being published on the official repos without adding work to Arch Linux maintainers.

I recommend trying aurutils for automating packaging in a chroot.

I'm not bothering with this further, I just dropped foot, it's not my default terminal emulator, I added it to my packages as an alternative, and I'm not gonna set an LXD container just to build it.

tinywrkb commented on 2020-12-18 16:56

@daneki It now builds successfully in a chroot. Thanks!

danekl commented on 2020-12-18 15:17

@tinywrkb should be fixed now

danekl commented on 2020-12-18 14:33

@tinywrkb: you are correct. This will be fixed very soon, when I've ported foot's PKGBUILD to use https://aur.archlinux.org/packages/fcft/ instead of pulling in fcft as a meson subproject.

tinywrkb commented on 2020-12-18 14:05

The check() function is failing in a chroot build.

The output from the failed tests:

2/2 fcft / fcft       FAIL           0.02s (exit status 6)

--- command ---
13:55:50 /build/foot/src/foot/build/subprojects/fcft/test-fcft
--- stdout ---
Running suite(s): fcft
0%: Checks: 6, Failures: 6, Errors: 0
test.c:14:S:core:test_capabilities:0: Assertion 'font != NULL' failed: font == 0
test.c:14:S:core:test_from_name:0: Assertion 'font != NULL' failed: font == 0
test.c:14:S:core:test_glyph_rasterize:0: Assertion 'font != NULL' failed: font == 0
test.c:14:S:core:test_size_adjust:0: Assertion 'font != NULL' failed: font == 0
test.c:14:S:core:test_precompose:0: Assertion 'font != NULL' failed: font == 0
test.c:14:S:core:test_set_scaling_filter:0: Assertion 'font != NULL' failed: font == 0
-------

Looking at the test code, it's all about loading fonts, so you need some font package that has the proper font families for the tests. Adding dejavu to the checkdepends array fix this issue.

diff --git a/PKGBUILD b/PKGBUILD
index c1043b5..a5431f7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
 # Maintainer: Daniel Eklöf <daniel at ekloef dot se>
 pkgname=('foot' 'foot-terminfo')
 pkgver=1.5.4  # Don’t forget to update CHANGELOG.md
-pkgrel=3
+pkgrel=4
 arch=('x86_64' 'aarch64')
 url=https://codeberg.org/dnkl/foot
 license=(mit)
 depends=('libxkbcommon' 'wayland' 'pixman' 'fontconfig' 'freetype2')
 makedepends=('meson' 'ninja' 'scdoc' 'python' 'ncurses' 'wayland-protocols')
-checkdepends=('check')
+checkdepends=('check' 'dejavu')
 source=(https://codeberg.org/dnkl/foot/archive/1.5.4.tar.gz
         https://codeberg.org/dnkl/tllist/archive/1.0.4.tar.gz
         https://codeberg.org/dnkl/fcft/archive/2.3.2.tar.gz)