Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: HEADS UP: tar -l is now (intentionally) broken.

1 view
Skip to first unread message

neuh...@chello.cz

unread,
Aug 3, 2004, 3:29:39 AM8/3/04
to
# kien...@freebsd.org / 2004-08-02 22:55:45 -0700:
> Since POSIX and GNU violently disagree about the
> meaning of "tar -l", and there seem to be strong
> adherents to both interpretations, I'm preparing to
> commit a patch that breaks "tar -l" for everyone:

All I can see is three posts in current@, that's
not much of a discussion (or voting).

I for one, would prefer POSIX compliance. :)

> $ tar -cl foo
> Error: -l has different behaviors in different tars.
> For the GNU behavior, use --one-file-system instead.
> For the POSIX behavior, use --check-links instead.

How about turning this into a warning?

> I don't believe the change to -l will break more than a couple
> of ports. Prior to this change, ports that specified
> -l would get the POSIX behavior even though they
> may have thought they were requesting the GNU
> behavior. This change will force you to unambiguously
> specify the particular behavior you desire.
>
> In short, everyone wins on -o, everyone loses
> on -l. That seems fair. ;-)

I believe "loses" is the keyword here. I don't see how this
would benefit anyone in the long term, sticking with either
side would be better (but please choose POSIX :).

--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

d...@dglawrence.com

unread,
Aug 3, 2004, 4:05:58 AM8/3/04
to
> # kien...@freebsd.org / 2004-08-02 22:55:45 -0700:
> > Since POSIX and GNU violently disagree about the
> > meaning of "tar -l", and there seem to be strong
> > adherents to both interpretations, I'm preparing to
> > commit a patch that breaks "tar -l" for everyone:
>
> All I can see is three posts in current@, that's
> not much of a discussion (or voting).
>
> I for one, would prefer POSIX compliance. :)

Well, '-l' has meant "local filesystem only" in FreeBSD since the 1.0
release (i.e. since the beginning - more than 10 years now). FreeBSD isn't
a POSIX OS - it's a BSD OS and we have many differences in our user
environment that differ from POSIX. That's partly what makes us BSD rather
than System V, Solaris, or Linux. Many of our users prefer the way that ps(1)
works in BSD, for example...as well as many other non-POSIXisms in other
utilities.
Since I personally trashed a destination filesystem because the new tar
didn't do the right thing, I *know* there will be many other unsuspecting
FreeBSD users that will have a similary distasteful experience with such
a completely different behavior of '-l'.

-DG

David G. Lawrence
President
Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500
TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175
The FreeBSD Project - http://www.freebsd.org
Pave the road of life with opportunities.
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-port...@freebsd.org"

m...@dt.e-technik.uni-dortmund.de

unread,
Aug 3, 2004, 5:08:03 AM8/3/04
to
Tim Kientzle <kien...@freebsd.org> writes:

> presence of POSIXLY_CORRECT.) I will consider
> suggestions for a corresponding environment variable
> for GNU behavior (GNULY_CORRECT?).

My suggestion: don't bother about GNULY_CORRECT. Where GNU deviates from
standards without good reason, GNU needs to be fixed.

--
Matthias Andree

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)


_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current

To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

ad...@freebsd.org

unread,
Aug 3, 2004, 10:56:42 AM8/3/04
to
>> (08.03.2004 @ 0709 PST): Mike Bristow said, in 1.4K: <<
> Means FreeBSD gets a POSIX tar; -STABLE users see the warning for ages;
> -CURRENT users see the warning for a while. Everyone has ice-cream.
>> end of "Re: HEADS UP: tar -l is now (intentionally) broken." from Mike Bristow <<

I do not digest ice cream well. I demand that a suitable ice cream
replacement be made available by default. Ice cream should be served
only if it receives --with-lactose.

Furthermore, which flavour and colour of ice cream are we talking here?

# Adam


What. I just woke up.
--
Adam Weinberger
ad...@magnesium.net || ad...@FreeBSD.org
ad...@vectors.cx || ad...@gnome.org
http://www.vectors.cx

fer...@iib.unsam.edu.ar

unread,
Aug 3, 2004, 11:34:42 AM8/3/04
to
+----[ Adam Weinberger <ad...@freebsd.org> (03.Aug.2004 12:01):

|
| >> (08.03.2004 @ 0709 PST): Mike Bristow said, in 1.4K: <<
| > Means FreeBSD gets a POSIX tar; -STABLE users see the warning for ages;
| > -CURRENT users see the warning for a while. Everyone has ice-cream.
| >> end of "Re: HEADS UP: tar -l is now (intentionally) broken." from Mike Bristow <<
|
| I do not digest ice cream well. I demand that a suitable ice cream
| replacement be made available by default. Ice cream should be served
| only if it receives --with-lactose.
|
| Furthermore, which flavour and colour of ice cream are we talking here?

A bikeshed in an ice-cream disguise! It's amazing how things transmute ;)

| # Adam
|
| What. I just woke up.
|

+----]

Have a nice day!

Fernan

--
Fernan Aguero - fernan at iib.unsam.edu.ar
Phone: +54 11 4580-7255/7 ext 310, Fax: +54 11 4752-9639
Check http://genoma.unsam.edu.ar/~fernan for more info.


_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports

To unsubscribe, send any mail to "freebsd-port...@freebsd.org"

obr...@freebsd.org

unread,
Aug 3, 2004, 2:31:06 PM8/3/04
to
On Mon, Aug 02, 2004 at 10:55:45PM -0700, Tim Kientzle wrote:
> I will consider
> suggestions for a corresponding environment variable
> for GNU behavior (GNULY_CORRECT?).

'GNU_ME_HARDER'.


_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current

To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

kien...@freebsd.org

unread,
Aug 4, 2004, 12:56:38 AM8/4/04
to
David Gilbert wrote:
>
> [2:1:301]dgilbert@canoe:~> bsdtar -cvf temp .bashrc
> a .bashrc: tar format cannot archive this: Inappropriate file type or format
>

Works here. Which means either there's something
weird going on at your end, or something weird going
on at my end.

It's possible you managed to get it in the middle
of a cvs update, I suppose. Try updating again
and rebuilding src/lib/libarchive and src/usr.bin/tar
and let me know if that changes anything.

Out of curiosity, what does "ls -l .bashrc" show?

Tim

_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports

To unsubscribe, send any mail to "freebsd-port...@freebsd.org"

0 new messages