Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. 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#28505 - AUR Source field contains unparsed bash string operation

Attached to Project: Arch Linux
Opened by tjbp (STM) - Saturday, 18 February 2012, 15:09 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 18 February 2012, 19:01 GMT
Task Type Bug Report
Category Web Sites
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Elements of a package's source array often contain a bash variable - specifically $pkgver (as encouraged on the wiki). The AUR's backend attempts to parse the earlier definition of this variable, in order to deliver a valid URL on the package's AUR page. This parsing fails if the earlier definition contains a bash string operation - necessary if the source URL has a different formatting for the package version.

Steps to reproduce:
# define version
pkgver=1.01
# define custom version with "." removed for URL
_pkgver=${pkgver/./}
# define source
source=('http://example.com/source${_pkgver}.tar.gz')

Expected URL:
http://example.com/source101.tar.gz

Actual URL:
http://example.com/source101/./}.tar.gz

Example in the wild:
https://aur.archlinux.org/packages.php?ID=32014
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 18 February 2012, 19:01 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#15043 
Comment by tjbp (STM) - Saturday, 18 February 2012, 15:12 GMT
Whoops, didn't realise there were separate projects. Can someone move this to AUR -> Backend?

Loading...