FS#40118 - [pacman] makepkg ISO extraction to $srcdir
Attached to Project:
Pacman
Opened by René Herman (rene) - Sunday, 27 April 2014, 21:49 GMT
Last edited by Allan McRae (Allan) - Wednesday, 30 April 2014, 05:53 GMT
Opened by René Herman (rene) - Sunday, 27 April 2014, 21:49 GMT
Last edited by Allan McRae (Allan) - Wednesday, 30 April 2014, 05:53 GMT
|
Details
bsdtar as used by makepkg to unpack sources can also extract
most ISO9660 images. With formats such as tar.gz it is
generally expected that the archive contains a single
top-directory (i.e., "foo-1.0.3.tar.gz" would unpack into a
single top-level "foo-1.0.3" directory); exceptions
generally mean that the archive comes from Windows.
For ISO images this is however never the expectation, meaning its root directory unpacks over all other files in the $srcdir; in an actual build just now, this caused me to have to rename local files. Given that the ISO expectancy is contrary to the regular unix archive expectancy, I believe it might make sense to single-out ISO to unpack into for example $srcdir/$volid/, with VOLID the ISO volume id. |
This task depends upon
(could in fact be a reason to generically extend the source=filename::fileuri syntax with a ::dir suffix or similar; that also helps for those Windows-type ZIP archives without a top-level dir)
If we can use subdirs as part of a general sources syntax, then this will probably obviate the need for special-casing ISO files.