Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
discord


Commits:
4d9ee2c2 by Bing-hua Wang at 2026-02-03T13:35:06+01:00
Automate license checksum bypass

- - - - -


4 changed files:

- .SRCINFO
- .gitignore
- PKGBUILD
- − README.md


Changes:

=====================================
.SRCINFO
=====================================
@@ -15,8 +15,8 @@ pkgbase = discord
        source = LICENSE-0.0.123.html::https://discordapp.com/terms
        source = OSS-LICENSES-0.0.123.html::https://discordapp.com/licenses
        sha512sums = 
00363fb7feba38a8cb75136535c9c721e2b8b3c1251ea3db36517cd5a87f023733cb877a1b65478002189b0325bebfbe001448fabb6281b1e481da9b5f647ada
-       sha512sums = 
808a9bd8a848245d564d2a791b32881d9f14a2b7047fe49c2f97eba0823ab0739a012b09d168b03e06b49e15c3113ffe204384c5f8e25e8c7b9c22db4092cce3
-       sha512sums = 
5c1196019b3bf5dd89c4974107eb65f5401d7b39ef85ccd5a983c396b917bd8fdc8c494206f3040ee0dd8a249f42e0f4131b9db820fb99923e5be02604f2e2e7
+       sha512sums = SKIP
+       sha512sums = SKIP
 
 pkgname = discord
        depends = libnotify


=====================================
.gitignore
=====================================
@@ -1 +1,2 @@
+LICENSE-*.html
 OSS-LICENSES-*.html


=====================================
PKGBUILD
=====================================
@@ -24,6 +24,14 @@ 
sha512sums=('00363fb7feba38a8cb75136535c9c721e2b8b3c1251ea3db36517cd5a87f023733c
             
'808a9bd8a848245d564d2a791b32881d9f14a2b7047fe49c2f97eba0823ab0739a012b09d168b03e06b49e15c3113ffe204384c5f8e25e8c7b9c22db4092cce3'
             
'5c1196019b3bf5dd89c4974107eb65f5401d7b39ef85ccd5a983c396b917bd8fdc8c494206f3040ee0dd8a249f42e0f4131b9db820fb99923e5be02604f2e2e7')
 
+# Skip license hashes as they are unstable (discord#2)
+# Since "updpkgsums"/"pkgctl version upgrade" overwrite the checksum array with
+# literal hashes, set them to SKIP with indexed assignments 
(pacman-contrib#119)
+# https://gitlab.archlinux.org/archlinux/packaging/packages/discord/-/issues/2
+# https://gitlab.archlinux.org/pacman/pacman-contrib/-/issues/119
+sha512sums[1]='SKIP'
+sha512sums[2]='SKIP'
+
 prepare() {
   cd $_pkgname
   sed -i "s|Exec=.*|Exec=/usr/bin/$pkgname|" $pkgname.desktop


=====================================
README.md deleted
=====================================
@@ -1,8 +0,0 @@
-# Discord
-
-## Unstable license files hash and `updpkgsums` / `pkgctl version upgrade` bug 
requiring manual action on PKGBUILD upgrade
-
-The license files included in the PKGBUILD's source array have an [unstable 
hash which changes each time the files are 
fetched](https://gitlab.archlinux.org/archlinux/packaging/packages/discord/-/issues/2),
 preventing package rebuilds.  
-As such, we set the checksum to `SKIP` for those.
-
-However, due to [an `updpkgsums` 
bug](https://gitlab.archlinux.org/pacman/pacman-contrib/-/issues/119) 
overwriting checksum entries that are set to `SKIP` (which also occurs when 
using `pkgctl version upgrade`), the checksum for the license files have to 
*manually* be set back to `SKIP` on version upgrade when using either 
`updpkgsums` or `pkgctl version upgrade`.



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/discord/-/commit/4d9ee2c2554a716978b75ac81d97c6b1e13f6db3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/discord/-/commit/4d9ee2c2554a716978b75ac81d97c6b1e13f6db3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to