| 1 |
From [email protected] Tue Mar 25 12:39:56 2003 |
| 2 |
Return-Path: <[email protected]> |
| 3 |
Received: from soto.kasei.com (soto.kasei.com [194.202.192.40]) |
| 4 |
by zero.twingle.net (Postfix) with ESMTP id E4F0A79F |
| 5 |
for <[email protected]>; Fri, 17 Jan 2003 12:37:52 +0000 (UTC) |
| 6 |
Received: by soto.kasei.com (Postfix, from userid 1011) |
| 7 |
id A608D1C119; Fri, 17 Jan 2003 12:36:18 +0000 (GMT) |
| 8 |
Resent-From: [email protected] |
| 9 |
Resent-Date: Fri, 17 Jan 2003 12:36:18 +0000 |
| 10 |
Resent-Message-ID: <[email protected]> |
| 11 |
Resent-To: [email protected] |
| 12 |
Received: by soto.kasei.com (Postfix, from userid 65534) |
| 13 |
id 4F9771C646; Sun, 24 Nov 2002 21:28:32 +0000 (GMT) |
| 14 |
Received: from www.auug.org.au (www.auug.org.au [150.101.248.57]) |
| 15 |
by soto.kasei.com (Postfix) with ESMTP id 8F3D11C368 |
| 16 |
for <[email protected]>; Sun, 24 Nov 2002 21:28:30 +0000 (GMT) |
| 17 |
Received: from www.auug.org.au (localhost [127.0.0.1]) |
| 18 |
by www.auug.org.au (Postfix) with ESMTP |
| 19 |
id 980B83284C; Mon, 25 Nov 2002 07:57:50 +1030 (CST) |
| 20 |
Received: from geri (N671P025.adsl.highway.telekom.at [62.47.27.217]) |
| 21 |
by www.auug.org.au (Postfix) with ESMTP id 089A132603 |
| 22 |
for <[email protected]>; Sun, 24 Nov 2002 23:54:46 +1030 (CST) |
| 23 |
Received: from nlin by geri with local (Exim 3.36 #1 (Debian)) |
| 24 |
id 18Fy8G-0000ZZ-00; Sun, 24 Nov 2002 14:53:12 +0000 |
| 25 |
To: Ralf Fassel <[email protected]> |
| 26 |
Cc: Derrick 'dman' Hudson <[email protected]>, |
| 27 |
[email protected] |
| 28 |
Subject: Re: [Aegis]Re: getting started (with aegis) |
| 29 |
Message-ID: <[email protected]> |
| 30 |
Mime-Version: 1.0 |
| 31 |
User-Agent: Mutt/1.4i |
| 32 |
From: [email protected] |
| 33 |
Sender: [email protected] |
| 34 |
Errors-To: [email protected] |
| 35 |
X-BeenThere: [email protected] |
| 36 |
X-Mailman-Version: 2.0.8 |
| 37 |
Precedence: bulk |
| 38 |
List-Unsubscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 39 |
<mailto:[email protected]?subject=unsubscribe> |
| 40 |
List-Id: Users of Aegis software <aegis-users.auug.org.au> |
| 41 |
List-Post: <mailto:[email protected]> |
| 42 |
List-Help: <mailto:[email protected]?subject=help> |
| 43 |
List-Subscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 44 |
<mailto:[email protected]?subject=subscribe> |
| 45 |
List-Archive: <http://www.auug.org.au/mailman/private/aegis-users/> |
| 46 |
Date: Sun, 24 Nov 2002 14:53:12 +0000 |
| 47 |
X-Spam-Status: No, hits=-0.5 required=5.0 |
| 48 |
tests=KNOWN_MAILING_LIST,NO_REAL_NAME,QUOTED_EMAIL_TEXT, |
| 49 |
SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT |
| 50 |
version=2.43 |
| 51 |
X-Spam-Level: |
| 52 |
Content-Type: text/plain; charset="us-ascii" |
| 53 |
Content-Length: 895 |
| 54 |
Lines: 22 |
| 55 |
Content-Transfer-Encoding: 8bit |
| 56 |
|
| 57 |
On Sat, Nov 23, 2002 at 04:32:07PM +0100, Ralf Fassel wrote: |
| 58 |
> The exit status `2' is the problem here. Note that the default |
| 59 |
> `diff_command' checks for exit status -le 1: |
| 60 |
> "set +e; diff -c '$original' '$input' > '$output'; test $? -le 1"; |
| 61 |
> |
| 62 |
> | After reading the manpage, it looks like the '-a' option is required, |
| 63 |
> | and adding that to the config works. |
| 64 |
> |
| 65 |
> Hmm, I'm using diff 2.7, which gives me 1 in this case. Maybe |
| 66 |
> something changed in diff 2.8 w/ regards to the exit status... |
| 67 |
|
| 68 |
Something definitely did change, which I reported as an issue to the |
| 69 |
Debian package maintainers over 3 months ago (to date, no action has been |
| 70 |
taken on the report). For details, see: |
| 71 |
|
| 72 |
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=160701 |
| 73 |
|
| 74 |
-Norman |
| 75 |
_______________________________________________ |
| 76 |
Aegis-users mailing list |
| 77 |
[email protected] |
| 78 |
http://www.auug.org.au/mailman/listinfo/aegis-users |
| 79 |
From [email protected] Tue Mar 25 12:39:56 2003 |
| 80 |
Return-Path: <[email protected]> |
| 81 |
Received: from soto.kasei.com (soto.kasei.com [194.202.192.40]) |
| 82 |
by zero.twingle.net (Postfix) with ESMTP id ED1A58AF |
| 83 |
for <[email protected]>; Fri, 17 Jan 2003 12:37:52 +0000 (UTC) |
| 84 |
Received: by soto.kasei.com (Postfix, from userid 1011) |
| 85 |
id D41A31C133; Fri, 17 Jan 2003 12:36:18 +0000 (GMT) |
| 86 |
Resent-From: [email protected] |
| 87 |
Resent-Date: Fri, 17 Jan 2003 12:36:18 +0000 |
| 88 |
Resent-Message-ID: <[email protected]> |
| 89 |
Resent-To: [email protected] |
| 90 |
Received: by soto.kasei.com (Postfix, from userid 65534) |
| 91 |
id 7F3B71C65A; Mon, 25 Nov 2002 12:06:06 +0000 (GMT) |
| 92 |
Received: from www.auug.org.au (www.auug.org.au [150.101.248.57]) |
| 93 |
by soto.kasei.com (Postfix) with ESMTP id B2DDD1C64D |
| 94 |
for <[email protected]>; Mon, 25 Nov 2002 12:06:04 +0000 (GMT) |
| 95 |
Received: from www.auug.org.au (localhost [127.0.0.1]) |
| 96 |
by www.auug.org.au (Postfix) with ESMTP |
| 97 |
id 17AFC32856; Mon, 25 Nov 2002 22:35:26 +1030 (CST) |
| 98 |
Received: from colossus.systems.pipex.net (colossus.systems.pipex.net [62.241.160.73]) |
| 99 |
by www.auug.org.au (Postfix) with ESMTP id 6C67732603 |
| 100 |
for <[email protected]>; Mon, 25 Nov 2002 22:31:31 +1030 (CST) |
| 101 |
Received: from cloaked.freeserve.co.uk (81-86-163-141.dsl.pipex.com [81.86.163.141]) |
| 102 |
by colossus.systems.pipex.net (Postfix) with ESMTP id 1FFB216000789 |
| 103 |
for <[email protected]>; Mon, 25 Nov 2002 12:01:27 +0000 (GMT) |
| 104 |
Received: from news by cloaked.freeserve.co.uk with local (Exim 3.36 #1 (Debian)) |
| 105 |
id 18GHva-00023w-00 |
| 106 |
for <[email protected]>; Mon, 25 Nov 2002 12:01:26 +0000 |
| 107 |
Received: from 127.0.0.1 by 127.0.0.1 with nntp; 25 Nov 2002 12:01:26 GMT |
| 108 |
To: [email protected] |
| 109 |
Organization: A poorly-maintained Debian GNU/Linux InterNetNews site |
| 110 |
From: MJ Ray <[email protected]> |
| 111 |
Subject: Re: [Aegis]Re: getting started (with aegis) |
| 112 |
References: <[email protected]> |
| 113 |
Message-Id: <[email protected]> |
| 114 |
User-Agent: slrn/0.9.7.4 (Linux) |
| 115 |
NNTP-Posting-Host: 127.0.0.1 |
| 116 |
Sender: [email protected] |
| 117 |
Errors-To: [email protected] |
| 118 |
X-BeenThere: [email protected] |
| 119 |
X-Mailman-Version: 2.0.8 |
| 120 |
Precedence: bulk |
| 121 |
List-Unsubscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 122 |
<mailto:[email protected]?subject=unsubscribe> |
| 123 |
List-Id: Users of Aegis software <aegis-users.auug.org.au> |
| 124 |
List-Post: <mailto:[email protected]> |
| 125 |
List-Help: <mailto:[email protected]?subject=help> |
| 126 |
List-Subscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 127 |
<mailto:[email protected]?subject=subscribe> |
| 128 |
List-Archive: <http://www.auug.org.au/mailman/private/aegis-users/> |
| 129 |
Date: Mon, 25 Nov 2002 12:01:26 GMT |
| 130 |
X-Spam-Status: No, hits=-1.3 required=5.0 |
| 131 |
tests=KNOWN_MAILING_LIST,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES, |
| 132 |
SPAM_PHRASE_00_01,USER_AGENT |
| 133 |
version=2.43 |
| 134 |
X-Spam-Level: |
| 135 |
Content-Type: text/plain; charset="us-ascii" |
| 136 |
Content-Length: 686 |
| 137 |
Lines: 18 |
| 138 |
Content-Transfer-Encoding: 8bit |
| 139 |
|
| 140 |
[email protected] <[email protected]> wrote: |
| 141 |
> Something definitely did change, which I reported as an issue to the |
| 142 |
> Debian package maintainers over 3 months ago (to date, no action has been |
| 143 |
> taken on the report). |
| 144 |
|
| 145 |
That seems to be because there is no consensus on exactly what the bug |
| 146 |
actually is, much less what to do with it. Can people please read the bug |
| 147 |
report and state on the list what they think the correct solution is? Then |
| 148 |
we can produce a patch and get a fix into debian. |
| 149 |
|
| 150 |
Hasn't this hurt any other distributions? Why? |
| 151 |
|
| 152 |
MJR |
| 153 |
|
| 154 |
_______________________________________________ |
| 155 |
Aegis-users mailing list |
| 156 |
[email protected] |
| 157 |
http://www.auug.org.au/mailman/listinfo/aegis-users |
| 158 |
From [email protected] Tue Mar 25 12:39:56 2003 |
| 159 |
Return-Path: <[email protected]> |
| 160 |
Received: from soto.kasei.com (soto.kasei.com [194.202.192.40]) |
| 161 |
by zero.twingle.net (Postfix) with ESMTP id 409E38B0 |
| 162 |
for <[email protected]>; Fri, 17 Jan 2003 12:37:53 +0000 (UTC) |
| 163 |
Received: by soto.kasei.com (Postfix, from userid 1011) |
| 164 |
id 11F5C1C174; Fri, 17 Jan 2003 12:36:19 +0000 (GMT) |
| 165 |
Resent-From: [email protected] |
| 166 |
Resent-Date: Fri, 17 Jan 2003 12:36:18 +0000 |
| 167 |
Resent-Message-ID: <[email protected]> |
| 168 |
Resent-To: [email protected] |
| 169 |
Received: by soto.kasei.com (Postfix, from userid 65534) |
| 170 |
id 89D351C66A; Mon, 25 Nov 2002 13:50:32 +0000 (GMT) |
| 171 |
Received: from www.auug.org.au (www.auug.org.au [150.101.248.57]) |
| 172 |
by soto.kasei.com (Postfix) with ESMTP id 036871C65D |
| 173 |
for <[email protected]>; Mon, 25 Nov 2002 13:50:30 +0000 (GMT) |
| 174 |
Received: from www.auug.org.au (localhost [127.0.0.1]) |
| 175 |
by www.auug.org.au (Postfix) with ESMTP |
| 176 |
id 2E92432858; Tue, 26 Nov 2002 00:19:53 +1030 (CST) |
| 177 |
Received: from mailc0911.dte2k.de (mail.t-intra.de [62.156.147.75]) |
| 178 |
by www.auug.org.au (Postfix) with ESMTP id 9254932603 |
| 179 |
for <[email protected]>; Tue, 26 Nov 2002 00:16:36 +1030 (CST) |
| 180 |
Received: from mailc0907.dte2k.de ([10.50.185.7]) by mailc0911.dte2k.de with Microsoft SMTPSVC(5.0.2195.5329); |
| 181 |
Mon, 25 Nov 2002 14:46:32 +0100 |
| 182 |
Received: from jupiter.akutech-local.de ([80.134.88.103]) by mailc0907.dte2k.de with Microsoft SMTPSVC(5.0.2195.5329); |
| 183 |
Mon, 25 Nov 2002 14:46:32 +0100 |
| 184 |
Received: from jupiter.akutech-local.de (localhost [127.0.0.1]) |
| 185 |
by jupiter.akutech-local.de (8.12.3/8.12.3) with ESMTP id gAPDkU1V548824; |
| 186 |
Mon, 25 Nov 2002 14:46:30 +0100 (MET) |
| 187 |
Received: (from ralf@localhost) |
| 188 |
by jupiter.akutech-local.de (8.12.3/8.12.3/Submit) id gAPDkTq4553778; |
| 189 |
Mon, 25 Nov 2002 14:46:29 +0100 (MET) |
| 190 |
MIME-Version: 1.0 |
| 191 |
Message-ID: <[email protected]> |
| 192 |
From: Ralf Fassel <[email protected]> |
| 193 |
To: MJ Ray <[email protected]> |
| 194 |
Cc: [email protected] |
| 195 |
Subject: Re: [Aegis]Re: getting started (with aegis) |
| 196 |
In-Reply-To: <[email protected]> |
| 197 |
References: <[email protected]> |
| 198 |
<[email protected]> |
| 199 |
Organization: Akustik Technologie Goettingen |
| 200 |
X-OriginalArrivalTime: 25 Nov 2002 13:46:32.0508 (UTC) FILETIME=[1052AFC0:01C29489] |
| 201 |
Sender: [email protected] |
| 202 |
Errors-To: [email protected] |
| 203 |
X-BeenThere: [email protected] |
| 204 |
X-Mailman-Version: 2.0.8 |
| 205 |
Precedence: bulk |
| 206 |
List-Unsubscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 207 |
<mailto:[email protected]?subject=unsubscribe> |
| 208 |
List-Id: Users of Aegis software <aegis-users.auug.org.au> |
| 209 |
List-Post: <mailto:[email protected]> |
| 210 |
List-Help: <mailto:[email protected]?subject=help> |
| 211 |
List-Subscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 212 |
<mailto:[email protected]?subject=subscribe> |
| 213 |
List-Archive: <http://www.auug.org.au/mailman/private/aegis-users/> |
| 214 |
Date: Mon, 25 Nov 2002 14:46:29 +0100 |
| 215 |
X-Spam-Status: No, hits=-0.8 required=5.0 |
| 216 |
tests=IN_REP_TO,KNOWN_MAILING_LIST,NOSPAM_INC,REFERENCES, |
| 217 |
SPAM_PHRASE_00_01 |
| 218 |
version=2.43 |
| 219 |
X-Spam-Level: |
| 220 |
Content-Type: text/plain; charset="us-ascii" |
| 221 |
Content-Length: 2883 |
| 222 |
Lines: 62 |
| 223 |
Content-Transfer-Encoding: 8bit |
| 224 |
|
| 225 |
* MJ Ray |
| 226 |
| [email protected] <[email protected]> wrote: |
| 227 |
| > Something definitely did change, which I reported as an issue to the |
| 228 |
| > Debian package maintainers over 3 months ago (to date, no action has been |
| 229 |
| > taken on the report). |
| 230 |
| |
| 231 |
| That seems to be because there is no consensus on exactly what the |
| 232 |
| bug actually is, much less what to do with it. Can people please |
| 233 |
| read the bug report and state on the list what they think the |
| 234 |
| correct solution is? Then we can produce a patch and get a fix into |
| 235 |
| debian. |
| 236 |
|
| 237 |
I don't think this is a debian issue, since debian merely |
| 238 |
redistributes the GNU diff package. |
| 239 |
|
| 240 |
The `bug' is not a `bug' per se: an exit code has changed under |
| 241 |
certain circumstances (diffing binary files), and now the aegis |
| 242 |
diff_command is no longer adequate for that situation. IMHO, the |
| 243 |
default aegis diff command needs changing, not the `diff' program. |
| 244 |
|
| 245 |
Aegis uses `diff' to collect the changes to files in a human-readable |
| 246 |
form. Aegis does *not* use diff to check whether the file has changed |
| 247 |
at all, it uses a checksum for that purpose. But *if* the file has |
| 248 |
changed (as indicated by the checksum) then the `diff' command is |
| 249 |
called to produce a human-readable form of the differences for |
| 250 |
inspection. Now the exit command of that process is checked, and if |
| 251 |
it isn't 0 (no diff) or 1 (some diff) it is considered an error. |
| 252 |
`diff' 2.8 is now exiting 2 for binary files, so the command `fails' |
| 253 |
in the aegis sense. aegis can't tell whether diff had some other |
| 254 |
problem like file-not-found or out-of-memory (also exit status 2). |
| 255 |
|
| 256 |
So the easy solution is: |
| 257 |
- add a comment to the aegis standard config files stating to add `-a' |
| 258 |
*if* you're using GNU diffa *and* binary files. I vaguely remember |
| 259 |
that there is already some comment about GNU diff > 2.7 requiring -a |
| 260 |
in the aegis docs. diff -a produces huge diff files in case of |
| 261 |
binary inputs which might or might not be a problem. |
| 262 |
|
| 263 |
- The solution better resembling the current situation would be to |
| 264 |
call `cmp' if `diff' reports an error (exit > 1). Then we would get |
| 265 |
`files A and B differ, char x, line y' which is close enough to the |
| 266 |
`binary files A and B differ' message which diff 2.7 produced. |
| 267 |
|
| 268 |
diff_command = |
| 269 |
"set +e; diff -c '$original' '$input' > '$output'; if test $? -gt 1 \ |
| 270 |
; then cmp '$original' '$input' > '$output' ; test $? -le 1 \ |
| 271 |
; else ; exit 0 ; fi"; |
| 272 |
Warning: not tested, the idea being to call `cmp' in case `diff' |
| 273 |
reports failure (exit state > 1). |
| 274 |
|
| 275 |
| Hasn't this hurt any other distributions? Why? |
| 276 |
|
| 277 |
Because they do not check the `diff' exit status? Because they do not |
| 278 |
use `diff' to list the differences? Because they do not feed binary |
| 279 |
files to `diff'? Hard to tell without knowing which packages actually |
| 280 |
_use_ `diff'. |
| 281 |
|
| 282 |
R' |
| 283 |
_______________________________________________ |
| 284 |
Aegis-users mailing list |
| 285 |
[email protected] |
| 286 |
http://www.auug.org.au/mailman/listinfo/aegis-users |
| 287 |
From [email protected] Tue Mar 25 12:39:56 2003 |
| 288 |
Return-Path: <[email protected]> |
| 289 |
Received: from soto.kasei.com (soto.kasei.com [194.202.192.40]) |
| 290 |
by zero.twingle.net (Postfix) with ESMTP id A7BCF8B1 |
| 291 |
for <[email protected]>; Fri, 17 Jan 2003 12:37:53 +0000 (UTC) |
| 292 |
Received: by soto.kasei.com (Postfix, from userid 1011) |
| 293 |
id 3C18C1C119; Fri, 17 Jan 2003 12:36:19 +0000 (GMT) |
| 294 |
Resent-From: [email protected] |
| 295 |
Resent-Date: Fri, 17 Jan 2003 12:36:19 +0000 |
| 296 |
Resent-Message-ID: <[email protected]> |
| 297 |
Resent-To: [email protected] |
| 298 |
Received: by soto.kasei.com (Postfix, from userid 65534) |
| 299 |
id 02E801C688; Mon, 25 Nov 2002 17:21:47 +0000 (GMT) |
| 300 |
Received: from www.auug.org.au (www.auug.org.au [150.101.248.57]) |
| 301 |
by soto.kasei.com (Postfix) with ESMTP id 8CAE41C671 |
| 302 |
for <[email protected]>; Mon, 25 Nov 2002 17:21:46 +0000 (GMT) |
| 303 |
Received: from www.auug.org.au (localhost [127.0.0.1]) |
| 304 |
by www.auug.org.au (Postfix) with ESMTP |
| 305 |
id B29DD32850; Tue, 26 Nov 2002 03:51:12 +1030 (CST) |
| 306 |
Received: from gw-eg.lrtw.org (ns.lrtw.org [216.235.9.242]) |
| 307 |
by www.auug.org.au (Postfix) with ESMTP id E8C9632603 |
| 308 |
for <[email protected]>; Tue, 26 Nov 2002 03:47:33 +1030 (CST) |
| 309 |
Received: from scratch (wifi.vpn.int.lrtw.org [192.168.10.13]) |
| 310 |
by gw-eg.lrtw.org (Postfix) with ESMTP |
| 311 |
id 37AB05649E; Mon, 25 Nov 2002 12:17:29 -0500 (EST) |
| 312 |
Received: from davis by scratch with local (Exim 3.35 #1 (Debian)) |
| 313 |
id 18GMs3-00062n-00; Mon, 25 Nov 2002 12:18:07 -0500 |
| 314 |
From: Chris Davis <[email protected]> |
| 315 |
To: Ralf Fassel <[email protected]> |
| 316 |
Cc: [email protected] |
| 317 |
Subject: Re: [Aegis]Re: getting started (with aegis) |
| 318 |
Message-ID: <[email protected]> |
| 319 |
References: <[email protected]> <[email protected]> <[email protected]> |
| 320 |
Mime-Version: 1.0 |
| 321 |
In-Reply-To: <[email protected]> |
| 322 |
User-Agent: Mutt/1.3.28i |
| 323 |
Sender: [email protected] |
| 324 |
Errors-To: [email protected] |
| 325 |
X-BeenThere: [email protected] |
| 326 |
X-Mailman-Version: 2.0.8 |
| 327 |
Precedence: bulk |
| 328 |
List-Unsubscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 329 |
<mailto:[email protected]?subject=unsubscribe> |
| 330 |
List-Id: Users of Aegis software <aegis-users.auug.org.au> |
| 331 |
List-Post: <mailto:[email protected]> |
| 332 |
List-Help: <mailto:[email protected]?subject=help> |
| 333 |
List-Subscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 334 |
<mailto:[email protected]?subject=subscribe> |
| 335 |
List-Archive: <http://www.auug.org.au/mailman/private/aegis-users/> |
| 336 |
Date: Mon, 25 Nov 2002 12:18:07 -0500 |
| 337 |
X-Spam-Status: No, hits=-3.1 required=5.0 |
| 338 |
tests=IN_REP_TO,KNOWN_MAILING_LIST,QUOTED_EMAIL_TEXT,REFERENCES, |
| 339 |
SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT |
| 340 |
version=2.43 |
| 341 |
X-Spam-Level: |
| 342 |
Content-Type: text/plain; charset="us-ascii" |
| 343 |
Content-Length: 2128 |
| 344 |
Lines: 50 |
| 345 |
Content-Transfer-Encoding: 8bit |
| 346 |
|
| 347 |
On Mon, 25 Nov 2002, Ralf Fassel wrote: |
| 348 |
> I don't think this is a debian issue, since debian merely |
| 349 |
> redistributes the GNU diff package. |
| 350 |
|
| 351 |
Agreed. diff changed the meaning of its return codes. Upstream for diff |
| 352 |
thinks everything is now ok, and anything relying on diff'ing binary files |
| 353 |
getting a proper return code is buggy. |
| 354 |
|
| 355 |
The debian diff maintainer has no say in the matter, since he just packages |
| 356 |
upstreams source. Other then going back to an old version of diff and |
| 357 |
sticking with it (which is a bad idea for other reasons) there is no good |
| 358 |
way to change this. |
| 359 |
|
| 360 |
|
| 361 |
> So the easy solution is: |
| 362 |
> - add a comment to the aegis standard config files stating to add `-a' |
| 363 |
> *if* you're using GNU diffa *and* binary files. I vaguely remember |
| 364 |
> that there is already some comment about GNU diff > 2.7 requiring -a |
| 365 |
> in the aegis docs. diff -a produces huge diff files in case of |
| 366 |
> binary inputs which might or might not be a problem. |
| 367 |
> |
| 368 |
> - The solution better resembling the current situation would be to |
| 369 |
> call `cmp' if `diff' reports an error (exit > 1). Then we would get |
| 370 |
> `files A and B differ, char x, line y' which is close enough to the |
| 371 |
> `binary files A and B differ' message which diff 2.7 produced. |
| 372 |
> |
| 373 |
> diff_command = |
| 374 |
> "set +e; diff -c '$original' '$input' > '$output'; if test $? -gt 1 \ |
| 375 |
> ; then cmp '$original' '$input' > '$output' ; test $? -le 1 \ |
| 376 |
> ; else ; exit 0 ; fi"; |
| 377 |
> Warning: not tested, the idea being to call `cmp' in case `diff' |
| 378 |
> reports failure (exit state > 1). |
| 379 |
|
| 380 |
Something like this should work. I'll try it out tonight, and include it with |
| 381 |
my next upload. |
| 382 |
|
| 383 |
> | Hasn't this hurt any other distributions? Why? |
| 384 |
> |
| 385 |
> Because they do not check the `diff' exit status? Because they do not |
| 386 |
> use `diff' to list the differences? Because they do not feed binary |
| 387 |
> files to `diff'? Hard to tell without knowing which packages actually |
| 388 |
> _use_ `diff'. |
| 389 |
|
| 390 |
How many times does diff get used on binary files? I use xdelta myself. |
| 391 |
|
| 392 |
c |
| 393 |
_______________________________________________ |
| 394 |
Aegis-users mailing list |
| 395 |
[email protected] |
| 396 |
http://www.auug.org.au/mailman/listinfo/aegis-users |
| 397 |
From [email protected] Tue Mar 25 12:39:56 2003 |
| 398 |
Return-Path: <[email protected]> |
| 399 |
Received: from soto.kasei.com (soto.kasei.com [194.202.192.40]) |
| 400 |
by zero.twingle.net (Postfix) with ESMTP id 85B3C8B5 |
| 401 |
for <[email protected]>; Fri, 17 Jan 2003 12:37:54 +0000 (UTC) |
| 402 |
Received: by soto.kasei.com (Postfix, from userid 1011) |
| 403 |
id 445701C12E; Fri, 17 Jan 2003 12:36:20 +0000 (GMT) |
| 404 |
Resent-From: [email protected] |
| 405 |
Resent-Date: Fri, 17 Jan 2003 12:36:20 +0000 |
| 406 |
Resent-Message-ID: <[email protected]> |
| 407 |
Resent-To: [email protected] |
| 408 |
Received: by soto.kasei.com (Postfix, from userid 65534) |
| 409 |
id 53FA61C68F; Tue, 26 Nov 2002 08:27:41 +0000 (GMT) |
| 410 |
Received: from www.auug.org.au (www.auug.org.au [150.101.248.57]) |
| 411 |
by soto.kasei.com (Postfix) with ESMTP id DDBEA1C3EF |
| 412 |
for <[email protected]>; Tue, 26 Nov 2002 08:27:39 +0000 (GMT) |
| 413 |
Received: from www.auug.org.au (localhost [127.0.0.1]) |
| 414 |
by www.auug.org.au (Postfix) with ESMTP |
| 415 |
id 472E03285C; Tue, 26 Nov 2002 18:57:02 +1030 (CST) |
| 416 |
Received: from mailc0911.dte2k.de (mail.t-intra.de [62.156.147.75]) |
| 417 |
by www.auug.org.au (Postfix) with ESMTP id 0901232603 |
| 418 |
for <[email protected]>; Tue, 26 Nov 2002 18:53:36 +1030 (CST) |
| 419 |
Received: from mailc0906.dte2k.de ([10.50.185.6]) by mailc0911.dte2k.de with Microsoft SMTPSVC(5.0.2195.5329); |
| 420 |
Tue, 26 Nov 2002 09:23:33 +0100 |
| 421 |
Received: from jupiter.akutech-local.de ([217.84.235.78]) by mailc0906.dte2k.de with Microsoft SMTPSVC(5.0.2195.5329); |
| 422 |
Tue, 26 Nov 2002 09:23:33 +0100 |
| 423 |
Received: from jupiter.akutech-local.de (localhost [127.0.0.1]) |
| 424 |
by jupiter.akutech-local.de (8.12.3/8.12.3) with ESMTP id gAQ8NW1V541061; |
| 425 |
Tue, 26 Nov 2002 09:23:32 +0100 (MET) |
| 426 |
Received: (from ralf@localhost) |
| 427 |
by jupiter.akutech-local.de (8.12.3/8.12.3/Submit) id gAQ8NWoL538208; |
| 428 |
Tue, 26 Nov 2002 09:23:32 +0100 (MET) |
| 429 |
MIME-Version: 1.0 |
| 430 |
Message-ID: <[email protected]> |
| 431 |
From: Ralf Fassel <[email protected]> |
| 432 |
To: MJ Ray <[email protected]> |
| 433 |
Cc: [email protected] |
| 434 |
Subject: Re: [Aegis]Re: getting started (with aegis) |
| 435 |
In-Reply-To: <[email protected]> |
| 436 |
References: <[email protected]> |
| 437 |
<[email protected]> |
| 438 |
<[email protected]> |
| 439 |
<[email protected]> |
| 440 |
Organization: Akustik Technologie Goettingen |
| 441 |
X-OriginalArrivalTime: 26 Nov 2002 08:23:33.0540 (UTC) FILETIME=[1BF89640:01C29525] |
| 442 |
Sender: [email protected] |
| 443 |
Errors-To: [email protected] |
| 444 |
X-BeenThere: [email protected] |
| 445 |
X-Mailman-Version: 2.0.8 |
| 446 |
Precedence: bulk |
| 447 |
List-Unsubscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 448 |
<mailto:[email protected]?subject=unsubscribe> |
| 449 |
List-Id: Users of Aegis software <aegis-users.auug.org.au> |
| 450 |
List-Post: <mailto:[email protected]> |
| 451 |
List-Help: <mailto:[email protected]?subject=help> |
| 452 |
List-Subscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 453 |
<mailto:[email protected]?subject=subscribe> |
| 454 |
List-Archive: <http://www.auug.org.au/mailman/private/aegis-users/> |
| 455 |
Date: Tue, 26 Nov 2002 09:23:31 +0100 |
| 456 |
X-Spam-Status: No, hits=-0.8 required=5.0 |
| 457 |
tests=IN_REP_TO,KNOWN_MAILING_LIST,NOSPAM_INC,REFERENCES, |
| 458 |
SPAM_PHRASE_00_01 |
| 459 |
version=2.43 |
| 460 |
X-Spam-Level: |
| 461 |
Content-Type: text/plain; charset="us-ascii" |
| 462 |
Content-Transfer-Encoding: 8bit |
| 463 |
Content-Length: 1384 |
| 464 |
Lines: 33 |
| 465 |
|
| 466 |
* MJ Ray |
| 467 |
| > diff_command is no longer adequate for that situation. IMHO, the |
| 468 |
| > default aegis diff command needs changing, not the `diff' program. |
| 469 |
| |
| 470 |
| I admit I'm still a little "at sea": is this merely in debian, or in the |
| 471 |
| aegis source too? |
| 472 |
|
| 473 |
Aegis has no `diff_command' per se, but it comes with some example |
| 474 |
configurations, which all contain the diff exit status test `test $? |
| 475 |
-le 1'. The aegis end-user needs a configuration file containing a |
| 476 |
diff_command, and most of the times s/he will copy it from the |
| 477 |
examples and modify it (eg. the `build' command most of the times |
| 478 |
needs changing, too). |
| 479 |
|
| 480 |
I don't know whether debian ships the aegis package with a |
| 481 |
preinstalled project already containing a `config' file. *If* it |
| 482 |
does, the `diff_command' in there should be changed to be compatible |
| 483 |
with the other tools distributed. |
| 484 |
|
| 485 |
Aegis itself contains in it's User Guide, section on `using diff and |
| 486 |
merge' the following on `diff_command': |
| 487 |
|
| 488 |
Binary files will often cause modern versions of GNU Diff to exit |
| 489 |
with an exit status of 2, which is probably reasonable most of the |
| 490 |
time. If your project contains binary files, you may want to |
| 491 |
treat all files as text files. Use the GNU Diff -a option in this |
| 492 |
case. |
| 493 |
|
| 494 |
R' |
| 495 |
_______________________________________________ |
| 496 |
Aegis-users mailing list |
| 497 |
[email protected] |
| 498 |
http://www.auug.org.au/mailman/listinfo/aegis-users |
| 499 |
From [email protected] Tue Mar 25 12:39:56 2003 |
| 500 |
Return-Path: <[email protected]> |
| 501 |
Received: from soto.kasei.com (soto.kasei.com [194.202.192.40]) |
| 502 |
by zero.twingle.net (Postfix) with ESMTP id 45EC18B4 |
| 503 |
for <[email protected]>; Fri, 17 Jan 2003 12:37:54 +0000 (UTC) |
| 504 |
Received: by soto.kasei.com (Postfix, from userid 1011) |
| 505 |
id 1C4741C133; Fri, 17 Jan 2003 12:36:19 +0000 (GMT) |
| 506 |
Resent-From: [email protected] |
| 507 |
Resent-Date: Fri, 17 Jan 2003 12:36:19 +0000 |
| 508 |
Resent-Message-ID: <[email protected]> |
| 509 |
Resent-To: [email protected] |
| 510 |
Received: by soto.kasei.com (Postfix, from userid 65534) |
| 511 |
id 23B9D1C68A; Mon, 25 Nov 2002 19:57:23 +0000 (GMT) |
| 512 |
Received: from www.auug.org.au (www.auug.org.au [150.101.248.57]) |
| 513 |
by soto.kasei.com (Postfix) with ESMTP id 6561E1C679 |
| 514 |
for <[email protected]>; Mon, 25 Nov 2002 19:57:21 +0000 (GMT) |
| 515 |
Received: from www.auug.org.au (localhost [127.0.0.1]) |
| 516 |
by www.auug.org.au (Postfix) with ESMTP |
| 517 |
id 137A932859; Tue, 26 Nov 2002 06:26:47 +1030 (CST) |
| 518 |
Received: from colossus.systems.pipex.net (colossus.systems.pipex.net [62.241.160.73]) |
| 519 |
by www.auug.org.au (Postfix) with ESMTP id A0E9F32603 |
| 520 |
for <[email protected]>; Tue, 26 Nov 2002 06:22:52 +1030 (CST) |
| 521 |
Received: from cloaked.freeserve.co.uk (81-86-163-141.dsl.pipex.com [81.86.163.141]) |
| 522 |
by colossus.systems.pipex.net (Postfix) with ESMTP |
| 523 |
id 9F856160007E8; Mon, 25 Nov 2002 19:52:43 +0000 (GMT) |
| 524 |
Received: from cloaked.freeserve.co.uk ([127.0.0.1] ident=markj) |
| 525 |
by cloaked.freeserve.co.uk with esmtp (Exim 3.36 #1 (Debian)) |
| 526 |
id 18GPHf-0000zp-00; Mon, 25 Nov 2002 19:52:43 +0000 |
| 527 |
From: MJ Ray <[email protected]> |
| 528 |
To: Ralf Fassel <[email protected]> |
| 529 |
Cc: [email protected] |
| 530 |
Subject: Re: [Aegis]Re: getting started (with aegis) |
| 531 |
In-Reply-To: Message from Ralf Fassel <[email protected]> |
| 532 |
of "Mon, 25 Nov 2002 14:46:29 +0100." <[email protected]> |
| 533 |
References: <[email protected]> <[email protected]> <[email protected]> |
| 534 |
Message-Id: <[email protected]> |
| 535 |
Sender: [email protected] |
| 536 |
Errors-To: [email protected] |
| 537 |
X-BeenThere: [email protected] |
| 538 |
X-Mailman-Version: 2.0.8 |
| 539 |
Precedence: bulk |
| 540 |
List-Unsubscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 541 |
<mailto:[email protected]?subject=unsubscribe> |
| 542 |
List-Id: Users of Aegis software <aegis-users.auug.org.au> |
| 543 |
List-Post: <mailto:[email protected]> |
| 544 |
List-Help: <mailto:[email protected]?subject=help> |
| 545 |
List-Subscribe: <http://www.auug.org.au/mailman/listinfo/aegis-users>, |
| 546 |
<mailto:[email protected]?subject=subscribe> |
| 547 |
List-Archive: <http://www.auug.org.au/mailman/private/aegis-users/> |
| 548 |
Date: Mon, 25 Nov 2002 19:52:43 +0000 |
| 549 |
X-Spam-Status: No, hits=-1.7 required=5.0 |
| 550 |
tests=IN_REP_TO,KNOWN_MAILING_LIST,QUOTED_EMAIL_TEXT,REFERENCES, |
| 551 |
SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01 |
| 552 |
version=2.43 |
| 553 |
X-Spam-Level: |
| 554 |
Content-Type: text/plain; charset="us-ascii" |
| 555 |
Content-Transfer-Encoding: 8bit |
| 556 |
Content-Length: 597 |
| 557 |
Lines: 13 |
| 558 |
|
| 559 |
> diff_command is no longer adequate for that situation. IMHO, the |
| 560 |
> default aegis diff command needs changing, not the `diff' program. |
| 561 |
|
| 562 |
I admit I'm still a little "at sea": is this merely in debian, or in the |
| 563 |
aegis source too? |
| 564 |
-- |
| 565 |
MJR| v |
| 566 |
---|--[ Making the world a better place: one LoC at a time.... ]-----| |
| 567 |
`--[ http://mjr.towers.org.uk/ ]---------[ slef at jabber.at ]-----' |
| 568 |
_______________________________________________ |
| 569 |
Aegis-users mailing list |
| 570 |
[email protected] |
| 571 |
http://www.auug.org.au/mailman/listinfo/aegis-users |