Package Details: kimchi-server-git r48.f26ac42ad5a8-1

Git Clone URL: (read-only, click to copy)
Package Base: kimchi-server-git
Description: A bare-bones HTTP server
Upstream URL:
Licenses: MIT
Submitter: emersion
Maintainer: emersion
Last Packager: emersion
Votes: 1
Popularity: 0.000000
First Submitted: 2020-12-23 09:09 (UTC)
Last Updated: 2022-07-06 14:45 (UTC)

Latest Comments

emersion commented on 2021-02-19 09:48 (UTC)

You're right, I misunderstood. Fixed, thanks!

somini commented on 2021-02-18 17:33 (UTC)

The "git" package is also a makedepends in this case.

somini commented on 2021-02-18 16:58 (UTC) (edited on 2021-02-18 16:58 (UTC) by somini)

I don't think so.

The Makefile is overriding the GOFLAGS variable here:

Maybe this should be sent as a patch on sourcehut, but this works:

diff --git i/Makefile w/Makefile
index 8cacfe9..e5bd959 100644
--- i/Makefile
+++ w/Makefile
@@ -4,7 +4,7 @@
 GO = go
 RM = rm
 SCDOC = scdoc
 PREFIX = /usr/local
 MANDIR = $(PREFIX)/share/man

emersion commented on 2021-02-18 16:53 (UTC)

@somini Hm, this doesn't seem to match the wiki:

Should the wiki page be updated?

somini commented on 2021-02-18 16:51 (UTC)

The Makefile adds its own Go flags, so the PKGBUILD flags from the environment variable are ignored, they should be moved to makefile variables.

This removes the "Package contains reference to $srcdir" warning.

Here's a patch:

diff --git i/PKGBUILD w/PKGBUILD
index 2ef51d3..bf20eb0 100644
@@ -26,8 +26,8 @@ build() {
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
-  make
+  make GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"

 check() {