From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Meier Newsgroups: gmane.emacs.bugs Subject: [PATCH] src/makefile.w32-in Date: Wed, 16 Jan 2008 15:26:30 -0500 (EST) Message-ID: <200801162026.m0GKQUaa000801@member.newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="==========_1519000792==_" X-Trace: ger.gmane.org 1200515301 26952 80.91.229.12 (16 Jan 2008 20:28:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2008 20:28:21 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 21:28:38 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JFEsG-0007vg-Cv for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2008 21:28:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFErr-00023k-Jp for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2008 15:28:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFErk-0001zI-3I for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2008 15:28:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFEri-0001wH-LS for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2008 15:28:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFEri-0001w4-DY for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2008 15:28:02 -0500 Original-Received: from smtp1.newsguy.com ([64.209.0.71]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JFErh-0001SC-WC for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2008 15:28:02 -0500 Original-Received: from member.newsguy.com (wmeier@member.newsguy.com [64.209.0.67]) by smtp1.newsguy.com (8.13.8/8.13.8) with ESMTP id m0GKQUFd000805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 16 Jan 2008 12:26:30 -0800 (PST) (envelope-from wmeier@member.newsguy.com) Original-Received: (from wmeier@localhost) by member.newsguy.com (8.13.8/8.13.8/Submit) id m0GKQUaa000801 for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2008 15:26:30 -0500 (EST) (envelope-from wmeier) X-Mailer: Direct Read Email X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.8 (RFC1323-) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17357 Archived-At: This is a multi-part message in MIME format. --==========_1519000792==_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit After doing a build of emacs on Windows with MinGW (configure, make bootstrap, .., make install) I found that then doing a make clean, make failed. Specifically: there was an "access denied" message for temacs.exe during the make step. (I'm new to building emacs on Windows but presumably a make clean, make after the original build should work). After a little poking around I discovered that the problem is that during the build a dummy temacs.exe file is being created with only rw permissions (see lib-src/makefile). Later in the build, when temacs.exe is created from temacs.bin by using addsection, apparently the permissions (rw) from the existing temacs.exe file are kept thus resulting in a temacs.exe file without executable permission. So: the simple fix I've done is to delete any existing temacs.exe file just before using addsection to create the file. The attachment with a fix is a diff -u against the current HEAD src/makefile.w32-in (revision 1.56). Bill Meier --==========_1519000792==_ Content-Type: application/octet-stream; name="src-makefile-w32-in-patch.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="src-makefile-w32-in-patch.diff" LS0tIHNyYy9tYWtlZmlsZS53MzItaW4tb3JpZwkyMDA4LTAxLTE2IDE0OjM4OjU2LjU3NTYwNjQw MCAtMDUwMAorKysgc3JjL21ha2VmaWxlLnczMi1pbgkyMDA4LTAxLTE2IDE0OjQ0OjU2Ljc2MzUz MTIwMCAtMDUwMApAQCAtMTY4LDExICsxNjgsMTYgQEAKICMgTm90ZSB0aGUgZXh0cmEgcG9zdC1s aW5rIHN0ZXAgdG8gaW5zZXJ0IGEgc3RhdGljIHByZWxvYWQgaGVhcCBzZWN0aW9uLgogIyBJZiBw cmVsb2FkIHJ1bnMgb3V0IG9mIG1lbW9yeSwgaW5jcmVhc2UgdGhlIGxhc3QgYXJndW1lbnQgdG8g YWRkc2VjdGlvbgogIyAoaXQgaXMgdGhlIHByZWxvYWQgaGVhcCBzaXplIGluIE1CKS4KKyMgTm90 ZSB0aGF0IGEgKHBvc3NpYmx5IGR1bW15KSB0ZW1hY3MuZXhlIGlzIGRlbGV0ZWQgYmVmb3JlIHRo ZSBwb3N0LWxpbmsgc3RlcC4KKyMgIFRoaXMgaXMgcmVxdWlyZWQgc28gdGhhdCB0aGUgcGVybWlz c2lvbnMgZm9yIHRoZSBuZXcgdGVtYWNzLmV4ZSBhcmUgbm90IGluaGVyaXRlZAorIyAgZnJvbSBh biBleGlzdGluZyBvbmUgKHdoaWNoIG1pZ2h0IG5vdCBoYXZlICdleGVjdXRhYmxlJyBwZXJtaXNz aW9uKS4gCisjICAoU2VlIGxpYi1zcmMgbWFrZWZpbGUpLgogIwogdGVtYWNzOiAgICAgICAgIHN0 YW1wX0JMRCAkKFRFTUFDUykKICQoVEVNQUNTKTogICAgICAkKFRMSUIwKSAkKFRMSUIxKSAkKFRM SUJXMzIpICQo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