Package Details: flux-go 0.31.3-1

Git Clone URL: https://aur.archlinux.org/flux-go.git (read-only, click to copy)
Package Base: flux-go
Description: Open and extensible continuous delivery solution for Kubernetes
Upstream URL: https://fluxcd.io/
Keywords: continuous-delivery devops flux gitops kubernetes
Licenses: Apache
Conflicts: flux-bin
Provides: flux-bin
Replaces: flux-cli
Submitter: fluxcdbot
Maintainer: fluxcdbot (hiddeco, aurelcanciu)
Last Packager: fluxcdbot
Votes: 5
Popularity: 0.015272
First Submitted: 2020-12-03 10:23 (UTC)
Last Updated: 2022-06-29 14:15 (UTC)

Latest Comments

brody commented on 2022-02-07 08:33 (UTC)

Currently the check fails during the package build if your local timezone is not UTC. Here is a fix.

diff --git a/PKGBUILD b/PKGBUILD
index 3b373d1..8cb4246 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,7 +44,7 @@ check() {
       export ENVTEST_ARCH=arm
       ;;
   esac
-  make test
+  TZ=UTC make test
 }

 package() {

nightuser commented on 2021-11-29 11:20 (UTC)

Hi,

Regarding the issues with the LTO, since Go doesn't support LTO yet the fix is to add options=(!lto) to PKGBUILD.

GeorgeRaven commented on 2021-11-26 13:08 (UTC)

Hey I just wanted to highlight a possible issue in the PKGBUILD check() (SRC:v0.24.0-1, PKGBUILD commit: https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=flux-go&id=ef71efc42918f46d430582f59f7a0c2e14ff8ca7). My current work around is to not check() but this may result in unknown issues later down the line if there are indeed problems. It appears to be working normally post installation, but I wanted to raise it to see if this needs to be brought up as an issue if it is a make problem.

OS: x86_64 archlinux mainline

To Reproduce:
git clone https://aur.archlinux.org/flux-go.git
cd flux-go
makepkg -si
Results In:
archer@azuran ~/d/flux (master)> git clone https://aur.archlinux.org/flux-go.git
Cloning into 'flux-go'...
remote: Enumerating objects: 276, done.
remote: Counting objects: 100% (276/276), done.
remote: Compressing objects: 100% (144/144), done.
remote: Total 276 (delta 132), reused 276 (delta 132), pack-reused 0
Receiving objects: 100% (276/276), 28.92 KiB | 9.64 MiB/s, done.
Resolving deltas: 100% (132/132), done.
archer@azuran ~/d/flux (master)> ls
flux-go
archer@azuran ~/d/flux (master)> cd flux-go/
archer@azuran ~/d/f/flux-go (master)> ls
PKGBUILD
archer@azuran ~/d/f/flux-go (master)> makepkg -si
==> Making package: flux-go 0.24.0-1 (Fri 26 Nov 2021 12:59:36 GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading flux-go-0.24.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   121  100   121    0     0    500      0 --:--:-- --:--:-- --:--:--   502
100  338k    0  338k    0     0   517k      0 --:--:-- --:--:-- --:--:--  517k
==> Validating source files with sha256sums...
    flux-go-0.24.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting flux-go-0.24.0.tar.gz with bsdtar
==> Starting build()...
[INFO]  using {4.4.0  2021-09-29T10:27:55Z  }
[INFO]  building helm-controller.yaml
[INFO]  building image-automation-controller.yaml
[INFO]  building image-reflector-controller.yaml
[INFO]  building kustomize-controller.yaml
[INFO]  building notification-controller.yaml
[INFO]  building source-controller.yaml
[INFO]  building rbac.yaml
[INFO]  building policies.yaml
==> Starting check()...
which: no setup-envtest in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
./manifests/scripts/bundle.sh
[INFO]  using {4.4.0  2021-09-29T10:27:55Z  }
[INFO]  building *.yaml
Error: evalsymlink failure on '/home/archer/downloads/flux/flux-go/manifests/bases/*/' : lstat /home/archer/downloads/flux/flux-go/manifests: no such file or directory
make: *** [Makefile:48: cmd/flux/.manifests.done] Error 1
==> ERROR: A failure occurred in check().
    Aborting...

Pinky commented on 2021-09-12 11:34 (UTC)

It looks like this was solved by go upgrade. But another issue appeared, not sure how to mitigate this. Btw I'm on 5.14.2-arch1-2

pkg/manifestgen/sourcesecret/sourcesecret_test.go
pkg/manifestgen/sync/sync_test.go
no applicable on-disk versions for linux/amd64 found, you'll have to download one, or run list -i to see what you do have
KUBEBUILDER_ASSETS="" go test ./... -coverprofile cover.out --tags=unit
# github.com/fluxcd/flux2/pkg/manifestgen/sourcesecret.test
_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_3c1cec0c9a4e_C2func_getaddrinfo: relocation target _cgo_3c1cec0c9a4e_C2func_getaddrinfo not defined
net._cgo_3c1cec0c9a4e_Cfunc_freeaddrinfo: relocation target _cgo_3c1cec0c9a4e_Cfunc_freeaddrinfo not defined
net._cgo_3c1cec0c9a4e_Cfunc_gai_strerror: relocation target _cgo_3c1cec0c9a4e_Cfunc_gai_strerror not defined
os/user._cgo_aacb17fbab05_Cfunc__Cmalloc: relocation target _cgo_aacb17fbab05_Cfunc__Cmalloc not defined
os/user._cgo_aacb17fbab05_Cfunc_free: relocation target _cgo_aacb17fbab05_Cfunc_free not defined
os/user._cgo_aacb17fbab05_Cfunc_mygetpwuid_r: relocation target _cgo_aacb17fbab05_Cfunc_mygetpwuid_r not defined
os/user._cgo_aacb17fbab05_Cfunc_realloc: relocation target _cgo_aacb17fbab05_Cfunc_realloc not defined
os/user._cgo_aacb17fbab05_Cfunc_sysconf: relocation target _cgo_aacb17fbab05_Cfunc_sysconf 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
/usr/lib/go/pkg/tool/linux_amd64/link: too many errors
# github.com/fluxcd/flux2/pkg/manifestgen/sync.test
_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_3c1cec0c9a4e_C2func_getaddrinfo: relocation target _cgo_3c1cec0c9a4e_C2func_getaddrinfo not defined
net._cgo_3c1cec0c9a4e_Cfunc_freeaddrinfo: relocation target _cgo_3c1cec0c9a4e_Cfunc_freeaddrinfo not defined
net._cgo_3c1cec0c9a4e_Cfunc_gai_strerror: relocation target _cgo_3c1cec0c9a4e_Cfunc_gai_strerror not defined
os/user._cgo_aacb17fbab05_Cfunc__Cmalloc: relocation target _cgo_aacb17fbab05_Cfunc__Cmalloc not defined
os/user._cgo_aacb17fbab05_Cfunc_free: relocation target _cgo_aacb17fbab05_Cfunc_free not defined
os/user._cgo_aacb17fbab05_Cfunc_mygetpwuid_r: relocation target _cgo_aacb17fbab05_Cfunc_mygetpwuid_r not defined
os/user._cgo_aacb17fbab05_Cfunc_realloc: relocation target _cgo_aacb17fbab05_Cfunc_realloc not defined
os/user._cgo_aacb17fbab05_Cfunc_sysconf: relocation target _cgo_aacb17fbab05_Cfunc_sysconf 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
/usr/lib/go/pkg/tool/linux_amd64/link: too many errors
panic: error creating kube manager: 'unable to start control plane itself: failed to start the controlplane. retried 5 times: exec: "etcd": executable file not found in $PATH'

goroutine 1 [running]:
github.com/fluxcd/flux2/cmd/flux.TestMain(0xbe4d9fea13c4)
    github.com/fluxcd/flux2/cmd/flux/main_unit_test.go:24 +0x10e
main.main()
    _testmain.go:377 +0x20f
FAIL    github.com/fluxcd/flux2/cmd/flux    0.032s
?       github.com/fluxcd/flux2/internal/bootstrap  [no test files]
?       github.com/fluxcd/flux2/internal/bootstrap/git  [no test files]
?       github.com/fluxcd/flux2/internal/bootstrap/git/gogit    [no test files]
?       github.com/fluxcd/flux2/internal/bootstrap/provider [no test files]
ok      github.com/fluxcd/flux2/internal/flags  0.031s  coverage: 83.2% of statements
ok      github.com/fluxcd/flux2/internal/utils  0.028s  coverage: 40.3% of statements
?       github.com/fluxcd/flux2/pkg/log [no test files]
?       github.com/fluxcd/flux2/pkg/manifestgen [no test files]
ok      github.com/fluxcd/flux2/pkg/manifestgen/install 2.546s  coverage: 54.9% of statements
?       github.com/fluxcd/flux2/pkg/manifestgen/kustomization   [no test files]
FAIL    github.com/fluxcd/flux2/pkg/manifestgen/sourcesecret [build failed]
FAIL    github.com/fluxcd/flux2/pkg/manifestgen/sync [build failed]
?       github.com/fluxcd/flux2/pkg/status  [no test files]
FAIL
make: *** [Makefile:37: test] Error 2

hiddeco commented on 2021-07-30 20:13 (UTC) (edited on 2021-07-30 20:13 (UTC) by hiddeco)

@Pinky I do not seem to have this issue on my system (Linux 5.12.1-zen2-1-zen, but well suited with dependencies that may be required for the build). Can you share a bit more details about your machine?

Pinky commented on 2021-07-30 18:34 (UTC)

I have hit issue like cgo: cannot load DWARF output from $WORK/b099//_cgo_.o: decoding dwarf section info at offset 0x0: too short

Solved by

-  export CGO_CFLAGS="$CFLAGS"
+  export CGO_CFLAGS="$CFLAGS -fno-lto"

hiddeco commented on 2021-03-16 11:32 (UTC)

@brody thank you for your interest in fixing this issue. It has already been taken care of upstream however, and should be included in the next release.

brody commented on 2021-03-14 09:27 (UTC)

I would like to provide a diff to make this package buildable. Where I can send a pull request? Kind regards

brody commented on 2021-03-12 19:23 (UTC)

Package is not buildable in a clean chroot environment.

...
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: downloading github.com/emicklei/go-restful v2.9.5+incompatible
cmd/flux/embed.go:11:12: pattern manifests/*.yaml: no matching files found
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/xxxxx/chroot/xxxxx/build