-
Notifications
You must be signed in to change notification settings - Fork 91
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
aurbuild: allow to skip packages on error #28
Comments
Or better: check if the package is already available in your cache before starting the build. |
Hm, this should be doable with |
Depends on what you want to achieve. If you succeed in compiling the package the first time and put in a local repository (with repose), that error shouldn't even happen I guess. Otherwise, yes, you can check the build directory content using |
Rather than use I'm not sure how using repose would prevent this error though; PKGDEST was set to the local repository pool in 7660f1a (and should match it otherwise), and makepkg checks for built packages there. |
Shouldn't aurchain ignore the package if it found in the local repository? It shouldn't be seen by aurbuild in the first place, or I am missing something here? |
Well, unlike aurqueue (though see #5 - I'm unsure it's a good idea to have the queue file influenced by local packages, if only for later package upgrades), aurchain has no repository check logic. Right now it only relies on RPC results to write the queue file. That said, maybe it's better to still move this logic elsewhere? (perhaps aurbob) |
Sorry, I indeed meant aurqueue. Yes, the drawback of using a local repository is that checking update in AUR isn't straightforward anymore (but that's about the only downside I can imagine). Btw, I feel aurbob is a terrible name, but maybe that's just me :) |
You're right, another drawback is twiddling thumbs when many packages in the queue are built already (plus piping makepkg through tee messes with provider choices) As to aurbob, the name was taken from the kids' show ("Working together, we get the job done"), but I'm open to suggestions. ;) |
Here's the prototype:
I decided against using VCS are a bit annoying since you have to update pkgver, here done via This and aurbob probably belong to (the renamed) aursync, as git clone/pull, |
@AladW I don't know that show, so I obviously miss the reference. The name if fine if you like it :) |
Fair point, though there's some weird cases like
|
Bad news: makepkg errors not only when all members of a split package are built, but also when only some are. And of course, it has the same exit code for both. 👿 (a patch was put on the backburner) Rather than wait on upstream to get their act together, I guess I could write a wrapper which returns a unique exit code for each error/warning. Or just dump the whole idea. |
@AladW I feel I'm out of the loop here, but does that change anything? A split package is, by definition, a unique build that is then compressed in many subpackages. If the build fails, then no supackages are created. |
As I understand it, there's multiple scenarios:
Arguably you should pass makepkg -f in the third case. But it's a contrived scenario: as you say, on failure no packages are created, so you'd have to succeed and go and delete some. Fair enough to let the user get himself out of that hole he digged? |
Yeah, absolutely. However, you might want to add some |
Implemented with the above commit, I'll open a new issue for a |
In particular "a package was already built" errors.
The text was updated successfully, but these errors were encountered: