Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19607

Modified Files:
      Tag: branch_0_20
        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.252.2.4
retrieving revision 1.252.2.5
diff -u -d -r1.252.2.4 -r1.252.2.5
--- PkgVersion.pm       2 Jun 2004 13:55:45 -0000       1.252.2.4
+++ PkgVersion.pm       3 Jun 2004 17:17:45 -0000       1.252.2.5
@@ -1461,7 +1461,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));
@@ -1475,7 +1482,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.592.2.6
retrieving revision 1.592.2.7
diff -u -d -r1.592.2.6 -r1.592.2.7
--- ChangeLog   2 Jun 2004 13:55:45 -0000       1.592.2.6
+++ ChangeLog   3 Jun 2004 17:17:45 -0000       1.592.2.7
@@ -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

Reply via email to