Community Packages

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!
Tasklist

FS#74802 - [python-simplejson] 3.17.6-3 downloads source from bad URL

Attached to Project: Community Packages
Opened by Tim (caffineetim) - Friday, 20 May 2022, 00:52 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 06 August 2022, 20:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
python-simplejson 3.17.6-3 downloads source from bad URL

The PKGBUILD for version 3.17.6-3 has the following line for source:
source=("$pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz")

This attempts to get the source from https://github.com/simplejson/simplejson/archive/v3.17.6.tar.gz which is a URL that returns an error. The correct URL for the source is https://github.com/simplejson/simplejson/archive/refs/tags/v3.17.6.tar.gz (note the /refs/tags).

The line in the PKGBUILD should be changed to:
source=("$pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/refs/tags/v$pkgver.tar.gz")

Steps to reproduce:
asp export community/python-simplejson
cd python-simplejson
makepkg

Error is:

==> Making package: python-simplejson 3.17.6-3 (Thu 19 May 2022 05:34:31 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found python-simplejson-3.17.6.tar.gz
==> Validating source files with sha512sums...
python-simplejson-3.17.6.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Saturday, 06 August 2022, 20:05 GMT
Reason for closing:  Fixed

Loading...