[aur-dev] [PATCH] pkgsubmit: count actual subdirectories

Loui Chang louipc.ist at gmail.com
Sun Mar 18 11:11:50 EDT 2012

On Sat 17 Mar 2012 22:35 -0400, Dave Reisner wrote:
> Rather than relying on a regex, detect directories in the uploaded
> tarball and count the slashes. This avoids problems with bsdtar
> inserting PaxHeader attributes into the archive which look something
> like the following to Archive_Tar:
>   PaxHeader/xcursor-protozoa
>   xcursor-protozoa/
>   xcursor-protozoa/PaxHeader/PKGBUILD
>   xcursor-protozoa/PKGBUILD
> This only occurs on certain filesystems (e.g. jfs), but the tarball is
> by no means invalid. When extracted, it will only contain the PKGBUILD
> within a single subdirectory.

Just wondering, are these PaxHeaders, as well as Schily tags something
that you'd really want to even keep in the archive if they're filesystem
dependent? I suppose the AUR should be able to deal with these cases,
but it would be nice if makepkg would produce filesystem agnostic source
package too.

Maybe the AUR should reject them just as well, for the sake of a more
consistent format.

Of interest:

More information about the aur-dev mailing list