59 lines
1.7 KiB
Diff
59 lines
1.7 KiB
Diff
From aa3a1bc3b50d797fb75278f79a83cd7dde50c66e Mon Sep 17 00:00:00 2001
|
|
From: Ben Westover <kwestover.kw@gmail.com>
|
|
Date: Fri, 29 Jul 2022 17:04:06 -0400
|
|
Subject: [PATCH] proto: Change the default checksum from md5 to sha256
|
|
|
|
MD5 isn't a very good checksum, and the PKGBUILD page on the Arch Wiki
|
|
states that it should not be used, instead recommending sha256 or b2.
|
|
This patch changes the default from md5 to sha256 because that seems to
|
|
be the most commonly used checksum today.
|
|
|
|
Signed-off-by: Ben Westover <kwestover.kw@gmail.com>
|
|
---
|
|
proto/PKGBUILD-split.proto | 2 +-
|
|
proto/PKGBUILD-vcs.proto | 2 +-
|
|
proto/PKGBUILD.proto | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/proto/PKGBUILD-split.proto b/proto/PKGBUILD-split.proto
|
|
index 9898ef81d..eea97e56a 100644
|
|
--- a/proto/PKGBUILD-split.proto
|
|
+++ b/proto/PKGBUILD-split.proto
|
|
@@ -28,7 +28,7 @@ changelog=
|
|
source=("$pkgbase-$pkgver.tar.gz"
|
|
"$pkgname-$pkgver.patch")
|
|
noextract=()
|
|
-md5sums=()
|
|
+sha256sums=()
|
|
validpgpkeys=()
|
|
|
|
prepare() {
|
|
diff --git a/proto/PKGBUILD-vcs.proto b/proto/PKGBUILD-vcs.proto
|
|
index ae9956a9c..49c6759f4 100644
|
|
--- a/proto/PKGBUILD-vcs.proto
|
|
+++ b/proto/PKGBUILD-vcs.proto
|
|
@@ -25,7 +25,7 @@ options=()
|
|
install=
|
|
source=('FOLDER::VCS+URL#FRAGMENT')
|
|
noextract=()
|
|
-md5sums=('SKIP')
|
|
+sha256sums=('SKIP')
|
|
|
|
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
|
|
# a description of each element in the source array.
|
|
diff --git a/proto/PKGBUILD.proto b/proto/PKGBUILD.proto
|
|
index a2c600d5a..9aff797c8 100644
|
|
--- a/proto/PKGBUILD.proto
|
|
+++ b/proto/PKGBUILD.proto
|
|
@@ -27,7 +27,7 @@ changelog=
|
|
source=("$pkgname-$pkgver.tar.gz"
|
|
"$pkgname-$pkgver.patch")
|
|
noextract=()
|
|
-md5sums=()
|
|
+sha256sums=()
|
|
validpgpkeys=()
|
|
|
|
prepare() {
|
|
--
|
|
GitLab
|
|
|