AUR web interface

Tasklist

FS#2649 - Improvements to the PKGBUILD parser/variable substitution

Attached to Project: AUR web interface
Opened by Sergio Jovani Guzman (moret) - Sunday, 24 April 2005, 11:23 GMT
Last edited by Loui Chang (louipc) - Monday, 02 February 2009, 01:15 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 1.0.1
Due in Version 2.0.0
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

I did the Pingus game PKGBUILD and in the source field I wrote source=($url/files/$pkgname-$pkgver-binary-linux-i386.tar.bz2) but in detail pkg info appears:
Sources
$url/files/pingus-0.6.0-binary-linux-i386.tar.bz2
I think this implementation is needed.

Bye.
This task depends upon

Closed by  Loui Chang (louipc)
Monday, 02 February 2009, 01:15 GMT
Reason for closing:  Implemented
Comment by Simo Leone (neotuli) - Monday, 25 April 2005, 02:39 GMT
For the time being, please use a fully qualified address for sources, not a variable-based one. Currently, it only knows about pkgname and pkgver, because they are very commonly used.

The biggest hurdle here is that we don't want to acutally use bash to evaluate the pkgbuilds, because it just becomes too much of a security hazard, so all the evaluation is taking place in php.

Off the top of my head I think there might be an easy way to fix this, but I'm not all too fond of it. Basically I'm thinking parse through the sources array replacing anything that matches $[key] from earlier with it's value. hmm....
Comment by Simo Leone (neotuli) - Saturday, 11 June 2005, 04:56 GMT
I've marked this for 2.0 . I'm thinking that the entire bash-wannabe parser is going to get overhauled for that series, and this should be one of the things in it.
Comment by Joshua Taylor (deficite) - Sunday, 18 September 2005, 16:23 GMT
One of my packages require the use of string replacement to get the $pkgver to match up with the developer's weird way of naming their tarballs on sourceforge. Do you think it'd be feasible to add support for string replacement?

The package I'm talking about is eclipse-pydev
Comment by Callan Barrett (wizzomafizzo) - Tuesday, 30 September 2008, 06:50 GMT
As we've found out, actually using bash to interpret pkgbuilds is impossible to secure so perhaps we need to write a more advanced parser than what's currently used.
Comment by Loui Chang (louipc) - Wednesday, 28 January 2009, 21:10 GMT
There's a patch in git which satisfies this bug report.

Loading...