From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 15:07:36 2014 Received: (at submit) by debbugs.gnu.org; 2 Apr 2014 19:07:36 +0000 Received: from localhost ([127.0.0.1]:33274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVQVb-0003Hf-B4 for submit@debbugs.gnu.org; Wed, 02 Apr 2014 15:07:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37595) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVQVX-0003HS-PC for submit@debbugs.gnu.org; Wed, 02 Apr 2014 15:07:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVQVR-0006JL-Dq for submit@debbugs.gnu.org; Wed, 02 Apr 2014 15:07:31 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVQVR-0006JD-Bk for submit@debbugs.gnu.org; Wed, 02 Apr 2014 15:07:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVQVM-0008FK-0P for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 15:07:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVQVG-0005z0-BZ for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 15:07:19 -0400 Received: from limerock02.mail.cornell.edu ([128.84.12.100]:51255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVQVG-0005xU-76 for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 15:07:14 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s32J75Ob022739 for ; Wed, 2 Apr 2014 15:07:05 -0400 Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s32J74x4020137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 2 Apr 2014 15:07:05 -0400 Message-ID: <533C5FEB.7090408@cornell.edu> Date: Wed, 02 Apr 2014 15:07:23 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Problem with manifests on cygw32 build with new binutils Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) binutils has changed so that, on Cygwin, executables have a manifest built in by default. A consequence is that the cygw32 build of emacs produces an emacs.exe which, after it is stripped, won't run: $ ./emacs-stripped.exe -bash: ./emacs-stripped.exe: cannot execute binary file This is presumably caused by the fact that the cygw32 build already incorporates a manifest via nt/emacs.res. The following patch fixes this and does some related manifest-related cleanup: === modified file 'configure.ac' --- configure.ac 2014-03-27 21:29:32 +0000 +++ configure.ac 2014-04-02 17:47:41 +0000 @@ -1834,11 +1834,6 @@ W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o" W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o" EMACSRES="emacs.res" - case "$canonical" in - x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;; - *) EMACS_MANIFEST="emacs-x86.manifest" ;; - esac - UPDATE_MANIFEST=update-game-score.exe.manifest if test "${opsys}" = "cygwin"; then W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32" W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool" @@ -1846,6 +1841,11 @@ # the rc file), not a linker script. W32_RES_LINK="-Wl,emacs.res" else + case "$canonical" in + x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;; + *) EMACS_MANIFEST="emacs-x86.manifest" ;; + esac + UPDATE_MANIFEST=update-game-score.exe.manifest W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o" W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32" W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10" === modified file 'nt/emacs.rc' --- nt/emacs.rc 2014-03-21 10:12:53 +0000 +++ nt/emacs.rc 2014-04-02 18:30:53 +0000 @@ -1,10 +1,12 @@ Emacs ICON icons/emacs.ico 32649 CURSOR icons/hand.cur -#if defined (WIN64) || defined (__x86_64__) +#ifndef __CYGWIN__ +#ifdef WIN64 1 24 "emacs-x64.manifest" #else 1 24 "emacs-x86.manifest" #endif +#endif #ifndef VS_VERSION_INFO #define VS_VERSION_INFO 1 === modified file 'src/Makefile.in' --- src/Makefile.in 2014-01-12 17:27:17 +0000 +++ src/Makefile.in 2014-04-02 18:29:50 +0000 @@ -259,7 +259,7 @@ ## emacs.res if HAVE_W32 EMACSRES = @EMACSRES@ -## emacs-*.manifest if HAVE_W32 +## emacs-*.manifest if WINDOWSNT EMACS_MANIFEST = @EMACS_MANIFEST@ ## If HAVE_W32, compiler arguments for including ## the resource file in the binary. OK to apply to the emacs-24 branch? Ken From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 15:39:10 2014 Received: (at 17176) by debbugs.gnu.org; 2 Apr 2014 19:39:10 +0000 Received: from localhost ([127.0.0.1]:33300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVR08-000497-Fs for submit@debbugs.gnu.org; Wed, 02 Apr 2014 15:39:08 -0400 Received: from dancol.org ([96.126.100.184]:42350) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVR05-00048u-LM for 17176@debbugs.gnu.org; Wed, 02 Apr 2014 15:39:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=1ON3X7K2M6283CGFBnGhniLRg3uKprWfFGzPJYI5IVw=; b=IxnOdqum56eE3f2ohmsc1UpN1VZHQs/O1nMc8ItoKsjHOeR8smmRUmn5qe5XcbYPblMN5XmzCpGn5/y+9pyVKxwNyUchKdkSuKCpQyUxs63jXn+fDWBnlq5vovQtF+i3nB3nWWw83SYwIzoSbyjDyNJnFjiH2U0U6U9MXpbPHcZfHUxPc1pzvOruPpzd2ViltM7mNtSKlvNgOV6vBtdZsYPgLaQYdngta3f1CI/i4C2cL9IEVWAJw6s5FreyTU538pQYW1DBbbHG+dYzCOFIIiM4GpY7wXBI/Ps813sf4S2Cp3BcJ52NqOeE5gPX0shlwPSyo2PHMkWHHjsMFGHbJg==; Received: from 66-192-186-66.static.twtelecom.net ([66.192.186.66] helo=[172.26.194.174]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1WVR04-0006Kb-5e; Wed, 02 Apr 2014 12:39:04 -0700 Message-ID: <533C6751.6010208@dancol.org> Date: Wed, 02 Apr 2014 12:38:57 -0700 From: Daniel Colascione User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Ken Brown , 17176@debbugs.gnu.org Subject: Re: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils References: <533C5FEB.7090408@cornell.edu> In-Reply-To: <533C5FEB.7090408@cornell.edu> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="29bjfFNKKgplebnoeNcuWm0jR7wXuJRfV" X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 17176 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --29bjfFNKKgplebnoeNcuWm0jR7wXuJRfV Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/02/2014 12:07 PM, Ken Brown wrote: > binutils has changed so that, on Cygwin, executables have a manifest > built in by default. A consequence is that the cygw32 build of emacs > produces an emacs.exe which, after it is stripped, won't run: >=20 > $ ./emacs-stripped.exe > -bash: ./emacs-stripped.exe: cannot execute binary file >=20 > This is presumably caused by the fact that the cygw32 build already > incorporates a manifest via nt/emacs.res. The following patch fixes > this and does some related manifest-related cleanup: Looks good to me. Thanks. --29bjfFNKKgplebnoeNcuWm0jR7wXuJRfV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTPGdRAAoJEMAaIROpHW7I/VYQAIKIbZdRsVdsxDcRBguEiVAJ hg1P+7WVKxL35qwFViZdNYAQrBNDtVjbPEqsp4dUwC/QiuqsKOJRzHPsPX+HjoMC FFjhs4qVL/dX+VTxW/x0qJSCfQXU5I4r90jY0t1VahuCBz+44Lk7HHt7zTA5+ids b27uvKzvcUKOn2OjC0o6v9Ldg88Fhz3A7JB4vkQ3gV6tBMpY3MXzoZtJrnEt4urk UUCggJcxqnLV4KxtYsmBnlhNfBUAlROoUeTVXywtLwYlYX8wbUmC1a2c3nTrIocS RTl8OuEZBGyx15f1FhhnkGhlG9L0ZiuiKNky4gpcdjpd0Hj95CVqm0pDFksVaT+1 C8tyXskfwSK73fg7cuoPZjewN9J03uLcUQcSlRHGvEsEsv+jhOep5PSOemSoxaoN jmcSjfhx2NL194XaCaH71PkO/ntEoShVR2pVBBbqMb+Y1hPgT+2jsqSVMbsVNh4h xMd5i7sgcl5G7K6RNskqoDP8BRzEUmGIawji9L0fhdzblHnlOGqKJCa94CzDTM99 I3jFjIffcaaKdId0m1R1CRgyC5xaXtMjbg74yak6PDDe8oDYRT0YodjKWhdf4XIs g5hLxc5GgIY8B701bEOh+LpTU/wzIh9BOKXNHr6OovthClFLqIerj6PPyVw5Pz+s 6UViVpmCSpeiH2p8FHPj =Cg8F -----END PGP SIGNATURE----- --29bjfFNKKgplebnoeNcuWm0jR7wXuJRfV-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 16:29:28 2014 Received: (at 17176) by debbugs.gnu.org; 2 Apr 2014 20:29:28 +0000 Received: from localhost ([127.0.0.1]:33341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVRmp-0005UW-BN for submit@debbugs.gnu.org; Wed, 02 Apr 2014 16:29:27 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:44208) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVRmm-0005UN-N5 for 17176@debbugs.gnu.org; Wed, 02 Apr 2014 16:29:25 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N3F00M006VDZI00@mtaout25.012.net.il> for 17176@debbugs.gnu.org; Wed, 02 Apr 2014 23:27:55 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3F00NOF7IIYY10@mtaout25.012.net.il>; Wed, 02 Apr 2014 23:27:55 +0300 (IDT) Date: Wed, 02 Apr 2014 23:29:35 +0300 From: Eli Zaretskii Subject: Re: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils In-reply-to: <533C5FEB.7090408@cornell.edu> X-012-Sender: halo1@inter.net.il To: Ken Brown Message-id: <83d2gzbhlc.fsf@gnu.org> References: <533C5FEB.7090408@cornell.edu> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17176 Cc: 17176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 02 Apr 2014 15:07:23 -0400 > From: Ken Brown > > binutils has changed so that, on Cygwin, executables have a manifest > built in by default. A consequence is that the cygw32 build of emacs > produces an emacs.exe which, after it is stripped, won't run: > > $ ./emacs-stripped.exe > -bash: ./emacs-stripped.exe: cannot execute binary file > > This is presumably caused by the fact that the cygw32 build already > incorporates a manifest via nt/emacs.res. Are you sure this is the cause? If so, can you explain how stripping makes this problem rear its head? What do you see in the .rsrc section in the unstripped and in stripped emacs.exe? From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 16:59:02 2014 Received: (at 17176) by debbugs.gnu.org; 2 Apr 2014 20:59:02 +0000 Received: from localhost ([127.0.0.1]:33379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVSFQ-0006K6-Eg for submit@debbugs.gnu.org; Wed, 02 Apr 2014 16:59:01 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:43644) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVSFM-0006Js-FP for 17176@debbugs.gnu.org; Wed, 02 Apr 2014 16:58:57 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N3F00B008HPRT00@mtaout24.012.net.il> for 17176@debbugs.gnu.org; Wed, 02 Apr 2014 23:56:57 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3F003I38UWTN90@mtaout24.012.net.il>; Wed, 02 Apr 2014 23:56:57 +0300 (IDT) Date: Wed, 02 Apr 2014 23:59:07 +0300 From: Eli Zaretskii Subject: Re: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils In-reply-to: <83d2gzbhlc.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: kbrown@cornell.edu Message-id: <838urnbg84.fsf@gnu.org> References: <533C5FEB.7090408@cornell.edu> <83d2gzbhlc.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17176 Cc: 17176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 02 Apr 2014 23:29:35 +0300 > From: Eli Zaretskii > Cc: 17176@debbugs.gnu.org > > > Date: Wed, 02 Apr 2014 15:07:23 -0400 > > From: Ken Brown > > > > binutils has changed so that, on Cygwin, executables have a manifest > > built in by default. A consequence is that the cygw32 build of emacs > > produces an emacs.exe which, after it is stripped, won't run: > > > > $ ./emacs-stripped.exe > > -bash: ./emacs-stripped.exe: cannot execute binary file > > > > This is presumably caused by the fact that the cygw32 build already > > incorporates a manifest via nt/emacs.res. > > Are you sure this is the cause? If so, can you explain how stripping > makes this problem rear its head? What do you see in the .rsrc > section in the unstripped and in stripped emacs.exe? Also, what about those Cygwin users who didn't yet upgrade to this new version of Binutils? they will be left with no manifest. And are you sure the Cygwin manifest does everything our manifest does? If there's a linker switch to disable this automatic embedding of Cygwin manifest, I'd suggest to use it, at least for emacs-24 branch. That sounds like a better short-run solution. Failing that, a configure-time test for this version of Binutils will be needed, I think. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 18:19:30 2014 Received: (at 17176) by debbugs.gnu.org; 2 Apr 2014 22:19:30 +0000 Received: from localhost ([127.0.0.1]:33429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVTVG-0001Ed-Jr for submit@debbugs.gnu.org; Wed, 02 Apr 2014 18:19:30 -0400 Received: from limerock03.mail.cornell.edu ([128.84.12.34]:55438) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVTVD-0001EQ-U8 for 17176@debbugs.gnu.org; Wed, 02 Apr 2014 18:19:24 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s32MJGrq009737; Wed, 2 Apr 2014 18:19:16 -0400 Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s32MJFTY022501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 2 Apr 2014 18:19:16 -0400 Message-ID: <533C8CF6.3060004@cornell.edu> Date: Wed, 02 Apr 2014 18:19:34 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils References: <533C5FEB.7090408@cornell.edu> <83d2gzbhlc.fsf@gnu.org> <838urnbg84.fsf@gnu.org> In-Reply-To: <838urnbg84.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 17176 Cc: 17176@debbugs.gnu.org, Daniel Colascione X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 4/2/2014 4:59 PM, Eli Zaretskii wrote: >> Date: Wed, 02 Apr 2014 23:29:35 +0300 >> From: Eli Zaretskii >> Cc: 17176@debbugs.gnu.org >> >>> Date: Wed, 02 Apr 2014 15:07:23 -0400 >>> From: Ken Brown >>> >>> binutils has changed so that, on Cygwin, executables have a manifest >>> built in by default. A consequence is that the cygw32 build of emacs >>> produces an emacs.exe which, after it is stripped, won't run: >>> >>> $ ./emacs-stripped.exe >>> -bash: ./emacs-stripped.exe: cannot execute binary file >>> >>> This is presumably caused by the fact that the cygw32 build already >>> incorporates a manifest via nt/emacs.res. >> >> Are you sure this is the cause? No, but I don't think it matters. I think the patch is correct anyway, for reasons I'll explain below. > Also, what about those Cygwin users who didn't yet upgrade to this new > version of Binutils? they will be left with no manifest. They don't need one. Cygwin binaries generally have no manifest (prior to the Binutils change). The only exceptions are for programs that need a manifest to avoid UAC problems because their names happen to contain "update" or "patch", for instance. Not that Binutils has changed, people doing builds on Cygwin never have to think about manifests even in these exceptional cases. The fact that the cygw32 build of emacs uses a manifest is a consequence (probably unintended, but only Daniel could say for sure) of the fact that emacs.res is linked in. And the only reason for linking in emacs.res is to get the emacs icon into the cygw32 build. > Failing that, a configure-time test for this version of Binutils will > be needed, I think. This isn't necessary. The old Binutils works fine after the patch. The only difference is that there's no manifest but, as I said above, none is needed. Ken From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 22:48:16 2014 Received: (at 17176) by debbugs.gnu.org; 3 Apr 2014 02:48:16 +0000 Received: from localhost ([127.0.0.1]:33545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVXhQ-0008Pv-6A for submit@debbugs.gnu.org; Wed, 02 Apr 2014 22:48:16 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:39635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVXhM-0008Pk-Us for 17176@debbugs.gnu.org; Wed, 02 Apr 2014 22:48:14 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N3F00B00OMTH500@a-mtaout20.012.net.il> for 17176@debbugs.gnu.org; Thu, 03 Apr 2014 05:48:10 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3F00B67P496N70@a-mtaout20.012.net.il>; Thu, 03 Apr 2014 05:48:10 +0300 (IDT) Date: Thu, 03 Apr 2014 05:48:22 +0300 From: Eli Zaretskii Subject: Re: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils In-reply-to: <533C8CF6.3060004@cornell.edu> X-012-Sender: halo1@inter.net.il To: Ken Brown Message-id: <837g77b021.fsf@gnu.org> References: <533C5FEB.7090408@cornell.edu> <83d2gzbhlc.fsf@gnu.org> <838urnbg84.fsf@gnu.org> <533C8CF6.3060004@cornell.edu> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17176 Cc: 17176@debbugs.gnu.org, dancol@dancol.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 02 Apr 2014 18:19:34 -0400 > From: Ken Brown > CC: 17176@debbugs.gnu.org, Daniel Colascione > > > Also, what about those Cygwin users who didn't yet upgrade to this new > > version of Binutils? they will be left with no manifest. > > They don't need one. Cygwin binaries generally have no manifest (prior > to the Binutils change). The only exceptions are for programs that need > a manifest to avoid UAC problems because their names happen to contain > "update" or "patch", for instance. The set of names that trigger UAC prompts is not documented anywhere. We only know some names that people discovered and reported, but not the whole list. Besides, the Emacs manifest has recently got an addition that is important on Windows 8.1 and later, which has nothing to do with UAC. > The fact that the cygw32 build of emacs uses a manifest is a consequence > (probably unintended, but only Daniel could say for sure) of the fact > that emacs.res is linked in. And the only reason for linking in > emacs.res is to get the emacs icon into the cygw32 build. Having a manifest is a system recommendation, not an Emacs invention. > This isn't necessary. The old Binutils works fine after the patch. The > only difference is that there's no manifest but, as I said above, none > is needed. I think this is a mistake, but I don't use Cygwin, so it's your call. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 03 08:50:48 2014 Received: (at 17176) by debbugs.gnu.org; 3 Apr 2014 12:50:48 +0000 Received: from localhost ([127.0.0.1]:33788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVh6V-0008Mz-PV for submit@debbugs.gnu.org; Thu, 03 Apr 2014 08:50:48 -0400 Received: from limerock03.mail.cornell.edu ([128.84.12.34]:59187) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVh6M-0008Mi-7R for 17176@debbugs.gnu.org; Thu, 03 Apr 2014 08:50:39 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s33CoVM9012365; Thu, 3 Apr 2014 08:50:31 -0400 Received: from [192.168.1.5] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s33CoT7I012491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 3 Apr 2014 08:50:30 -0400 Message-ID: <533D5912.9020808@cornell.edu> Date: Thu, 03 Apr 2014 08:50:26 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils References: <533C5FEB.7090408@cornell.edu> <83d2gzbhlc.fsf@gnu.org> <838urnbg84.fsf@gnu.org> <533C8CF6.3060004@cornell.edu> <837g77b021.fsf@gnu.org> In-Reply-To: <837g77b021.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 17176 Cc: 17176@debbugs.gnu.org, dancol@dancol.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 4/2/2014 10:48 PM, Eli Zaretskii wrote: > Having a manifest is a system recommendation, not an Emacs invention. I understand that, but I see no reason for the cygw32 build of emacs to be treated specially (and even differently from the X11 and noX builds on Cygwin). With my patch, Cygwin users who build emacs with an old Binutils will have no manifest, like almost all other Cygwin applications, while those who use the new Binutils will get the new "standard" Cygwin manifest (which includes compatibility with Windows 8.1). Ken From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 03 15:12:18 2014 Received: (at 17176-done) by debbugs.gnu.org; 3 Apr 2014 19:12:18 +0000 Received: from localhost ([127.0.0.1]:34743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVn3i-0001kq-0K for submit@debbugs.gnu.org; Thu, 03 Apr 2014 15:12:18 -0400 Received: from limerock03.mail.cornell.edu ([128.84.12.34]:49994) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVn3e-0001kd-Uk for 17176-done@debbugs.gnu.org; Thu, 03 Apr 2014 15:12:15 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s33JCEDG015146 for <17176-done@debbugs.gnu.org>; Thu, 3 Apr 2014 15:12:14 -0400 Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s33JCDnb024667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for <17176-done@debbugs.gnu.org>; Thu, 3 Apr 2014 15:12:14 -0400 Message-ID: <533DB2A6.3070404@cornell.edu> Date: Thu, 03 Apr 2014 15:12:38 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: 17176-done@debbugs.gnu.org Subject: Re: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils References: <533C5FEB.7090408@cornell.edu> <83d2gzbhlc.fsf@gnu.org> <838urnbg84.fsf@gnu.org> <533C8CF6.3060004@cornell.edu> <837g77b021.fsf@gnu.org> <533D5912.9020808@cornell.edu> In-Reply-To: <533D5912.9020808@cornell.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 17176-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Version: 24.4 Patch applied as rev 116901 on the emacs-24 branch. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 09 17:21:11 2014 Received: (at 17176) by debbugs.gnu.org; 9 Apr 2014 21:21:11 +0000 Received: from localhost ([127.0.0.1]:39365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXzvi-0007aP-RE for submit@debbugs.gnu.org; Wed, 09 Apr 2014 17:21:11 -0400 Received: from limerock01.mail.cornell.edu ([128.84.12.99]:57214) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXzvg-0007a7-7I for 17176@debbugs.gnu.org; Wed, 09 Apr 2014 17:21:09 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s39LL1r2030620; Wed, 9 Apr 2014 17:21:01 -0400 Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s39LL0ZN028604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 9 Apr 2014 17:21:00 -0400 Message-ID: <5345B9E1.1050203@cornell.edu> Date: Wed, 09 Apr 2014 17:21:37 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Angelo Graziosi , Eli Zaretskii Subject: Re: Wrong scroll bar in cygw32 build of emacs-24? References: <53440320.4050802@alice.it> <834n237ra0.fsf@gnu.org> <53447130.70107@alice.it> <5344AE8A.8010208@cornell.edu> <83lhvf5if3.fsf@gnu.org> <53455BF9.9090604@cornell.edu> <83ioqi5yrc.fsf@gnu.org> <5345885B.9060600@alice.it> In-Reply-To: <5345885B.9060600@alice.it> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 17176 Cc: 17176@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) I've reverted most of my "fix" of Bug#17176 (r116930 on the emacs-24 branch). The entire problem that led to the bug report was a binutils bug (problems merging Windows resources), not an emacs bug. Ken From unknown Tue Jun 24 01:40:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 08 May 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator