-
Notifications
You must be signed in to change notification settings - Fork 15
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
Missing depends when PKGBUILD includes backup #44
Comments
Reproduced. Huh... great |
Ah shit, okay, I know what's up - I broke the parser. The actual problem here is
And the parser halts at the backup line - without raising any sort of visible error. Great. Well, nice catch, and should be an easy fix. |
This would have made #44 way easier to catch...
Can you check that this works on master, and if so, I'll tag a new stable release. |
But found that now throws an error if the package is missing field
Perhaps it's worth opening a new issue. |
Nah, I suspect its along the same lines. Okay, I'm not going to have time to dig into it until this evening, but I'll spend some time making that error message a little better. Then, once you know which package it is, I can fix it. |
@vodik This is my private package, it is just missing the |
PKGBUILD pkgname=example
pkgver=1
pkgrel=1
pkgdesc='error on missing url'
license=('custom')
arch=('x86_64')
depends=('bash')
backup=('etc/example/conf')
package() {
echo test > conf
install -Dm644 -t "$pkgdir/etc/example" conf
}
|
Here is another packages from AUR which does not pass https://aur.archlinux.org/pkgbase/gtksourceview-pkgbuild/
.PKGINFO
|
Yeah, you're making me wonder if I just can't handle empty fields... |
Awesome, thank you very much. If you don't happen to find any new problems, I'll release 7.1. Yikes, all this mess just to shave a few seconds off parsing... |
Alright, released 7.1 and flagged the maintainer that the package is out of date (didn't realise its now in community, cool). |
I haven't had cause to update my repo or I'd have reported this sooner, but 7.1 (out of the Arch repos) is now failing with "failed to parse PKGINFO" on dozens of packages for me. strace is here, but I'm not sure where to start looking. |
@Celti post here the output of command: |
For the record, I got lots of those errors for packages built in 2015 or so that still worked just fine to install. I was sort of in a hurry at the time though, so just deleted them and rebuilt from scratch. |
Sorry for the delay, here:
|
Looking into this - sorry, been sick with a bad cold |
Okay, so I just haven't had the free time just yet, but something that's pretty clear is the new parser, while faster, is just too strict. This is a quick fix, I'll hack on something to downgrade these parser failures into warning, then release a 7.2 |
Thanks again everyone, and thanks for putting up with this. Phewf |
PKGBUILD
file size of depends 0:
After remove backup:
The text was updated successfully, but these errors were encountered: