Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#45085 - {dbscripts}[pacman][devtools] Ensure signatures use binary format
Attached to Project:
Arch Linux
Opened by Evangelos Foutras (foutrelis) - Monday, 25 May 2015, 21:22 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 01 August 2017, 22:25 GMT
Opened by Evangelos Foutras (foutrelis) - Monday, 25 May 2015, 21:22 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 01 August 2017, 22:25 GMT
|
DetailsDescription:
GnuPG can be configured to generate ASCII-armored signatures by default (by putting "armor" in ~/.gnupg/gpg.conf). In such cases, pacman will refuse to install the package (will print "signature format error") and archweb will display an empty details page. [1] We need to make sure commitpkg generates binary signatures and that dbscripts (or repo-add?) refuses to add to the repository packages with ASCII-armored signatures. It's possible that the --no-armor option can be used in both cases. [1] https://bugs.archlinux.org/task/45084 |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Tuesday, 01 August 2017, 22:25 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in commitpkg and repo-add, and fixed in git for pacman-key (which will fix dbscripts)
Tuesday, 01 August 2017, 22:25 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in commitpkg and repo-add, and fixed in git for pacman-key (which will fix dbscripts)
For the former, adding `--no-armor` will solve it, in both commitpkg and repo-add (since it has the option to sign DBs.)
For adding them to the DB, the only option I can think of is having repo-add check if it's an armored signature and error out if it is, like in the attached patch.
Any comments on the patch are welcome.
gpg --detach-sign --use-agent ${SIGNWITHKEY} --no-armor "$filename" &>/dev/null || ret=$?
Patch sent.
@Allan: Is pacman supposed to accept armored signatures? If not, should 'pacman-key -v' be changed to pass --no-armor to gpg?
Newest repo-add patch is at <https://lists.archlinux.org/pipermail/pacman-dev/2015-May/020147.html> so you can see how I did that.