Inconsistent trailing newline handling
Our arch package broke with pacman v6.1.0 saying the package is corrupt. This was due to the extra checks introduced by !96 (merged). It turns out our package database was missing a dependency compared to the package, but we were correctly using repo-add
to create the database.
After some experimenting I figured out this was due to the .PKGINFO
not having a trailing newline. The repo-add
script simply ignores the last line if there's no trailing newline, resulting in the last line depend = libcurl.so
getting ignored. pacman
however does not ignore this line and so pacman
and repo-add
disagree on what dependencies a package has.
I've attached our package where this happens: sublime-merge-2094-1-x86_64.pkg.tar.xz. Running repo-add foo.db.tar.xz sublime-merge-2094-1-x86_64.pkg.tar.xz
results in a database with the libcurl.so
missing.