Package Details: qcal 0.9.2-1

Git Clone URL: https://aur.archlinux.org/qcal.git (read-only, click to copy)
Package Base: qcal
Description: Console-based quick calendar for CalDAV
Upstream URL: https://git.sr.ht/~psic4t/qcal
Keywords: caldav calendar cli go
Licenses: GPL
Submitter: psic4t
Maintainer: psic4t
Last Packager: psic4t
Votes: 1
Popularity: 0.000000
First Submitted: 2021-12-29 14:28 (UTC)
Last Updated: 2024-08-05 09:15 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

psic4t commented on 2022-08-06 12:17 (UTC)

I can't reproduce this. Is your Go version up to date?

passbe commented on 2022-07-25 04:22 (UTC)

Struggling to build this package due to the following errors, anyone else suffering from this?

==> Starting build()...
rm -f qcal
GOOS=linux GOARCH=amd64 go build -o qcal -ldflags="-s -w"
go: downloading github.com/channelmeter/iso8601duration v0.0.0-20150204201828-8da3af7a2a61
# data.haus/qcal
_cgo_callers: relocation target x_cgo_callers not defined
_cgo_init: relocation target x_cgo_init not defined
_cgo_mmap: relocation target x_cgo_mmap not defined
_cgo_munmap: relocation target x_cgo_munmap not defined
_cgo_notify_runtime_init_done: relocation target x_cgo_notify_runtime_init_done not defined
_cgo_sigaction: relocation target x_cgo_sigaction not defined
_cgo_thread_start: relocation target x_cgo_thread_start not defined
net._cgo_6cc2654a8ed3_C2func_getaddrinfo: relocation target _cgo_6cc2654a8ed3_C2func_getaddrinfo not defined
net._cgo_6cc2654a8ed3_Cfunc_freeaddrinfo: relocation target _cgo_6cc2654a8ed3_Cfunc_freeaddrinfo not defined
net._cgo_6cc2654a8ed3_Cfunc_gai_strerror: relocation target _cgo_6cc2654a8ed3_Cfunc_gai_strerror not defined
runtime._cgo_setenv: relocation target x_cgo_setenv not defined
runtime._cgo_unsetenv: relocation target x_cgo_unsetenv not defined
runtime.cgo_yield: relocation target _cgo_yield not defined
.rela: relocation target _cgo_yield not defined
.rela: relocation target x_cgo_setenv not defined
.rela: relocation target x_cgo_unsetenv not defined
.rela: relocation target _cgo_6cc2654a8ed3_C2func_getaddrinfo not defined
.rela: relocation target _cgo_6cc2654a8ed3_Cfunc_freeaddrinfo not defined
.rela: relocation target _cgo_6cc2654a8ed3_Cfunc_gai_strerror not defined
.rela: relocation target x_cgo_init not defined
.rela: relocation target x_cgo_thread_start not defined
/usr/lib/go/pkg/tool/linux_amd64/link: too many errors
make: *** [Makefile:4: qcal] Error 2
==> ERROR: A failure occurred in build().

psic4t commented on 2022-03-02 08:44 (UTC)

Thanks for the patch! I uploaded an updated version.

somini commented on 2022-03-01 11:26 (UTC) (edited on 2022-03-01 11:36 (UTC) by somini)

Thanks for the software, but the package has some issues:

  • The architecture cannot be "any", since this is a compiled package. Include a list of supported architectures.
  • Follow the Go guidelines w.r.t. flags

Don't forget to update the SRCINFO after changing this: makepkg --printsrcinfo >.SRCINFO

Here's a patch:

diff --git i/PKGBUILD w/PKGBUILD
index dc6685a..1974b87 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=qcal
 pkgver=0.8.4
 pkgrel=1
 pkgdesc='Console-based quick calendar for CalDAV'
-arch=('any')
+arch=('x86_64')
 url='https://git.sr.ht/~psic4t/qcal'
 license=('GPL')
 makedepends=('go')
@@ -13,6 +13,11 @@ sha512sums=('4084af17690a6f3f52329c74f2d8bfb187fa8a749c390f117256b03d2263acb0850

 build() {
        cd ${pkgname}-${pkgver}
+       export CGO_CPPFLAGS="${CPPFLAGS}"
+       export CGO_CFLAGS="${CFLAGS}"
+       export CGO_CXXFLAGS="${CXXFLAGS}"
+       export CGO_LDFLAGS="${LDFLAGS}"
+       export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
        make
 }