• got (Game of Trees) 0.67 available for NetBSD

    From sehnsucht@21:1/5 to All on Sat Mar 5 10:05:19 2022
    Thomas Adam (fvwm3 mantainer) recently added[1] support for NetBSD in
    the portable version of got[2] (Game of Trees). Previously, the only
    way of deploying got on NetBSD was the pkgsrc port of the OpenBSD
    version, which required significant downstream patching and is still,
    as of today, stuck at v. 0.48.

    This commit fixes some things preventing got-portable from compiling on
    netbsd, like checking for panelw in the gnu/ncursesw libraries, and
    properly inking against openbsd-compat.

    [1]https://repo.or.cz/got-portable.git/commit/a3732bb6b798b7e4979938729f9047ebf6191027
    [2]https://gameoftrees.org/

    I successfully built got-portable 0.67 on several platforms, including
    amd64, evbarm64, i386 and macppc.

    ~ $ got -V
    got 0.67

    ~ $ file $(which got)
    /usr/local/bin/got: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV) dynamically linked, interpreter /usr/libexec/ld.elf_so, for NetBSD 9.99.93, not stripped

    ~ $ readelf -d $(which got)

    Dynamic section at offset 0xd2de0 contains 23 entries:
    Tag Type Name/Value
    0x0000000000000001 (NEEDED) Shared library: [libm.so.0]
    0x0000000000000001 (NEEDED) Shared library: [libncursesw.so.6]
    0x0000000000000001 (NEEDED) Shared library: [libgnupanelw.so.6]
    0x0000000000000001 (NEEDED) Shared library: [libz.so.1]
    0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.1.1]
    0x0000000000000001 (NEEDED) Shared library: [libc.so.12]
    0x000000000000000f (RPATH) Library rpath: [/usr/pkg/lib]
    0x0000000000000019 (INIT_ARRAY) 0x2001e2dd0
    0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
    0x0000000000000004 (HASH) 0x200100248
    0x0000000000000005 (STRTAB) 0x2001017b8
    0x0000000000000006 (SYMTAB) 0x200100720
    0x000000000000000a (STRSZ) 1547 (bytes)
    0x000000000000000b (SYMENT) 24 (bytes)
    0x0000000000000015 (DEBUG) 0x0
    0x0000000000000003 (PLTGOT) 0x2001e2fe8
    0x0000000000000002 (PLTRELSZ) 3648 (bytes)
    0x0000000000000014 (PLTREL) RELA
    0x0000000000000017 (JMPREL) 0x200101e88
    0x0000000000000007 (RELA) 0x200101dc8
    0x0000000000000008 (RELASZ) 192 (bytes)
    0x0000000000000009 (RELAENT) 24 (bytes)
    0x0000000000000000 (NULL) 0x0

    ~ $ got clone git://repo.or.cz/got-portable.git
    Connecting to repo.or.cz
    server: Counting objects: 23146, done.
    server: Compressing objects: 100% (6287/6287), done.
    server: Total 23146 (delta 17034), reused 22810 (delta 16768)
    3.4M fetched; indexing 100%; resolving deltas 100%
    Fetched 263e593705111c25de91446a51844a2af9f9eca2.pack
    Created cloned repository 'got-portable.git'


    --
    “Hell is empty and all the devils are here.„

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)