From ulm@kph.uni-mainz.de Thu Nov 26 11:29:18 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 26 Nov 2009 19:29:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8, URIBL_BLACK autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQJTGdJ025018 for ; Thu, 26 Nov 2009 11:29:18 -0800 Received: from mx10.gnu.org ([199.232.76.166]:39975) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NDk1j-0001kt-Ix for emacs-pretest-bug@gnu.org; Thu, 26 Nov 2009 14:29:15 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NDk1h-0003I3-1u for emacs-pretest-bug@gnu.org; Thu, 26 Nov 2009 14:29:15 -0500 Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:34655) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDk1g-0003DX-Io for emacs-pretest-bug@gnu.org; Thu, 26 Nov 2009 14:29:12 -0500 Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id nAQJSvXR017540 for ; Thu, 26 Nov 2009 20:28:59 +0100 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.3/8.14.2) with ESMTP id nAQJStMf020086; Thu, 26 Nov 2009 20:28:55 +0100 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.3/8.14.3/Submit) id nAQJStiU020083; Thu, 26 Nov 2009 20:28:55 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19214.55020.176263.579762@a1i15.kph.uni-mainz.de> Date: Thu, 26 Nov 2009 20:28:44 +0100 To: emacs-pretest-bug@gnu.org Subject: 23.1.50; Issues with Cocoa port on OS X X-Mailer: VM 8.0.12 under 23.1.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) This is a forward of Gentoo bug 268793, While trying to package Emacs for Gentoo on OS X (i686-apple-darwin9) with "configure --with-ns --disable-ns-self-contained", we observed the following two issues: 1) configure.in contains the following code: if test "${HAVE_NS}" = yes; then # [...] # set up packaging dirs exec_prefix=${ns_appbindir} libexecdir=${ns_appbindir}/libexec if test "${EN_NS_SELF_CONTAINED}" = yes; then prefix=${ns_appresdir} fi fi Now on Gentoo / OS X _not_ everything should be put inside the .app, but the installation should follow the lines of a traditional Unix install. That means that exec_prefix and libexecdir should be set to /usr and /usr/libexec, respectively. Unfortunately, this is not possible because the above code unconditionally overrides the two variables, ignoring any paths that are explicitly set by the --exec-prefix and --libexecdir configure options. I suggest that the two assignments are moved into the block of the following "if" statement, so that they are overridden only in the "self-contained" case. 2) The top-level Makefile.in contains the following "gem" in the install-arch-dep target: if test "${ns_appdir}" != ""; then \ ( cd ${ns_appresdir} ; \ if test -d share/emacs ; then dir=share/emacs/*/*; $(MV_DIRS); fi;\ if test -d share/info ; then dir=share/info; $(MV_DIRS) ; fi ; \ rm -fr share ) ; \ ( cd ${ns_appbindir}/libexec ; dir=emacs/*/*/* ; $(MV_DIRS); \ rm -fr emacs ) ; \ ( cd ${ns_appbindir}/bin ; rm -f emacs emacs-23* ; \ ln -sf ../libexec/* .) ; \ else true ; fi where MV_DIRS is defined a few lines above as follows: MV_DIRS = for i in $$dir; do rm -fr `basename "$$i"` ; mv "$$i" . ; done As can be seen from the build log at this code fails in a horrible way, thereby removing the complete contents of the build directory. The relevant lines of the log are the following: /Users/tetsushi/Gentoo26/bin/bash: line 5: cd: /Users/tetsushi/Gentoo26/var/tmp/portage/app-editors/emacs-23.1/work/emacs-23.1/nextstep/Emacs.app/Contents/MacOS/libexec: No such file or directory mv: cannot stat `emacs/*/*/*': No such file or directory What happens is that the "cd ${ns_appbindir}/libexec" command fails. Note that there is no checking for errors; so make continues, staying in the top-level directory. Of course it cannot find any subdirectory named "emacs" there. Hence, MV_DIRS will call basename on unexpanded "emacs/*/*/*", which will return "*" as target for "rm -fr" (and remember, we are still in the top-level dir). Ugh. (Unfortunately, I don't have access to an OS X system, so for lack of testing I can't prepare a patch myself.) Configure options are as follows: ./configure \ --prefix=/Users/tetsushi/Gentoo26/usr \ --build=i686-apple-darwin9 \ --host=i686-apple-darwin9 \ --mandir=/Users/tetsushi/Gentoo26/usr/share/man \ --infodir=/Users/tetsushi/Gentoo26/usr/share/info \ --datadir=/Users/tetsushi/Gentoo26/usr/share \ --sysconfdir=/Users/tetsushi/Gentoo26/etc \ --localstatedir=/Users/tetsushi/Gentoo26/var/lib \ --program-suffix=-emacs-23 \ --infodir=/Users/tetsushi/Gentoo26/usr/share/info/emacs-23 \ --without-sound \ --without-x \ --with-ns \ --disable-ns-self-contained \ --without-hesiod \ --without-kerberos \ --without-kerberos5 \ --without-gpm \ --without-dbus Configured for `i686-apple-darwin9'. Where should the build process find the source code? /Users/tetsushi/Gentoo26/var/tmp/portage/app-editors/emacs-23.1/work/emacs-23.1 What operating system and machine description files should Emacs use? `s/darwin.h' and `m/intel386.h' What compiler should emacs be built with? i686-apple-darwin9-gcc -O2 -march=nocona -pipe Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? no What window system should Emacs use? nextstep What toolkit should Emacs use? none Where do we find X Windows header files? NONE Where do we find X Windows libraries? NONE Does Emacs use -lXaw3d? no Does Emacs use -lXpm? no Does Emacs use -ljpeg? no Does Emacs use -ltiff? no Does Emacs use a gif library? no Does Emacs use -lpng? no Does Emacs use -lrsvg-2? no Does Emacs use -lgpm? no Does Emacs use -ldbus? no Does Emacs use -lfreetype? no Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs use toolkit scroll bars? yes From rgm@gnu.org Sun Nov 29 22:58:37 2009 Received: (at control) by emacsbugs.donarmstrong.com; 30 Nov 2009 06:58:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,MURPHY_DRUGS_REL8,ONEWORD, VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAU6waJ5006507 for ; Sun, 29 Nov 2009 22:58:37 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1NF0DT-0005PI-E2; Mon, 30 Nov 2009 01:58:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19219.27931.358249.789265@fencepost.gnu.org> Date: Mon, 30 Nov 2009 01:58:35 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: cyan X-Ran: VL]'*R)c=$t~c-8qTG1VR#jSJ6Ti3os:"[0M<=6/G~Z4_:e{5yj'u.4laVU+liw:@R[2{^ X-Debbugs-No-Ack: yes reassign 5041 spam reassign 5044 spam reassign 5045 spam reassign 5048 spam reassign 5053 spam reassign 5057 spam reassign 5063 spam reassign 5065 spam reassign 5066 spam reassign 5073 spam reassign 5075 spam merge 5052 5043 severity 5052 wishlist tags 5052 patch reassign 5070 emacs,rmail reassign 5051 emacs,ns reassign 5055 emacs,etags From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 17 14:38:44 2011 Received: (at control) by debbugs.gnu.org; 17 Nov 2011 19:38:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RR7nF-0002AG-6R for submit@debbugs.gnu.org; Thu, 17 Nov 2011 14:38:42 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RR7nC-0002A7-JW for control@debbugs.gnu.org; Thu, 17 Nov 2011 14:38:39 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RR7mL-0004WO-KX for control@debbugs.gnu.org; Thu, 17 Nov 2011 14:37:45 -0500 Date: Thu, 17 Nov 2011 14:37:45 -0500 Message-Id: Subject: control message for bug 5051 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) merge 1335 5051 From unknown Mon Jun 23 02:23:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 20 Dec 2011 12:24:03 +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