Re: bsdtar/libarchive change behaviour 9-10

2013-08-20 Thread Jeremie Le Hen
On Mon, Aug 19, 2013 at 01:52:33AM +0200, Eitan Adler wrote:
 On Sun, Aug 18, 2013 at 9:39 PM, Tim Kientzle t...@kientzle.com wrote:
  Libarchive 3.x can treat them as extended metadata.
  As a result, bsdtar doesn't see them at all (except as
  additional metadata which can't be restored on FreeBSD).

This sounds like a POLA breakage.  The rule is maybe different for
softwares in contrib/.

  If you are using libarchive directly, you can ask it
  to not interpret those files as metadata.  Bsdtar does
  request such handling from libarchive.
 
 Perhaps this could be exposed to the UI as a env var or a flag?

+1 for this.

-- 
Jeremie Le Hen

Scientists say the world is made up of Protons, Neutrons and Electrons.
They forgot to mention Morons.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


bsdtar/libarchive change behaviour 9-10

2013-08-18 Thread Boris Samorodov
Hi All,

there are two systems which produce different results:
-
% uname -a
FreeBSD int.wart.ru 9.2-BETA2 FreeBSD 9.2-BETA2 #19 r253968: Tue Aug  6
04:16:05 SAMT 2013 b...@int.wart.ru:/usr/obj/usr/src/sys/INT  i386

% tar --version
bsdtar 2.8.5 - libarchive 2.8.5

% tar -tf /usr/ports/distfiles/Catalyst-Plugin-Prototype-1.33.tar.gz |
grep Plugin/
Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/
Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/._Prototype.pm
Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/Prototype.pm
-
% uname -a
FreeBSD srv.bb.tel.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #7 r253953: Mon
Aug  5 16:16:42 SAMT 2013
b...@srv.bb.tel.ru:/usr/obj/usr/src/sys/BB64X  amd64

% tar --version
bsdtar 3.1.2 - libarchive 3.1.2

% tar -tf /usr/ports/distfiles/Catalyst-Plugin-Prototype-1.33.tar.gz |
grep Plugin/
Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/
Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/Prototype.pm
-

I.e. the CURRENT system does not honor the presence of ._* file.
The file seems to be a MAC file and anyway get deletted before
installation.

So, the question is: is it a regression/bug/new feature?
Thanks!
-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: bsdtar/libarchive change behaviour 9-10

2013-08-18 Thread Tim Kientzle

On Aug 18, 2013, at 12:04 PM, Boris Samorodov wrote:

 Hi All,
 
 there are two systems which produce different results:
 -
 % uname -a
 FreeBSD int.wart.ru 9.2-BETA2 FreeBSD 9.2-BETA2 #19 r253968: Tue Aug  6
 04:16:05 SAMT 2013 b...@int.wart.ru:/usr/obj/usr/src/sys/INT  i386
 
 % tar --version
 bsdtar 2.8.5 - libarchive 2.8.5
 
 % tar -tf /usr/ports/distfiles/Catalyst-Plugin-Prototype-1.33.tar.gz |
 grep Plugin/
 Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/
 Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/._Prototype.pm
 Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/Prototype.pm
 -
 % uname -a
 FreeBSD srv.bb.tel.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #7 r253953: Mon
 Aug  5 16:16:42 SAMT 2013
 b...@srv.bb.tel.ru:/usr/obj/usr/src/sys/BB64X  amd64
 
 % tar --version
 bsdtar 3.1.2 - libarchive 3.1.2
 
 % tar -tf /usr/ports/distfiles/Catalyst-Plugin-Prototype-1.33.tar.gz |
 grep Plugin/
 Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/
 Catalyst-Plugin-Prototype-1.33/lib/Catalyst/Plugin/Prototype.pm
 -
 
 I.e. the CURRENT system does not honor the presence of ._* file.
 The file seems to be a MAC file and anyway get deletted before
 installation.
 
 So, the question is: is it a regression/bug/new feature?

Libarchive 3 does handle ._* files differently than libarchive 2.

In libarchive 2.x those files were treated as normal files
and bsdtar then had special code to process them as
Mac extensions.

Libarchive 3.x can treat them as extended metadata.
As a result, bsdtar doesn't see them at all (except as
additional metadata which can't be restored on FreeBSD).

If you are using libarchive directly, you can ask it
to not interpret those files as metadata.  Bsdtar does
request such handling from libarchive.

Tim


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: bsdtar/libarchive change behaviour 9-10

2013-08-18 Thread Eitan Adler
On Sun, Aug 18, 2013 at 9:39 PM, Tim Kientzle t...@kientzle.com wrote:
 Libarchive 3.x can treat them as extended metadata.
 As a result, bsdtar doesn't see them at all (except as
 additional metadata which can't be restored on FreeBSD).

Are there other such examples?

 If you are using libarchive directly, you can ask it
 to not interpret those files as metadata.  Bsdtar does
 request such handling from libarchive.

Perhaps this could be exposed to the UI as a env var or a flag?

-- 
Eitan Adler
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org