Subject: | tar options on NTFS for CPAN submissions |
My system is Windows XP, with an NTFS filesystem.
I have created a CPAN module with h2xs, and create the distribution with
an 'nmake dist'. When I upload the resulting tar.gz file to CPAN, the
permissions in the tarball are missing the 'x' bit (the following text
is from one of the CPAN maintainers):
When you do an 'ls -l' you will normally see something like this:
-rw-r--r-- ... Changes
-rw-r--r-- ... MANIFEST
-rw-r--r-- ... META.yml
-rw-r--r-- ... Makefile.PL
-rw-r--r-- ... README
drwxr-xr-x ... lib
drwxr-xr-x ... t
but you currently have this:
-rw-r--r-- ... Changes
-rw-r--r-- ... MANIFEST
-rw-r--r-- ... META.yml
-rw-r--r-- ... Makefile.PL
-rw-r--r-- ... README
drw-r--r-- ... lib
drw-r--r-- ... t
As a result, non-root users can't install the module.
I am using the GnuWin32 ports of tar and gzip. I think the problem is
that because NTFS doesn't understand UNIX permissions, tar must use the
above as the default.
I got around this by manually running tar with the "--mode" parameter
set, e.g.
tar --create --verbose --file=Module-Name-0.01.tar --mode=a+x
Module-Name-0.01
Currently it looks like the tar options in the generated Makefile are
TAR = tar
TARFLAGS = cvf
I wonder if the "--mode" parameter should be included in the mix?