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

How to edit PKGBUILD before install #750

Closed
pierrre opened this Issue Oct 4, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@pierrre

pierrre commented Oct 4, 2018

Hello !

I'm a new yay user.
I migrated from yaourt very recently.

I've noticed one missing feature compared to yaourt.
I can't edit the PKGBUILD before the install.
It's very useful, because it allows me to remove unwanted dependencies.
I have 2 real examples:

smartgit requires to install java-runtime.
Actually it is not needed because the source archive file provides its own Java runtime.
So I edit the PKGBUILD before an install/update and remove this dependency.

Another example is yay itself.
I'm a Go developer and I use my own Go environment.
I don't need the go Archlinux package.
When I installed yay the first time, using yaourt, I could edit the PKGBUILD and remove the go dependency.

How can I do that with yay ?
Thanks.

@Morganamilo

This comment has been minimized.

Show comment
Hide comment
@Morganamilo

Morganamilo Oct 4, 2018

Collaborator

See the manpage/help for --editmenu.

Do note that yay doesn't use the pkgbuild for dependencies it uses the RPC. So yay will ignore these changes in its dependency solving. The changes will still apply to the built packages though. This is noted in the FAQ and manpage.

Collaborator

Morganamilo commented Oct 4, 2018

See the manpage/help for --editmenu.

Do note that yay doesn't use the pkgbuild for dependencies it uses the RPC. So yay will ignore these changes in its dependency solving. The changes will still apply to the built packages though. This is noted in the FAQ and manpage.

@pierrre

This comment has been minimized.

Show comment
Hide comment
@pierrre

pierrre Oct 4, 2018

ok, thank you !

pierrre commented Oct 4, 2018

ok, thank you !

@pierrre pierrre closed this Oct 4, 2018

@pierrre

This comment has been minimized.

Show comment
Hide comment
@pierrre

pierrre Oct 5, 2018

If someone has the same problem and is reading this, my workaround is:

  • yay -G <package_name>
  • edit the PKGBUILD
  • makepkg -si

pierrre commented Oct 5, 2018

If someone has the same problem and is reading this, my workaround is:

  • yay -G <package_name>
  • edit the PKGBUILD
  • makepkg -si
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment