0001-Revert-makepkg-add-whirlpool-to-the-list-of-hashing-.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From patchwork Wed Aug 29 06:49:29 2018
  2. Content-Type: text/plain; charset="utf-8"
  3. MIME-Version: 1.0
  4. Content-Transfer-Encoding: 7bit
  5. Subject: [pacman-dev] Revert "makepkg: add whirlpool to the list of hashing
  6. algorithms"
  7. X-Patchwork-Submitter: Eli Schwartz <eschwartz@archlinux.org>
  8. X-Patchwork-Id: 751
  9. Message-Id: <20180829064929.29120-1-eschwartz@archlinux.org>
  10. To: pacman-dev@archlinux.org
  11. Date: Wed, 29 Aug 2018 02:49:29 -0400
  12. From: Eli Schwartz <eschwartz@archlinux.org>
  13. List-Id: Discussion list for pacman development <pacman-dev.archlinux.org>
  14. This reverts commit 9cdfd18739cc4b0e2b2efeb9a92a3ea612c8505f.
  15. We've never documented whirlpoolsums support in the manpage and no one
  16. really seems to have realized we support it, let alone use it -- except
  17. for a few parabola packages, being the contributor's motivation for
  18. adding support.
  19. The problem is that for two years the code has been broken. In commit
  20. 577701250d645d1fc1a505cde34aedbeb3208ea5 we moved to coreutils to
  21. provide checksum commands, rather than openssl, but there is no
  22. whirlpoolsums binary.
  23. Properly fixing this would require re-adding a dependency on openssl,
  24. independent of the libalpm crypto backend -- which defeats the purpose
  25. of moving to coreutils in the general case. nettle-hash does not provide
  26. a whirlpool algorithm any more than it does base64 (the original reason
  27. for moving to coreutils).
  28. Therefore, we should just drop support for this again.
  29. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
  30. ---
  31. scripts/makepkg.sh.in | 2 +-
  32. 1 file changed, 1 insertion(+), 1 deletion(-)
  33. diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
  34. index cf5fda91..f9c619f2 100644
  35. --- a/scripts/makepkg.sh.in
  36. +++ b/scripts/makepkg.sh.in
  37. @@ -54,7 +54,7 @@ splitpkg_overrides=('pkgdesc' 'arch' 'url' 'license' 'groups' 'depends'
  38. 'options' 'install' 'changelog')
  39. readonly -a build_options splitpkg_overrides
  40. -known_hash_algos=('md5' 'sha1' 'sha224' 'sha256' 'sha384' 'sha512' 'whirlpool')
  41. +known_hash_algos=('md5' 'sha1' 'sha224' 'sha256' 'sha384' 'sha512')
  42. # Options
  43. ASDEPS=0