GNU bug report logs - #1335
Arch-dependant data should not be installed in the app bundle

Previous Next

Packages: ns, emacs;

Reported by: Yavor Doganov <yavor <at> gnu.org>

Date: Wed, 12 Nov 2008 15:20:03 UTC

Severity: normal

Tags: patch

Merged with 5051

Fixed in version 24.0.92

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1335 in the body.
You can then email your comments to 1335 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, yavor <at> gnu.org, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1335; Package emacs,ns. Full text and rfc822 format available.

Acknowledgement sent to Yavor Doganov <yavor <at> gnu.org>:
New bug report received and forwarded. Copy sent to yavor <at> gnu.org, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Yavor Doganov <yavor <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Arch-dependant data should not be installed in the app bundle
Date: Wed, 12 Nov 2008 17:12:00 +0200
Package: emacs,ns

I see no reason to install arch-dependent data in the app bundle when
--ns-disable-ns-self-contained is passed.  This only causes trouble
for distributors (who typically build several variants -- GTK+, Lucid,
-nox and now the GNUstep port) which share the same common binaries
(in Debian shipped in the emacsXX-bin-common package).

This also doesn't make sense for mortal users who wish to install both
a GTK+ and GNUstep Emacs under the same prefix; a perfectly valid
scenario.

2008-11-12  Yavor Doganov  <yavor <at> gnu.org>  (tiny change)

	* configure.in: Under NS, set `exec_prefix' and `libexecdir'
	relative to `ns_appbindir' only if Emacs is configured for a
	self-contained app.


Index: configure.in
===================================================================
RCS file: /sources/emacs/emacs/configure.in,v
retrieving revision 1.575
diff -u -u -r1.575 configure.in
--- configure.in	7 Nov 2008 06:56:39 -0000	1.575
+++ configure.in	12 Nov 2008 14:56:06 -0000
@@ -1274,10 +1274,10 @@
   with_xft=no
   with_freetype=no
   # set up packaging dirs
-  exec_prefix=${ns_appbindir}
-  libexecdir=${ns_appbindir}/libexec
   if test "${EN_NS_SELF_CONTAINED}" = yes; then
      prefix=${ns_appresdir}
+     exec_prefix=${ns_appbindir}
+     libexecdir=${ns_appbindir}/libexec
   fi
 fi
 CFLAGS="$tmp_CFLAGS"





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1335; Package emacs,ns. Full text and rfc822 format available.

Acknowledgement sent to Adrian Robert <adrian.b.robert <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #10 received at 1335 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Adrian Robert <adrian.b.robert <at> gmail.com>
To: 1335 <at> debbugs.gnu.org
Cc: Yavor Doganov <yavor <at> gnu.org>
Subject: #1335 - Arch-dependant data should not be installed in the app bundle - Emacs bug report logs
Date: Mon, 24 Nov 2008 22:29:20 -0500
Hi,

Does this patch not cause an error for you when lines 416-417 in  
Makefile.in (under install-arch-dep target) are executed?  Should ' if  
test -d ' checks similer to the preceding lines be added?

thanks,
Adrian







Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#1335; Package emacs,ns. (Fri, 26 Jun 2009 13:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yavor Doganov <yavor <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Fri, 26 Jun 2009 13:50:04 GMT) Full text and rfc822 format available.

Message #15 received at 1335 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Yavor Doganov <yavor <at> gnu.org>
To: Adrian Robert <adrian.b.robert <at> gmail.com>, 1335 <at> debbugs.gnu.org
Cc: Yavor Doganov <yavor <at> gnu.org>
Subject: Re: bug#1335: #1335 - Arch-dependant data should not be installed in	the app bundle - Emacs bug report logs
Date: Fri, 26 Jun 2009 16:41:50 +0300
tags 1335 + patch
thanks

At Mon, 24 Nov 2008 22:29:20 -0500,
Adrian Robert wrote:
> Does this patch not cause an error for you when lines 416-417 in  
> Makefile.in (under install-arch-dep target) are executed?

Eek!  Not merely an error, the entire working copy is being deleted...
I haven't noticed this because I run "make install" when the tree is
configured with --without-x so these commands are not being run at all
as `ns_appdir' is undefined.

Here's an updated patch, hopefully properly tested this time.


2009-06-26  Yavor Doganov  <yavor <at> gnu.org>

	Do not install arch-dependent files in the app bundle if
	--disable-ns-self-contained is requested.
	* configure.in: Define `exec_prefix' and `libexecdir' relative to
	`ns_appbindir' only if configured for a self-contained app.
	* Makefile.in (install-arch-dep): Test for the existence of
	libexec in the Emacs.app bundle before executing commands.


Index: Makefile.in
===================================================================
RCS file: /sources/emacs/emacs/Makefile.in,v
retrieving revision 1.374
diff -u -r1.374 Makefile.in
--- Makefile.in	4 May 2009 01:13:20 -0000	1.374
+++ Makefile.in	26 Jun 2009 13:34:48 -0000
@@ -429,10 +429,10 @@
 	    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/* .) ; \
+	  ( cd ${ns_appbindir} ; \
+	    if test -d libexec; then cd libexec ; dir=emacs/*/*/* ; \
+	    $(MV_DIRS); rm -fr emacs; \
+	    cd ../bin; rm -f emacs emacs-23* ; ln -sf ../libexec/* . ; fi) ; \
 	else true ; fi
 
 ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html
--- configure.in	19 Jun 2009 17:10:51 -0000	1.598
+++ configure.in	26 Jun 2009 13:35:00 -0000
@@ -1270,10 +1270,10 @@
   window_system=nextstep
   with_xft=no
   # set up packaging dirs
-  exec_prefix=${ns_appbindir}
-  libexecdir=${ns_appbindir}/libexec
   if test "${EN_NS_SELF_CONTAINED}" = yes; then
      prefix=${ns_appresdir}
+     exec_prefix=${ns_appbindir}
+     libexecdir=${ns_appbindir}/libexec
   fi
 fi
 CFLAGS="$tmp_CFLAGS"



Tags added: patch Request was from Yavor Doganov <yavor <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 26 Jun 2009 13:50:09 GMT) Full text and rfc822 format available.

Merged 1335 5051. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 17 Nov 2011 19:39:02 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 22 Nov 2011 02:01:01 GMT) Full text and rfc822 format available.

Notification sent to Yavor Doganov <yavor <at> gnu.org>:
bug acknowledged by developer. (Tue, 22 Nov 2011 02:01:02 GMT) Full text and rfc822 format available.

Message #24 received at 1335-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 1335-done <at> debbugs.gnu.org
Subject: Re: bug#1335: Arch-dependant data should not be installed in the app
	bundle
Date: Mon, 21 Nov 2011 20:59:35 -0500
Version: 24.0.92

I am sorry for the huge delay. This is installed now.




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 22 Nov 2011 02:01:02 GMT) Full text and rfc822 format available.

Notification sent to Ulrich Mueller <ulm <at> gentoo.org>:
bug acknowledged by developer. (Tue, 22 Nov 2011 02:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Dec 2011 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.