GNU bug report logs - #19984
Diff and symlinks

Previous Next

Package: diffutils;

Reported by: mathstuf <at> gmail.com

Date: Tue, 3 Mar 2015 01:13:02 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19984 in the body.
You can then email your comments to 19984 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#19984; Package diffutils. (Tue, 03 Mar 2015 01:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to mathstuf <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Tue, 03 Mar 2015 01:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ben Boeckel <mathstuf <at> gmail.com>
To: bug-diffutils <at> gnu.org
Subject: Diff and symlinks
Date: Mon, 2 Mar 2015 20:12:00 -0500
Hi,

When making recursive diffs, diff resolves symlinks. This creates
invalid patches since patch refuses to patch through a symlink. A -L
option to either turn on or off symlink resolution would be nice to
have.

See patch failure here:

    https://kojipkgs.fedoraproject.org//work/tasks/5157/9125157/build.log

Thanks,

--Ben




Information forwarded to bug-diffutils <at> gnu.org:
bug#19984; Package diffutils. (Tue, 03 Mar 2015 15:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 19984 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Grünbacher <agruen <at> gnu.org>
To: mathstuf <at> gmail.com
Cc: 19984 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#19984: Diff and symlinks
Date: Tue, 3 Mar 2015 16:06:17 +0100
Well, diff has a --no-dereference option for not following symlinks,
and patch has a --follow-symlinks option that will replace symlinks
with patched files. What else do you have in mind?

It's unfortunate that diff doesn't support git-style patches; this
would solve such ambiguities.

Andreas




Information forwarded to bug-diffutils <at> gnu.org:
bug#19984; Package diffutils. (Tue, 03 Mar 2015 15:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 19984 <at> debbugs.gnu.org (full text, mbox):

From: Ben Boeckel <mathstuf <at> gmail.com>
To: Andreas Grünbacher <agruen <at> gnu.org>
Cc: 19984 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#19984: Diff and symlinks
Date: Tue, 3 Mar 2015 10:09:38 -0500
On Tue, Mar 03, 2015 at 16:06:17 +0100, Andreas Grünbacher wrote:
> Well, diff has a --no-dereference option for not following symlinks,
> and patch has a --follow-symlinks option that will replace symlinks
> with patched files. What else do you have in mind?

Ah, I had missed that option. I had searched for 'symlinks' and didn't
see anything. *adds to Fedora patch alias*

Thanks,

--Ben




Information forwarded to bug-diffutils <at> gnu.org:
bug#19984; Package diffutils. (Tue, 03 Mar 2015 15:19:02 GMT) Full text and rfc822 format available.

Message #14 received at 19984 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Grünbacher <agruen <at> gnu.org>
To: mathstuf <at> gmail.com
Cc: 19984 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#19984: Diff and symlinks
Date: Tue, 3 Mar 2015 16:18:18 +0100
2015-03-03 16:09 GMT+01:00 Ben Boeckel <mathstuf <at> gmail.com>:
> Ah, I had missed that option. I had searched for 'symlinks' and didn't
> see anything. *adds to Fedora patch alias*

Be careful with that option and don't even think about adding it globally
for all packages -- the resulting semantics are weird and it breaks
symlinks in git-style diffs.

Andreas




Information forwarded to bug-diffutils <at> gnu.org:
bug#19984; Package diffutils. (Tue, 03 Mar 2015 15:21:02 GMT) Full text and rfc822 format available.

Message #17 received at 19984 <at> debbugs.gnu.org (full text, mbox):

From: Ben Boeckel <mathstuf <at> gmail.com>
To: Andreas Grünbacher <agruen <at> gnu.org>
Cc: 19984 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#19984: Diff and symlinks
Date: Tue, 3 Mar 2015 10:20:04 -0500
On Tue, Mar 03, 2015 at 16:18:18 +0100, Andreas Grünbacher wrote:
> Be careful with that option and don't even think about adding it globally
> for all packages -- the resulting semantics are weird and it breaks
> symlinks in git-style diffs.

It's for making patches for Fedora packages, so it looks like:

    alias fdiff="diff -r -U5 --no-dereference"

--Ben




Information forwarded to bug-diffutils <at> gnu.org:
bug#19984; Package diffutils. (Tue, 03 Mar 2015 15:25:03 GMT) Full text and rfc822 format available.

Message #20 received at 19984 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Grünbacher <agruen <at> gnu.org>
To: mathstuf <at> gmail.com
Cc: 19984 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#19984: Diff and symlinks
Date: Tue, 3 Mar 2015 16:24:25 +0100
Okay, this is safe, diff will just fail when it encounters symlinks
that don't point to the same file.

Andreas




Added tag(s) notabug. Request was from Jim Meyering <jim <at> meyering.net> to control <at> debbugs.gnu.org. (Sun, 01 May 2016 01:58:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 19984 <at> debbugs.gnu.org and mathstuf <at> gmail.com Request was from Jim Meyering <jim <at> meyering.net> to control <at> debbugs.gnu.org. (Sun, 01 May 2016 01:58:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 29 May 2016 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.