Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 24304) by debbugs.gnu.org; 24 Aug 2016 21:44:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 24 17:44:36 2016 Received: from localhost ([127.0.0.1]:39432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1bcfyO-0007Lg-3M for submit <at> debbugs.gnu.org; Wed, 24 Aug 2016 17:44:36 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1bcfyM-0007LS-1W for 24304 <at> debbugs.gnu.org; Wed, 24 Aug 2016 17:44:34 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EFA611601C6; Wed, 24 Aug 2016 14:44:27 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id q5l0UrMu3uw6; Wed, 24 Aug 2016 14:44:27 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 42795161117; Wed, 24 Aug 2016 14:44:27 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HBqZYAujISnQ; Wed, 24 Aug 2016 14:44:27 -0700 (PDT) Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 254CF1601C6; Wed, 24 Aug 2016 14:44:27 -0700 (PDT) Subject: Re: [bug-diffutils] bug#24304: Latest release 3.5 To: Claude <lamy.claude@HIDDEN>, 24304 <at> debbugs.gnu.org References: <913a9b72-b779-3293-bbf6-10c770538724@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <4fb99d0e-b7c6-732f-720a-c9f71a917e86@HIDDEN> Date: Wed, 24 Aug 2016 14:44:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <913a9b72-b779-3293-bbf6-10c770538724@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 24304 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.2 (/) Claude wrote: > +#ifndef __MINGW32__ > verify (sizeof (lin) <= sizeof (long int)); > +#endif Although that change may be needed to get diffutils to compile, it is disabling a compile-time check that, if it fails, means that diffutils will probably break in some cases under mingw. You'll have better luck building diffutils under Cygwin, which more compatible with the GNU platform. In the meantime I'll mark this bug report as a wishlist item.
bug-diffutils@HIDDEN
:bug#24304
; Package diffutils
.
Full text available.Received: (at submit) by debbugs.gnu.org; 24 Aug 2016 21:35:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 24 17:35:19 2016 Received: from localhost ([127.0.0.1]:39427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1bcfpO-00077f-Sr for submit <at> debbugs.gnu.org; Wed, 24 Aug 2016 17:35:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <lamy.claude@HIDDEN>) id 1bcfpN-00077P-On for submit <at> debbugs.gnu.org; Wed, 24 Aug 2016 17:35:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <lamy.claude@HIDDEN>) id 1bcfpG-00007Y-Pn for submit <at> debbugs.gnu.org; Wed, 24 Aug 2016 17:35:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <lamy.claude@HIDDEN>) id 1bcfpG-00007T-MX for submit <at> debbugs.gnu.org; Wed, 24 Aug 2016 17:35:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <lamy.claude@HIDDEN>) id 1bcfpE-0003p9-Ib for bug-diffutils@HIDDEN; Wed, 24 Aug 2016 17:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <lamy.claude@HIDDEN>) id 1bcfp9-0008TA-E9 for bug-diffutils@HIDDEN; Wed, 24 Aug 2016 17:35:07 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:36132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <lamy.claude@HIDDEN>) id 1bcfp9-0008SH-89 for bug-diffutils@HIDDEN; Wed, 24 Aug 2016 17:35:03 -0400 Received: by mail-qk0-x243.google.com with SMTP id v123so2221900qkh.3 for <bug-diffutils@HIDDEN>; Wed, 24 Aug 2016 14:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version; bh=/Q3rA0uljRq+aQ6LbyHpKpxUx9ugN3BTIrcNOF+H8yA=; b=eSZDlSEMu2vn7TtDUQHE/On4QL+YA+A/YM01jsGNvXn3V602dz9TgEl+hBHnTK2SXz ekAzeu5bN16QWlU+xuu2JJFUSq2MCyP5TypWIzTxL78TFIPKc0cyb+aMSsxkLEw8/SjK o6yMrLPFxFGiIK2luiISqHs2S128vihIeVOK9gAfggxTYk3oRsVBrkg5oW1LGOyNgbaf Z/TxLow9ucGC4C0ZO5uCBDNEgqu/HQO9rSK+F2MMINzIYq9UtGdBqCEcLbK0Xf9lJA9u BPYGTNu51Y+8kbeAM6EEtN1pz6n9B7Slabvb2GbodEuuw6RzYX7pLmm0WS6zCR4VsIQB 2Xrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=/Q3rA0uljRq+aQ6LbyHpKpxUx9ugN3BTIrcNOF+H8yA=; b=VD8TiKBOTDhCjgc6I6mct5H3YIPtPgcCiiL5ZACNes+2j07wOGL5hOLrTRzcIC2gOk RcbRT10orSJDIgPAsotAVtRYMF3ZL1KrHbZB28O0njtcZA56/pDKWGPls+bTEZ5LUge9 tuz2SBa8DMQ335DrZAEHALFfy7lehbCuedZvmvnmDrI9pRIIxhP75Ep8+sMkrnhBH8CM 1KZ+PqCoyFhPQX7Hy0YfhFIQZu0+Hofov4VAetxZ20IWdhcBCc0Z/VYpwpABs4eggEUM glOItyMiJQpsnGFFTnLSkDhGqDGn5POrn9v9fq8CVrcfEFo2U9RMwJPomh274v+pawhO MFJA== X-Gm-Message-State: AE9vXwOlnDbuOApzrATIwuxuAY9vIB5Y7i/xFo8r4NYflEv80hpr3m+GgDTJmsYT17r3tw== X-Received: by 10.55.99.195 with SMTP id x186mr6057477qkb.26.1472074502309; Wed, 24 Aug 2016 14:35:02 -0700 (PDT) Received: from [192.168.1.40] (modemcable087.164-57-74.mc.videotron.ca. [74.57.164.87]) by smtp.gmail.com with ESMTPSA id w10sm5788041qtc.28.2016.08.24.14.35.01 for <bug-diffutils@HIDDEN> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2016 14:35:01 -0700 (PDT) To: bug-diffutils@HIDDEN From: Claude <lamy.claude@HIDDEN> Subject: Latest release 3.5 Message-ID: <913a9b72-b779-3293-bbf6-10c770538724@HIDDEN> Date: Wed, 24 Aug 2016 17:35:02 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------CE0920D15062152FB9E0C447" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) This is a multi-part message in MIME format. --------------CE0920D15062152FB9E0C447 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi I have dowloaded the latest release 3.5 in order to generate a win64 version. I had to apply the following patch in order to be able to compile successfully diff -ruN diffutils-3.5/src/sdiff.c diffutils-3.5.mod/src/sdiff.c --- diffutils-3.5/src/sdiff.c 2016-08-04 19:37:45.000000000 -0400 +++ diffutils-3.5.mod/src/sdiff.c 2016-08-24 16:14:33.032000000 -0400 @@ -805,7 +805,8 @@ /* Yield an exit status indicating that a signal was received. */ untrapsig (s); - kill (getpid (), s); + raise(s); +// kill (getpid (), s); /* That didn't work, so exit with error status. */ exit (EXIT_TROUBLE); diff -ruN diffutils-3.5/src/system.h diffutils-3.5.mod/src/system.h --- diffutils-3.5/src/system.h 2016-08-04 19:37:45.000000000 -0400 +++ diffutils-3.5.mod/src/system.h 2016-08-24 11:42:36.344000000 -0400 @@ -134,7 +134,9 @@ #define LIN_MAX PTRDIFF_MAX verify (TYPE_SIGNED (lin)); verify (sizeof (ptrdiff_t) <= sizeof (lin)); +#ifndef __MINGW32__ verify (sizeof (lin) <= sizeof (long int)); +#endif /* Limit so that 2 * CONTEXT + 1 does not overflow. */ diff -ruN diffutils-3.5/src/util.c diffutils-3.5.mod/src/util.c --- diffutils-3.5/src/util.c 2016-08-17 16:37:55.000000000 -0400 +++ diffutils-3.5.mod/src/util.c 2016-08-24 16:13:19.112000000 -0400 @@ -224,7 +224,7 @@ if (stops) { stop_signal_count = stops - 1; - sig = SIGSTOP; + sig = SIGTERM; } else signal (sig, SIG_DFL); @@ -244,11 +244,8 @@ /* The signals that are trapped, and the number of such signals. */ static int const sig[] = { - /* This one is handled specially. */ - SIGTSTP, - /* The usual suspects. */ - SIGALRM, SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, + SIGINT, SIGTERM, #ifdef SIGPOLL SIGPOLL, #endif @@ -298,7 +295,7 @@ caught_sig[j] = (signal (sig[j], SIG_IGN) != SIG_IGN); if (caught_sig[j]) { - signal (sig[j], sig[j] == SIGTSTP ? stophandler : sighandler); + signal (sig[j], sig[j] == SIGTERM ? stophandler : sighandler); siginterrupt (sig[j], 0); } } I am aware that my problem may be arised from my patch but I don't think so. The configure command I used was ./configure --host=x86_64-w64-mingw32 --prefix=/tmp/diffutils-3.5-mingw64 diff.exe was generated and executes. My problem is that it does not produce any differences when it should. Here is the output difference between the version 3.5 I produced and a version 2.7 I found on the net Test_case_insensitive>\diff --version diff - GNU diffutils version 2.7 Test_case_insensitive>\diff File1.txt File2.txt 6c6 < The character changing case will be the one comprised between the next one "S". --- > The character changing case will be the one comprised between the next one "s". 10,14c10,14 < Once upon a time there were two little girls raised by their parents. < They were not rich but they had the greatest treasur of all, they had each other's love. < But there come a time in life when envy is being felt, and this came early in life... < Well this story is rather long and I do not want to bother you with it. < You will have to get the end of this story by yourself. Have fun finding it... If you can. --- > oNCE UPON A TIME THERE WERE TWO LITTLE GIRLS RAISED BY THEIR PARENTS. > tHEY WERE NOT RICH BUT THEY HAD THE GREATEST TREASUR OF ALL, THEY HAD EACH OTHER'S LOVE. > bUT THERE COME A TIME IN LIFE WHEN ENVY IS BEING FELT, AND THIS CAME EARLY IN LIFE... > wELL THIS STORY IS RATHER LONG AND i DO NOT WANT TO BOTHER YOU WITH IT. > yOU WILL HAVE TO GET THE END OF THIS STORY BY YOURSELF. hAVE FUN FINDING IT... iF YOU CAN. Test_case_insensitive>\tools\diff.exe --version diff (GNU diffutils) 3.5 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Eggert, Mike Haertel, David Hayes, Richard Stallman, and Len Tower. Test_case_insensitive>\tools\diff.exe File1.txt File2.txt Test_case_insensitive>\tools\diff.exe File1.txt File2.txt Test_case_insensitive> Thanks Claude Lamy --------------CE0920D15062152FB9E0C447 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> Hi<br> <br> I have dowloaded the latest release 3.5 in order to generate a win64 version.<br> <br> I had to apply the following patch in order to be able to compile successfully<br> <br> diff -ruN diffutils-3.5/src/sdiff.c diffutils-3.5.mod/src/sdiff.c<br> --- diffutils-3.5/src/sdiff.c 2016-08-04 19:37:45.000000000 -0400<br> +++ diffutils-3.5.mod/src/sdiff.c 2016-08-24 16:14:33.032000000 -0400<br> @@ -805,7 +805,8 @@<br> <br> /* Yield an exit status indicating that a signal was received. */<br> untrapsig (s);<br> - kill (getpid (), s);<br> + raise(s);<br> +// kill (getpid (), s);<br> <br> /* That didn't work, so exit with error status. */<br> exit (EXIT_TROUBLE);<br> diff -ruN diffutils-3.5/src/system.h diffutils-3.5.mod/src/system.h<br> --- diffutils-3.5/src/system.h 2016-08-04 19:37:45.000000000 -0400<br> +++ diffutils-3.5.mod/src/system.h 2016-08-24 11:42:36.344000000 -0400<br> @@ -134,7 +134,9 @@<br> #define LIN_MAX PTRDIFF_MAX<br> verify (TYPE_SIGNED (lin));<br> verify (sizeof (ptrdiff_t) <= sizeof (lin));<br> +#ifndef __MINGW32__<br> verify (sizeof (lin) <= sizeof (long int));<br> +#endif<br> <br> /* Limit so that 2 * CONTEXT + 1 does not overflow. */<br> <br> diff -ruN diffutils-3.5/src/util.c diffutils-3.5.mod/src/util.c<br> --- diffutils-3.5/src/util.c 2016-08-17 16:37:55.000000000 -0400<br> +++ diffutils-3.5.mod/src/util.c 2016-08-24 16:13:19.112000000 -0400<br> @@ -224,7 +224,7 @@<br> if (stops)<br> {<br> stop_signal_count = stops - 1;<br> - sig = SIGSTOP;<br> + sig = SIGTERM;<br> }<br> else<br> signal (sig, SIG_DFL);<br> @@ -244,11 +244,8 @@<br> /* The signals that are trapped, and the number of such signals. */<br> static int const sig[] =<br> {<br> - /* This one is handled specially. */<br> - SIGTSTP,<br> -<br> /* The usual suspects. */<br> - SIGALRM, SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM,<br> + SIGINT, SIGTERM,<br> #ifdef SIGPOLL<br> SIGPOLL,<br> #endif<br> @@ -298,7 +295,7 @@<br> caught_sig[j] = (signal (sig[j], SIG_IGN) != SIG_IGN);<br> if (caught_sig[j])<br> {<br> - signal (sig[j], sig[j] == SIGTSTP ? stophandler : sighandler);<br> + signal (sig[j], sig[j] == SIGTERM ? stophandler : sighandler);<br> siginterrupt (sig[j], 0);<br> }<br> }<br> <br> I am aware that my problem may be arised from my patch but I don't think so.<br> <br> The configure command I used was <br> <br> <pre style="border: 0px; font-family: "Courier 10 Pitch", Courier, monospace; font-size: 14px; font-style: normal; font-weight: normal; margin: 0px 0px 1.6em; outline: 0px; padding: 1.6em; vertical-align: baseline; line-height: 1.6; overflow: auto; max-width: 100%; transition: opacity 0.3s linear; color: rgb(68, 68, 68); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background: rgb(241, 241, 233);">./configure --host=x86_64-w64-mingw32 --prefix=/tmp/diffutils-3.5-mingw64</pre> diff.exe was generated and executes. My problem is that it does not produce any differences when it should.<br> <br> Here is the output difference between the version 3.5 I produced and a version 2.7 I found on the net<br> <br> Test_case_insensitive>\diff --version<br> diff - GNU diffutils version 2.7<br> <br> Test_case_insensitive>\diff File1.txt File2.txt<br> 6c6<br> < The character changing case will be the one comprised between the next one "S".<br> ---<br> > The character changing case will be the one comprised between the next one "s".<br> 10,14c10,14<br> < Once upon a time there were two little girls raised by their parents.<br> < They were not rich but they had the greatest treasur of all, they had each other's love.<br> < But there come a time in life when envy is being felt, and this came early in life...<br> < Well this story is rather long and I do not want to bother you with it.<br> < You will have to get the end of this story by yourself. Have fun finding it... If you can.<br> ---<br> > oNCE UPON A TIME THERE WERE TWO LITTLE GIRLS RAISED BY THEIR PARENTS.<br> > tHEY WERE NOT RICH BUT THEY HAD THE GREATEST TREASUR OF ALL, THEY HAD EACH OTHER'S LOVE.<br> > bUT THERE COME A TIME IN LIFE WHEN ENVY IS BEING FELT, AND THIS CAME EARLY IN LIFE...<br> > wELL THIS STORY IS RATHER LONG AND i DO NOT WANT TO BOTHER YOU WITH IT.<br> > yOU WILL HAVE TO GET THE END OF THIS STORY BY YOURSELF. hAVE FUN FINDING IT... iF YOU CAN.<br> <br> Test_case_insensitive>\tools\diff.exe --version<br> diff (GNU diffutils) 3.5<br> Copyright (C) 2016 Free Software Foundation, Inc.<br> License GPLv3+: GNU GPL version 3 or later <a class="moz-txt-link-rfc2396E" href="http://gnu.org/licenses/gpl.html"><http://gnu.org/licenses/gpl.html></a>.<br> This is free software: you are free to change and redistribute it.<br> There is NO WARRANTY, to the extent permitted by law.<br> <br> Written by Paul Eggert, Mike Haertel, David Hayes,<br> Richard Stallman, and Len Tower.<br> <br> Test_case_insensitive>\tools\diff.exe File1.txt File2.txt<br> <br> Test_case_insensitive>\tools\diff.exe File1.txt File2.txt<br> <br> Test_case_insensitive><br> <br> Thanks<br> <br> Claude Lamy<br> <br> <br> </body> </html> --------------CE0920D15062152FB9E0C447--
Claude <lamy.claude@HIDDEN>
:bug-diffutils@HIDDEN
.
Full text available.bug-diffutils@HIDDEN
:bug#24304
; Package diffutils
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.