Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19199
Modified Files:
ChangeLog PkgVersion.pm
Log Message:
When extracting tarballs, the optional flags which cause permissions and
ownership not to be preserved should not be invoked during bootstrap
(because the Apple-supplied gnutar is too old to know about these flags,
in 10.2 and earlier).
Index: PkgVersion.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/PkgVersion.pm,v
retrieving revision 1.265
retrieving revision 1.266
diff -u -d -r1.265 -r1.266
--- PkgVersion.pm 2 Jun 2004 14:02:02 -0000 1.265
+++ PkgVersion.pm 3 Jun 2004 17:16:36 -0000 1.266
@@ -1525,7 +1525,14 @@
$renamelist = "";
# Determine the rename list (if any)
- $tarflags = "-x${verbosity}f - --no-same-owner --no-same-permissions";
+ $tarflags = "-x${verbosity}f -";
+
+ # Note: the Apple-supplied /usr/bin/gnutar in versions 10.2 and
+ # earlier does not know about the flags --no-same-owner and
+ # --no-same-permissions. Therefore, we do not use these in
+ # the "default" situation (which should only occur during bootstrap).
+
+ my $permissionflags = " --no-same-owner --no-same-permissions";
$tarcommand = "/usr/bin/gnutar $tarflags"; # Default to Apple's GNU Tar
if ($self->has_param($renamefield)) {
@renamefiles = split(/\s+/, $self->param($renamefield));
@@ -1539,7 +1546,7 @@
}
$tarcommand = "/bin/pax -r${verbosity}"; # Use pax for
extracting with the renaming feature
} elsif ( -e "$basepath/bin/tar" ) {
- $tarcommand = "$basepath/bin/tar $tarflags"; # Use Fink's GNU
Tar if available
+ $tarcommand = "$basepath/bin/tar $tarflags $permissionflags";
# Use Fink's GNU Tar if available
}
$bzip2 = "bzip2";
$unzip = "unzip";
Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.626
retrieving revision 1.627
diff -u -d -r1.626 -r1.627
--- ChangeLog 2 Jun 2004 14:02:02 -0000 1.626
+++ ChangeLog 3 Jun 2004 17:16:36 -0000 1.627
@@ -1,3 +1,10 @@
+2004-06-03 Dave Morrison <[EMAIL PROTECTED]>
+
+ * PkgVersion.pm: When extracting tarballs, the optional flags
+ which cause permissions and ownership not to be preserved
+ should not be invoked during bootstrap (because the Apple-supplied
+ gnutar is too old to know about these flags, in 10.2 and earlier).
+
2004-06-02 Dave Morrison <[EMAIL PROTECTED]>
* PkgVersion.pm, Validation,pm: Write the contents of the
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits