Package Details: glow 1.4.1-1

Git Clone URL: https://aur.archlinux.org/glow.git (read-only, click to copy)
Package Base: glow
Description: Markdown renderer for the CLI
Upstream URL: https://github.com/charmbracelet/glow
Licenses: MIT
Submitter: muesli
Maintainer: muesli
Last Packager: muesli
Votes: 19
Popularity: 1.71
First Submitted: 2019-12-21 02:55
Last Updated: 2021-04-08 15:01

Latest Comments

ibrokemypie commented on 2021-06-02 08:20

Fails to build when lto is enabled in makepkg OPTIONS with this output

# net
cgo: cannot load DWARF output from $WORK/b103//_cgo_.o: decoding dwarf section info at offset 0x0: too short
# os/user
cgo: cannot load DWARF output from $WORK/b227//_cgo_.o: decoding dwarf section info at offset 0x0: too short

I think it is related to this issue https://github.com/golang/go/issues/40041, the makepkg cflags and ldflags should only be applied to c files, not the cgo output.

muesli commented on 2021-03-29 02:08

Thanks @matthias.lisin! I think I fixed all the issues you found.

matthias.lisin commented on 2021-03-29 01:29

sup muesli, thanks for packaging glow. Few things regarding build:

  • namcap: ELF file ('usr/bin/glow') lacks FULL RELRO, check LDFLAGS:
    • -ldflags can't be used multiple times in GOFLAGS and/or command line args Last one wins, meaning -linkmode=external is not picked up here
  • namcap: Dependency glibc detected and not included
  • main.go also expects main.CommitSHA to be set
    • (you can grab the commit from the source tar.gz like _commit=$(bsdcat "$srcdir/$pkgname-$pkgver.tar.gz" | git get-tar-commit-id))

bionade24 commented on 2020-09-23 13:02

This package is built by my CD and available in this repo:
https://wiki.archlinux.org/index.php/Unofficial_user_repositories#oscloud
CI status: https://abs-cd.oscloud.info/cd_manager/glow

muesli commented on 2019-12-26 10:10

@eh5 Updated and dropped git dependency.

eh5 commented on 2019-12-26 07:22

Build fails in fakeroot. Please add git to dependencies