Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.27k stars 366 forks source link

Reclassifying a `devel/` package as a normal `aur/` package on-demand #1832

Open vendion opened 2 years ago

vendion commented 2 years ago

Affected Version

yay v11.3.1 - libalpm v13.0.2

Describe the bug

For what ever reason yay is wanting to treat FireDragon the as a devel package instead of an aur package after running yay -Y --devel --combinedupgrade --batchinstall --save. The problem is that FireDragon is a fork of LibreWolf which is a fork of FireFox and as such on a relatively decent machine FireDragon takes hours to build, as such I only want to build it if the version or pkgrel gets bumped and not everytime there is a commit to the git repo.

Reproduction Steps

  1. Install FireDragon using yay with --devel disabled
  2. Enable development support with yay -Y --devel --save
  3. Run yay -Syu or yay

Expected behavior

I expect to only see FireDragon listed if the version or pkgrel gets bumped in the PKGBUILD.

Output

[~]─> yay -Pg
{
"aururl": "https://aur.archlinux.org",
"aurrpcurl": "",
"buildDir": "/home/vendion/.cache/yay",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "pacman",
"pacmanconf": "/etc/pacman.conf",
"redownload": "no",
"rebuild": "no",
"answerclean": "",
"answerdiff": "",
"answeredit": "",
"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": false,
"timeupdate": false,
"devel": true,
"cleanAfter": false,
"provides": true,
"pgpfetch": true,
"upgrademenu": true,
"cleanmenu": true,
"diffmenu": true,
"editmenu": false,
"combinedupgrade": true,
"useask": false,
"batchinstall": true,
"singlelineresults": false,
"separatesources": true,
"version": "11.3.0"
}
[~]─> yay -Syu
:: Synchronizing package databases...
core is up to date
extra                                                                                                                                                                          1747.0 KiB   497 KiB/s 00:04 [---------------------------------------------------------------------------------------------------------------------------------] 100%
community                                                                                                                                                                         7.2 MiB  1504 KiB/s 00:05 [---------------------------------------------------------------------------------------------------------------------------------] 100%
multilib                                                                                                                                                                        166.0 KiB  56.8 KiB/s 00:03 [---------------------------------------------------------------------------------------------------------------------------------] 100%
:: Searching databases for updates...
:: Searching AUR for updates...
:: Checking development packages...
-> signal: killed
-> signal: killed
-> Orphaned AUR Packages:  forticlientsslvpn  python-dephell-archive  python-dephell-argparse  python-dephell-changelogs  python-dephell-discover  python-dephell-licenses  python-dephell-links  python-dephell-markers  python-dephell-pythons  python-dephell-specifier  python2-rpm  ruby-github-markup
-> Flagged Out Of Date AUR Packages:  clipit  conky-lua-nv  forticlientsslvpn  gollum  google-cloud-sdk  libfprint-vfs009x-git  libreoffice-extension-languagetool  python2-rpm  quaternion  ruby-github-markup  ruby-gollum-lib  webkitgtk
:: 3 Packages to upgrade.
3  extra/llvm-libs           14.0.6-3  -> 14.0.6-4
2  multilib/lib32-llvm-libs  14.0.6-2  -> 14.0.6-3
1  devel/firedragon          106.0.5-1 -> latest-commit
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==>
Jguer commented 2 years ago

From the PKGBUILD

I see the following listed as sources:

  "git+https://gitlab.com/dr460nf1r3/common.git"
  "git+https://gitlab.com/dr460nf1r3/settings.git"
  "librewolf-source::git+https://gitlab.com/librewolf-community/browser/source.git"
  "librewolf-settings::git+https://gitlab.com/librewolf-community/settings.git"

Yay seems to be detecting them as devel since it's pulling these repos each time. Can you check your ~/.cache/yay/vcs.json for entries related to these?

vendion commented 2 years ago

Yeah I see the following in ~/.cache/yay/vcs.json

"firedragon": {
"github.com/CachyOS/CachyOS-Browser-Common.git": {
"protocols": [
"https"
],
"branch": "HEAD",
"sha": "a0739bbb34826906e0d8452ebf7e6ef3569a8e38"
},
"gitlab.com/dr460nf1r3/common.git": {
"protocols": [
"https"
],
"branch": "HEAD",
"sha": "88a7f059b934a090b77611daa39b8b5b7ac956ad"
},
"gitlab.com/dr460nf1r3/settings.git": {
"protocols": [
"https"
],
"branch": "HEAD",
"sha": "39c612edbd9d6cae17b877910cd0f9b6266934cd"
},
"gitlab.com/librewolf-community/browser/source.git": {
"protocols": [
"https"
],
"branch": "HEAD",
"sha": "6c60cf2b102db0b094dc40af8fe7773ab8ae3463"
},
"gitlab.com/librewolf-community/settings.git": {
"protocols": [
"https"
],
"branch": "HEAD",
"sha": "9395f5c0e061250acbcbcb523d2270d57136d411"
}
},

So I guess my use of "incorrectly lists it as a devel" package is wrong, as such I'll update the ticket title. Either way is there a way to tell yay that I want FireDragon to be treated as a normal aur package even though it uses git to fetch the sources?