Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Workaround] [enhancement] Temporarily point AUR PKGBUILD to parallelized cgo fork #39

Closed
mjholub opened this issue Jun 12, 2023 · 3 comments

Comments

@mjholub
Copy link

mjholub commented Jun 12, 2023

Description
For faster compilation of GTK3 bindings and given that AUR is, after all, a bleeding edge ground, PKGBUILD can point to the Go fork with parallelized cgo builds. It's quite disappointing that on Ryzen 9 7900X, the compilation of glib bindings alone takes over a minute. What I'm referring to is the fork created here:
https://github.com/Evengard/go/tree/go-cgo-gcc-parallelism-1.20.3

which I found on this issue page:
golang/go#9887

Caveats, alternative solutions
I know the security and stability risks related to relying on 3rd party forks. Therefore alternatively, we can also try creating a separate AUR package (e.g. with -parallel-cgo suffix), which would use the aforementioned fork.

This issue should also probably remain open, lest the changes get finally merged upstream and such a contraption is no longer needed.

Desktop:

  • OS: Artix OpenRC 6.3.6-zen1-1-zen
  • go version: 1.20.5 linux/amd64
  • gtk-layer-shell version: 0.8.1-1
@nwg-piotr
Copy link
Owner

What it means to me is maintaining 5 new packages, for nwg-drawer, nwg-menu, nwg-dock, nwg-dock-hyprland and nwg-look, while I already maintain a regular and -bin version of each above. I don't have enough time for this, but I don't mind you taking care of it.

@mjholub
Copy link
Author

mjholub commented Jun 13, 2023

hmm yeah, I found the binary packages meanwhile, nevermind. hope this becomes oficially supported soon.

@mjholub mjholub closed this as completed Jun 13, 2023
@nwg-piotr
Copy link
Owner

hope this becomes oficially supported soon.

I do hope so, too.

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

No branches or pull requests

2 participants