From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs on MSYS2 Date: Sat, 16 Apr 2016 00:11:30 +0200 Message-ID: <87vb3iwmi5.fsf@wanadoo.es> References: <56CCD91E.6070507@alice.it> <570EC198.5090407@alice.it> <570EF300.3050104@cs.ucla.edu> <570F4EC7.3060403@alice.it> <83twj4dx7q.fsf@gnu.org> <878u0gyyge.fsf_-_@wanadoo.es> <570FC0BC.8030709@cs.ucla.edu> <874mb4yxqi.fsf@wanadoo.es> <83potsduv5.fsf@gnu.org> <87vb3kxho5.fsf@wanadoo.es> <83mvowdru7.fsf@gnu.org> <87r3e8x88h.fsf@wanadoo.es> <571102B8.8010004@cs.ucla.edu> <87inziyjb5.fsf@wanadoo.es> <57112544.5050508@cs.ucla.edu> <87d1pqycsz.fsf@wanadoo.es> <57113DC4.4010303@cs.ucla.edu> <878u0ey81k.fsf@wanadoo.es> <83lh4ed4ht.fsf@gnu.org> <87zisuwrng.fsf@wanadoo.es> <868u0ea6zm.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1460758329 9782 80.91.229.3 (15 Apr 2016 22:12:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2016 22:12:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 00:12:01 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1arBy2-0004B4-7T for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 00:11:58 +0200 Original-Received: from localhost ([::1]:43138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arBy1-0003xn-LK for ged-emacs-devel@m.gmane.org; Fri, 15 Apr 2016 18:11:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arBxo-0003vY-1v for emacs-devel@gnu.org; Fri, 15 Apr 2016 18:11:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arBxk-00008x-RS for emacs-devel@gnu.org; Fri, 15 Apr 2016 18:11:43 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arBxk-00008t-KV for emacs-devel@gnu.org; Fri, 15 Apr 2016 18:11:40 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1arBxh-0003vN-8c for emacs-devel@gnu.org; Sat, 16 Apr 2016 00:11:37 +0200 Original-Received: from 120.red-88-22-75.staticip.rima-tde.net ([88.22.75.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Apr 2016 00:11:37 +0200 Original-Received: from ofv by 120.red-88-22-75.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Apr 2016 00:11:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 120.red-88-22-75.staticip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) Cancel-Lock: sha1:+lX2EexgYo/AejxBYMSpJmOXDYs= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:202976 Archived-At: Stephen Leake writes: > Óscar Fuentes writes: > >> Eli Zaretskii writes: >> >>> All I say is that I urge people to use the official build procedure. >>> If you or someone else wants to talk to the author, or invite him/her >>> to discuss this here, that's a bonus. >> >> I'll like to remove that stuff from the PKGBUILD and submit a build >> request (which will be accepted, I'm sure) but first I need to test the >> build on x86 and x86_64, and that means quite a lot of time with my >> (non-)hardware and scarce Windows usage. I hope to get it ready before >> Emacs 25 is released. > > If it would help, I also build Emacs with MSYS2. I have not been using > the PKGBUILD script, but it doesn't look hard. > > So I can help with testing. I have Windows 8.1 64 bit, with msys2 > mingw64 installed; I can install mingw32 if we want to test there. Thank you. You need the PKGBUILD and accompanying files. You can check out MINGW-Packages (https://github.com/Alexpux/MINGW-packages) or copy the files of the mingw-w64-emacs-git directory from that repo on a local directory. Remove from PKGBUILD all CPPFLAGS, CFLAGS and LDFLAGS variables on the `build' function. Also remove all `configure' paramaters except --prefix and --build. From a MSYS2 shell (not a MinGWXX shell), cd to the directory that contains the PKBUILD file and execute makepkg-mingw. Probably you will need to execute `makepkg-mingw -s' for installing the dependencies. Taking a look at `makepkg-mingw --help' will be useful. If the build goes well, this will create two pacman package files, (32 and 64 bits). Install one of both packages with pacman -U and then you should have emacs installed along the rest of your Mingw-w64 packages distributed with MSYS2. Use it for some time. You can also try to see what happens if you omit the patches. Remove image.c.diff from `source' and the corresponding SHA hash from `sha256sums' (the hashes of the files are listed in the same order as in `sources'). See if the build breaks. See if imagemagick is detected. See if you can use imagemagick from the resulting package. Report your results. Ditto for lread.c.diff and locating Emacs .el files from Emacs. > One thing I'd like to fix; my build of emacs 25 does not display png > files. The binary pretest install does. I'd like to figure out the > difference. libpng is listed as an optional dependency, you need to install it explicitly if you install the emacs binary package, but the build process should download and install it when you build on your machine. For the record, my old emacs-25 MSYS2 build can display png images fine.