From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich =?UTF-8?Q?M=C3=BCller?= Newsgroups: gmane.emacs.bugs Subject: bug#15297: 24.3.50; Compression of installed .el files should be configurable Date: Sat, 7 Sep 2013 08:57:27 +0200 Message-ID: <21034.52823.580662.797952@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378539195 11382 80.91.229.3 (7 Sep 2013 07:33:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2013 07:33:15 +0000 (UTC) To: 15297@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 07 09:33:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VID1C-00079T-0y for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Sep 2013 09:33:18 +0200 Original-Received: from localhost ([::1]:41025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VID1B-0005mp-Dx for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Sep 2013 03:33:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VID12-0005mI-C0 for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2013 03:33:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VID0x-0000kl-36 for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2013 03:33:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VID0w-0000kh-Vo for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2013 03:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VID0w-0001LL-C4 for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2013 03:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich =?UTF-8?Q?M=C3=BCller?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Sep 2013 07:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13785391785151 (code B ref -1); Sat, 07 Sep 2013 07:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Sep 2013 07:32:58 +0000 Original-Received: from localhost ([127.0.0.1]:45915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VID0r-0001L0-F0 for submit@debbugs.gnu.org; Sat, 07 Sep 2013 03:32:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58597) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VID0o-0001Kk-EZ for submit@debbugs.gnu.org; Sat, 07 Sep 2013 03:32:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VID0d-0000bN-IP for submit@debbugs.gnu.org; Sat, 07 Sep 2013 03:32:49 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VID0d-0000b5-Er for submit@debbugs.gnu.org; Sat, 07 Sep 2013 03:32:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VID0Y-0005kT-Ea for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2013 03:32:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VID0T-0000Ka-Fr for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2013 03:32:38 -0400 Original-Received: from a1www.kph.uni-mainz.de ([134.93.134.1]:35702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VID0T-0000DT-2W for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2013 03:32:33 -0400 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.7/8.13.4) with ESMTP id r876vSWv019081 for ; Sat, 7 Sep 2013 08:57:28 +0200 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.6/8.14.2) with ESMTP id r876vS2M025111; Sat, 7 Sep 2013 08:57:28 +0200 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.6/8.14.6/Submit) id r876vRHv025107; Sat, 7 Sep 2013 08:57:27 +0200 X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) X-MIME-Autoconverted: from 8bit to quoted-printable by a1www.kph.uni-mainz.de id r876vSWv019081 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78088 Archived-At: Tags: patch Currently "make install" compresses the installed .el files depending on the availability of the gzip program. In Gentoo we make this compression configurable; with modern disk sizes the additional disk footprint of 34 MiB is normally not an issue. Since a long time Gentoo uses the following nasty hack for this: However, it would be much cleaner if the upstream build system would allow to disable compression. The patch below adds a --without-compress-lisp option for this. I've tested it on an x86_64-pc-linux-gnu system and it works fine for me. --- emacs-orig/ChangeLog +++ emacs/ChangeLog @@ -1,3 +1,11 @@ +2013-09-06 Ulrich M=FCller + + * configure.ac (--without-compress-lisp): New option, suppresses + compression of installed .el files. + (GZIP_LISP): New variable. + * Makefile.in (GZIP_LISP): New, set by configure. + (install-arch-indep): Test for GZIP_LISP when compressing .el files. + 2013-09-05 Dmitry Antipov =20 Make --without-x compatible with --enable-gcc-warnings. --- emacs-orig/configure.ac +++ emacs/configure.ac @@ -264,6 +264,14 @@ ## Makefile.in needs the cache file name. AC_SUBST(cache_file) =20 +OPTION_DEFAULT_ON([compress-lisp],[don't compress the installed .el file= s]) +if test $with_compress_lisp =3D yes; then + GZIP_LISP=3Dyes +else + GZIP_LISP=3D +fi +AC_SUBST(GZIP_LISP) + ## This is an option because I do not know if all info/man support ## compressed files, nor how to test if they do so. OPTION_DEFAULT_ON([compress-info],[don't compress the installed Info pag= es]) --- emacs-orig/Makefile.in +++ emacs/Makefile.in @@ -257,8 +257,10 @@ # Create a link to a file in the same directory as the target. LN_S_FILEONLY =3D @LN_S_FILEONLY@ =20 -# We use gzip to compress installed .el files. +# We use gzip to compress some installed files. GZIP_PROG =3D @GZIP_PROG@ +# If non-nil, compress the installed .el files. +GZIP_LISP =3D @GZIP_LISP@ # If non-nil, gzip the installed Info and man pages. GZIP_INFO =3D @GZIP_INFO@ =20 @@ -613,7 +615,7 @@ ${write_subdir} subdir=3D$(DESTDIR)${datadir}/emacs/site-lisp ; \ ${write_subdir} || true - [ -z "${GZIP_PROG}" ] || \ + if [ -n "${GZIP_LISP}" ] && [ -n "${GZIP_PROG}" ]; then \ ( echo "Compressing *.el ..." ; \ unset CDPATH; \ thisdir=3D`/bin/pwd`; \ @@ -623,7 +625,8 @@ for f in `find . -name "*.elc" -print`; do \ ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ done ; \ - done ) + done ) ; \ + fi -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS} =20 ## The above chmods are needed because "umask 022; tar ..." is not