From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.devel Subject: Building emacs with and without X -- packaging question. Date: Fri, 31 May 2002 12:25:09 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <87u1oo6xhm.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1022866130 23535 127.0.0.1 (31 May 2002 17:28:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 31 May 2002 17:28:50 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17DqCo-00067U-00 for ; Fri, 31 May 2002 19:28:50 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17DqWB-0008B9-00 for ; Fri, 31 May 2002 19:48:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17DqBL-0003nx-00; Fri, 31 May 2002 13:27:19 -0400 Original-Received: from dsl-209-87-109-2.constant.com ([209.87.109.2] helo=defaultvalue.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Dq9J-0003j9-00 for ; Fri, 31 May 2002 13:25:13 -0400 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 1E8931C73 for ; Fri, 31 May 2002 12:25:13 -0500 (CDT) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 7487BCBA; Fri, 31 May 2002 12:25:09 -0500 (CDT) Original-To: emacs-devel@gnu.org Original-Lines: 45 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4529 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4529 I've had a *long* standing request wrt the Debian packages that I provide a non-X version that doesn't depend on any of the X packages. I finally sat down to accomodate this the other day and managed to reworked things to produce emacs21, emacs21-nox, and emacs21-el packages, emacs21-nox being the new one, built with --with-x=no. To be completely safe, the way I did this was to configure and build Emacs twice, once with --with-x=no, and once without. Then I took the two seprarate install trees and used those to create the two emacs21 and emacs21-nox binary packages, only one of which you can have installed at a time. The problem with this approach is that it requires two full Emacs builds (and since we use bootstrap, it's a long build), and it roughly doubles the storage required for the resulting packages. James pointed out to me that now that Debian supports over 10 architectures, some of which are very slow builders, this will consume a lot more archive space and build time. An alternate approach would be to still build Emacs twice, but put all the bits that the two trees have in common into an emacs21-common package. Then the emacs21 and emacs21-nox packages might not need to be much more than the actual application binary. However this wouldn't be safe if the files in the with and without-x install trees are likely to be different in important ways (i.e. different sets of files, binary incompatibilities in .elc files, etc.). Another way it might not be safe is if add-on emacs packages, like calc, psgml, etc. could detect whether they were being compiled by an X or non-X Emacs and generate differing .elc files as a result. (This wouldn't be safe in the current Debian arrangement, if I was going to try to allow emacs21 and emacs21-nox to be installed simultaneously, but could be made so, if needed.) Accordingly I wanted to check with you upstream and see if you considered this a viable approach, or if you had a preferred alternative. Thanks -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD