FS#2803 - tarballs should be rebuilt
Attached to Project:
AUR web interface
Opened by Dusty Phillips (Dusty) - Sunday, 05 June 2005, 17:21 GMT
Last edited by Simo Leone (neotuli) - Saturday, 11 June 2005, 04:53 GMT
Opened by Dusty Phillips (Dusty) - Sunday, 05 June 2005, 17:21 GMT
Last edited by Simo Leone (neotuli) - Saturday, 11 June 2005, 04:53 GMT
|
Details
When a user uploads a tarball, it may have several formats
and names. AUR should automatically untar the tarball and
recreate it, ensuring that the tarball that is linked from
the package's page has a consistent name (ie: proj.tar or
proj-version.tar). It should also have a consistent
directory structure (ie: the PKGBUILD and other files should
be inside a directory with the name of the proj and not just
inside the tarball). Finally, it should ensure that only
files needed by the PKGBUILD (ie: those in the source array
that do not have external URLs and NOT accidentally uploaded
binaries) are included in the tarball.
This will make it easier for people wishing to write scripts to interface with the AUR (ie: me!). It will also make it a bit easier for users downloading the tarballs because they will consistently know what to expect. Also, it can reduce download size by removing unnecessary files. Dusty |
This task depends upon
Closed by Simo Leone (neotuli)
Saturday, 21 January 2006, 18:56 GMT
Reason for closing: Fixed
Additional comments about closing: finally.
Saturday, 21 January 2006, 18:56 GMT
Reason for closing: Fixed
Additional comments about closing: finally.
Also, while we're fixing this, we should make sure that we chmod the entire untarred tree u+w. Some people have uploaded stuff where that's not the case, and it makes the system very unhappy when it comes time to delete the untarred package.
Another thing we should check for are pkg/ and src/ dirs, even I uploaded one like that by accident.
* untar the existing package
* confirm existence of PKGBUILD
* check src array of PKGBUILD for files that are local (no URLs)
* include only the PKGBUILD and local files in the src array
* retar the existing package in the correct directory structure
Dusty
So in short, everything should be swell now.