How can I edit PKGBUILDs with the new yay?

I have this in my config.json ‘“editmenu”: true,’ but looks like yay skips the edit question.

Tried yay -Syu --editmenu same result.

yay -Syu --editmenu
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
:: 2 Packages to upgrade.
2  aur/proton-ge-custom  2:GE.Proton7.53-1 -> 2:GE.Proton7.54-1
1  aur/wine-ge-custom    1:GE.Proton7.41-1 -> 1:GE.Proton7.42-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> May cause partial upgrades and break systems
==> 1
AUR Explicit (1): proton-ge-custom-2:GE.Proton7.54-1
:: PKGBUILD up to date, skipping download: proton-ge-custom
==> Making package: proton-ge-custom 2:GE.Proton7.54-1 (Tue 04 Apr 2023 09:25:34 PM EEST)
==> Retrieving sources...
  -> Cloning proton-ge-custom git repo...
Cloning into bare repository '/home/csaba/.cache/yay/proton-ge-custom/proton-ge-custom'...
remote: Enumerating objects: 23274, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (30/30), done.

Create ~/.config/yay/config.json

{
	"aururl": "https://aur.archlinux.org",
	"buildDir": "/home/xircon/.cache/yay",
	"editor": "",
	"editorflags": "",
	"makepkgbin": "makepkg",
	"makepkgconf": "",
	"pacmanbin": "pacman",
	"pacmanconf": "/etc/pacman.conf",
	"redownload": "no",
	"rebuild": "no",
	"answerclean": "",
	"answerdiff": "no",
	"answeredit": "no",
	"answerupgrade": "",
	"gitbin": "git",
	"gpgbin": "gpg",
	"gpgflags": "",
	"mflags": "",
	"sortby": "name",
	"searchby": "name-desc",
	"gitflags": "",
	"removemake": "ask",
	"sudobin": "sudo",
	"sudoflags": "",
	"requestsplitn": 150,
	"completionrefreshtime": 7,
	"maxconcurrentdownloads": 0,
	"bottomup": true,
	"sudoloop": false,
	"timeupdate": false,
	"devel": false,
	"cleanAfter": false,
	"provides": false,
	"pgpfetch": true,
	"upgrademenu": true,
	"cleanmenu": true,
	"diffmenu": true,
	"editmenu": false,
	"combinedupgrade": false,
	"useask": false,
	"batchinstall": false,
	"singlelineresults": false,
	"separatesources": true,
	"version": "11.3.0"
}

"answeredit": "no", change to yes.

Or:

yay --editmenu --nodiffmenu --save
1 Like

Here’s my config, looks like yours, I even added the answeredit value:

{
	"aururl": "https://aur.archlinux.org",
	"buildDir": "/home/csaba/.cache/yay",
	"editor": "",
	"editorflags": "",
	"makepkgbin": "makepkg",
	"makepkgconf": "",
	"pacmanbin": "pacman",
	"pacmanconf": "/etc/pacman.conf",
	"redownload": "no",
	"rebuild": "no",
	"answerclean": "",
	"answerdiff": "",
	"answeredit": "yes",
	"answerupgrade": "",
	"gitbin": "git",
	"gpgbin": "gpg",
	"gpgflags": "",
	"mflags": "",
	"sortby": "votes",
	"searchby": "name-desc",
	"gitflags": "",
	"removemake": "ask",
	"sudobin": "sudo",
	"sudoflags": "",
	"requestsplitn": 150,
	"completionrefreshtime": 7,
	"maxconcurrentdownloads": 0,
	"bottomup": true,
	"sudoloop": true,
	"timeupdate": false,
	"devel": false,
	"cleanAfter": false,
	"provides": false,
	"pgpfetch": true,
	"upgrademenu": true,
	"cleanmenu": true,
	"diffmenu": false,
	"editmenu": true,
	"combinedupgrade": false,
	"useask": false,
	"batchinstall": false,
	"singlelineresults": false,
	"separatesources": true,
	"version": "11.3.0"
}

Nothing changed

[csaba@csaba-mini ~]$ yay
[sudo] password for csaba: 
:: Synchronizing package databases...
 endeavouros is up to date
 core                                     154.0 KiB  75.5 KiB/s 00:02 [--------------------------------------] 100%
 extra                                   1746.5 KiB   724 KiB/s 00:02 [--------------------------------------] 100%
 community                                  7.2 MiB  2.12 MiB/s 00:03 [--------------------------------------] 100%
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
:: 4 Packages to upgrade.
4  core/man-pages             6.03-1            -> 6.04-1
3  extra/xf86-input-libinput  1.2.1-1           -> 1.3.0-1
2  aur/google-chrome          111.0.5563.146-1  -> 112.0.5615.49-1
1  aur/wine-ge-custom         1:GE.Proton7.41-1 -> 1:GE.Proton7.42-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> May cause partial upgrades and break systems
==> 
AUR Explicit (2): wine-ge-custom-1:GE.Proton7.42-1, google-chrome-112.0.5615.49-1
Sync Explicit (2): xf86-input-libinput-1.3.0-1, man-pages-6.04-1
:: (1/2) Downloaded PKGBUILD: google-chrome
:: (2/2) Downloaded PKGBUILD: wine-ge-custom
==> Making package: google-chrome 112.0.5615.49-1 (Wed 05 Apr 2023 02:00:01 AM EEST)
==> Retrieving sources...
  -> Downloading google-chrome-stable_112.0.5615.49-1_amd64.deb...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0==> Making package: wine-ge-custom 1:GE.Proton7.42-1 (Wed 05 Apr 2023 02:00:01 AM EEST)
==> Retrieving sources...
  -> Cloning wine-ge-custom git repo...
Cloning into bare repository '/home/csaba/.cache/yay/wine-ge-custom/wine-ge-custom'...
 20 89.4M   20 18.1M    0     0  12.3M      0  0:00:07  0:00:01  0:00:06 12.3Mremote: Enumerating objects: 2152, done.
remote: Counting objects: 100% (386/386), done.
remote: Compressing objects: 100% (110/110), done.
 36 89.4M   36 32.9M    0     0  13.3M      0  0:00:06  0:00:02  0:00:04 13.3MReceiving objects:   7% (151/2152), 2 52 89.4M   52 46.7M    0     0  13.4M      0  0:00:06  0:00:03  0:00:03 13.4MReceiving objects:  10% (216/2152), 5^Cceiving objects:  12% (259/2152), 924.00 KiB | 589.00 KiB/s

==> ERROR: Aborted by user! Exiting...
==> ERROR: Aborted by user! Exiting...

[csaba@csaba-mini ~]$ yay --editmenu --nodiffmenu --save
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community                                  7.2 MiB  5.62 MiB/s 00:01 [--------------------------------------] 100%
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
:: 4 Packages to upgrade.
4  core/man-pages             6.03-1            -> 6.04-1
3  extra/xf86-input-libinput  1.2.1-1           -> 1.3.0-1
2  aur/google-chrome          111.0.5563.146-1  -> 112.0.5615.49-1
1  aur/wine-ge-custom         1:GE.Proton7.41-1 -> 1:GE.Proton7.42-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> May cause partial upgrades and break systems
==> 
AUR Explicit (2): google-chrome-112.0.5615.49-1, wine-ge-custom-1:GE.Proton7.42-1
Sync Explicit (2): man-pages-6.04-1, xf86-input-libinput-1.3.0-1
:: PKGBUILD up to date, skipping download: wine-ge-custom
:: PKGBUILD up to date, skipping download: google-chrome
==> Making package: google-chrome 112.0.5615.49-1 (Wed 05 Apr 2023 02:00:42 AM EEST)
==> Retrieving sources...
  -> Downloading google-chrome-stable_112.0.5615.49-1_amd64.deb...
** Resuming transfer from byte position 56815616
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0==> Making package: wine-ge-custom 1:GE.Proton7.42-1 (Wed 05 Apr 2023 02:00:43 AM EEST)
==> Retrieving sources...
  -> Cloning wine-ge-custom git repo...
Cloning into bare repository '/home/csaba/.cache/yay/wine-ge-custom/wine-ge-custom'...
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0remote: Enumerating objects: 2152, done.
remote: Counting objects: 100% (386/386), done.
 38 35.2M   38 13.5M    0     0  11.0M      0  0:00:03  0:00:01  0:00:02 11.0Mremote: Compressing objects:  26% (29remote: Compressing objects: 100% (110/110), done.
^Cceiving objects:   8% (173/2152), 276.00 KiB | 514.00 KiB/s

I think because you already have the PKGBUILD downloaded, it skips that part. Go into the yay cache and delete the directories for these packages, then try again.

Use the --editmenu option:

yay -S --editmenu name_of_package

1 Like

it was some bug https://github.com/Jguer/yay/issues/2066

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.