Your message dated Tue, 24 Aug 2010 14:15:04 +0200
with message-id <[email protected]>
and subject line Re: Bug#593252: debian/rules clean corrupts debian/patches
has caused the Debian Bug report #593252,
regarding debian/rules clean corrupts debian/patches
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
593252: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593252
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: llvm-2.7
Version: 2.7-3

The ‘diffstats’ target in debian/rules.d/control.mk contains some code 
that tries to modify every patch to include a diffstat header.  
Unfortunately, this code corrupts patches in two ways:

• It deletes DEP-3 headers <http://dep.debian.net/deps/dep3/> and any 
other form of explanatory text at the beginning of a patch.

• It breaks patches that delete files.

http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Creating%20and%20Removing
“… if you supply an old or new file that is named /dev/null or is empty 
and is dated the Epoch (1970-01-01 00:00:00 UTC), … patch normally creates 
a new file or removes the old file.”

But,

--- a/test/CodeGen/Generic/stack-protector.ll   2009-09-08 20:09:15.000000000 
-0400
+++ b/test/CodeGen/Generic/stack-protector.ll   1969-12-31 19:00:00.000000000 
-0500
is modified to
--- a/test/CodeGen/Generic/stack-protector.ll
+++ b/test/CodeGen/Generic/stack-protector.ll

which now creates an empty file because the Epoch date is gone, and

--- a/test/CodeGen/Generic/stack-protector.ll
+++ /dev/null
is modified to
--- a//dev/null
+++ b//dev/null

which doesn’t work at all.

This could interfere with NMUs and Ubuntu patches (see 
https://bugs.launchpad.net/ubuntu/+source/llvm-2.7/+bug/610992 for an 
example).  Please change the ‘diffstats’ target to no longer run by 
default on clean.



--- End Message ---
--- Begin Message ---
Hi!

Well, with llvm you have to use /dev/null for created/deleted files... ;-)


Closing.

   Arthur.

2010/8/16, Anders Kaseorg <[email protected]>:
> Package: llvm-2.7
> Version: 2.7-3
>
> The ‘diffstats’ target in debian/rules.d/control.mk contains some code
> that tries to modify every patch to include a diffstat header.
> Unfortunately, this code corrupts patches in two ways:
>
> • It deletes DEP-3 headers <http://dep.debian.net/deps/dep3/> and any
> other form of explanatory text at the beginning of a patch.
>
> • It breaks patches that delete files.
>
> http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Creating%20and%20Removing
> “… if you supply an old or new file that is named /dev/null or is empty
> and is dated the Epoch (1970-01-01 00:00:00 UTC), … patch normally creates
> a new file or removes the old file.”
>
> But,
>
> --- a/test/CodeGen/Generic/stack-protector.ll 2009-09-08 20:09:15.000000000
> -0400
> +++ b/test/CodeGen/Generic/stack-protector.ll 1969-12-31 19:00:00.000000000
> -0500
> is modified to
> --- a/test/CodeGen/Generic/stack-protector.ll
> +++ b/test/CodeGen/Generic/stack-protector.ll
>
> which now creates an empty file because the Epoch date is gone, and
>
> --- a/test/CodeGen/Generic/stack-protector.ll
> +++ /dev/null
> is modified to
> --- a//dev/null
> +++ b//dev/null
>
> which doesn’t work at all.
>
> This could interfere with NMUs and Ubuntu patches (see
> https://bugs.launchpad.net/ubuntu/+source/llvm-2.7/+bug/610992 for an
> example).  Please change the ‘diffstats’ target to no longer run by
> default on clean.
>
>
>
> _______________________________________________
> Pkg-llvm-team mailing list
> [email protected]
> http://lists.alioth.debian.org/mailman/listinfo/pkg-llvm-team
>


--- End Message ---

Reply via email to