-
Notifications
You must be signed in to change notification settings - Fork 113
grepping for -(git|hg|...) is insufficient to know whether a package is a devel one #507
Comments
That's unfortunate, but as pacaur solves deps and look up devel packages before downloading them, this looks like a wontfix. The package won't be updated anyway, so this is a minor annoyance only. |
Indeed, I'm suggesting a second filtering step after downloading the packages. But I agree it may be a bit overkill and also better solved by proper metadata in .SRCINFO. |
My point was that the packages are downloaded after the main prompt. Everything is done using the RPC before the user agrees to continue. Beside, using |
Indeed, I am suggesting that the issue may be better solved by adding another field to .SRCINFO instead. |
Actually I just realized there's an easy way to improve the detection: VCS packages should have at least one SKIP entry in their checksums. While not there may still be some false positives, I think they should be pretty rare. |
Many false positive vs one package that doesn't behave correctly? Still sounds like a wontfix... |
Sorry if I wasn't clear... While nothing can prevent someone from uploading such a package to the AUR, I think they should be rare to non-existent (my comment above), because I believe the only valid reason to use a SKIP in the checksums is if the sources are going to be changing faster than the PKGBUILD itself -- i.e., a VCS package. |
Ah, I see what you mean now. I've tried to push a quick fix in 5adb93e, but it seems the issue requires a much deeper code rewrite to make this hack work. The internal logic isn't designed to filters out packages once they passed the "need update" check, which is done through the RPC interface (and where the complete metadata cannot be checked). This is honestly not worth the effort. Instead, the RPC should be expanded, so the filtering could be done in the first step, with the advantage that the main prompt could also be fixed. See relevant FS#48796. |
@rmarquis: I don’t see how this linked FS is relevant. However, after reading around this, here is a proposal: Then, AUR helpers could make use of this flag to know they’re dealing with a PKGBUILD giving different result depending on compilation date. Would that suits you? |
Unfortunately, this wouldn't cover many existing edge cases. There are "VCS-like" (nighlty, snaphshot, dev, ...) packages that don't rely on What doesn't work:
All have downsides. What we need is something like a |
OK, so I guess trying to be clever won’t work indeed. So a Regarding support: well, helpers are not supported sure, but so is the AUR (it’s in its name). I’ll try to get this discussed amongst TU, I’ll keep you updated. |
It is indeed possible for a PKGBUILD to refer to a specific VCS commit without being a VCS package itself (but thus requiring a VCS client to install the package). I've seen a handful over the years but cannot tell you which ones they are. I am however not aware of any non VCS packages that uses By |
Found one for both: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ring-daemon. Though I’m not use what the pkgver() things bring here. So I think we’re going for a checkbox in the AUR website that is exposed over the RPC. Adding this to the .SRCINFO looks a bad idea, because it would have to be manual while most people automatically generate their .SRCINFO. Also this is a value I do not expect to change during the lifetime of the PKGBUILD, so it could be set on the interface. |
Thanks for the input. Yes, modifying the .SRCINFO file manually has always been a bad idea - guess it was clear in my mind that this would be an additional option in the PKGBUILD that would then be automatically written into the .SRCINFO. If that option is not relevant to repo package but specific to AUR only, then an interface option might be the best solution. Thanks for taking care of asking upstream! @AladW FYI ^ |
@ArchangeGabriel Just curious, is there any news from this feature? Or any archived discussion about it, for the matter? I haven't seen anything on ML or flyspray. |
Yes, sorry. Discussions happened in IRC (TU channel). This was heavily debated (including whether it should be in .SRCINFO or the web interface), in the end we agreed that I should open a FR on flyspray and leave the decision up to Lukas (I need to review the logs for the details). But before that, I need to review the ToS for the AUR, since Lukas told us this was the #1 priority regarding the AUR. |
I'm confused why taking these steps in my upgrade script does not work around the problem:
edit: Oh, I guess maybe pacaur is completely unable to install it. I'd thought it was just upgrades? |
@colemickens Yes, the installation part is problematic. Stay tuned, I'll open a new issue about this later today. |
Looks like this will be a wontfix indeed. I can't say I disagree with Lukas - I feel having a new naming guideline for VCS-like packages would be both much simpler and more elegant for helpers support. That wouldn't solve the cases like Thanks for filing the request. Closing now. |
If we were to propose a naming guideline, where should this happens? And which extension(s) would be adequate? In addition to the regular VCS I'm also unsure if a naming scheme could be enforced, but having some "official" guideline would be a good first step. |
I maintain https://aur.archlinux.org/packages/git-remote-hg, which is considered by pacaur as a --devel package, probably because it ends with
-hg
... but that's the actual name of the program (https://github.com/fingolfin/git-remote-hg).Perhaps the presence of a
pkgver()
should be used to confirm that a package is indeed a --devel package.The text was updated successfully, but these errors were encountered: