Skip to content

Remove glibc requirement for AUR pkg build#56

Merged
retlehs merged 2 commits into
retlehs:mainfrom
GLobyNew:noCdep
Jun 23, 2026
Merged

Remove glibc requirement for AUR pkg build#56
retlehs merged 2 commits into
retlehs:mainfrom
GLobyNew:noCdep

Conversation

@GLobyNew

@GLobyNew GLobyNew commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Drop C library dependency from AUR build, as it's not actually used.

By .goreleaser.yml we don't use C at all and I've added -s -w to strip debug as you do already in goreleaser:

quien/.goreleaser.yml

Lines 3 to 7 in 34e5e73

builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w

I've tested the new PKGBUILD and it works as expected, also passes namcap check.

In this commit I also removed go clean -modcache as it can remove user's GLOBAL cache, not only in binary, if user would skip all steps and run only check() step.
Unlikely to happen, but anyway redundant as -modcacherw already clears cache of built package.

@retlehs retlehs left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I meant to do this when setting up the AUR publishing workflow 🤦‍♂️ Pushed one tweak: dropped -buildmode=pie so the binary is truly static

@retlehs
retlehs merged commit 70d718a into retlehs:main Jun 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants