From: Stephen Hassard <steve@hassard.net>
To: Glenn Morris <rgm@gnu.org>
Cc: 17971@debbugs.gnu.org
Subject: bug#17971: 24.3.92; Patch to fix el compression on RHEL/CentOS 7
Date: Tue, 8 Jul 2014 08:50:52 -0700 [thread overview]
Message-ID: <CAAicSydqiBKCp0HFrp+1awLSsMYgC1JPgafu6bTrDMQYvWDo4g@mail.gmail.com> (raw)
In-Reply-To: <fir41widxx.fsf@fencepost.gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 1701 bytes --]
Here's the relevant output from the 'make install' on CentOS 7:
----
[ -z "/usr/bin/gzip" ] || { \
echo "Compressing *.el ..." && \
cd "/home/shassard/opt/emacs/share/emacs/24.3.92/lisp" && \
find . -name '*.elc' -exec /bin/sh -c \
'/usr/bin/gzip -9n `expr "$1" : "\\(.*\\)c"`' dummy '{}' ';'; \
}
Compressing *.el ...
find: ‘./progmodes/make-mode.el’: No such file or directory
find: ‘./progmodes/m4-mode.el’: No such file or directory
find: ‘./progmodes/cc-fonts.el’: No such file or directory
find: ‘./progmodes/cc-engine.el’: No such file or directory
find: ‘./progmodes/idlw-complete-structtag.el’: No such file or directory
find: ‘./progmodes/meta-mode.el’: No such file or directory
find: ‘./progmodes/bat-mode.el’: No such file or directory
find: ‘./progmodes/gud.el’: No such file or directory
find: ‘./progmodes/simula.el’: No such file or directory
find: ‘./progmodes/autoconf.el’: No such file or directory
find: ‘./progmodes/prog-mode.el’: No such file or directory
----
make immediately fails after this point.
I've attached a revised patch that adds the -9n flag to the gzip command
and switch back to -exec for find.
On Mon, Jul 7, 2014 at 11:04 PM, Glenn Morris <rgm@gnu.org> wrote:
> Stephen Hassard wrote:
>
> > The current alpha builds are failing during 'make install' while
> > performing the .elc compression on CentOS 7.
>
> Please tell us how it fails.
>
> > I've cleaned up the find command in the Makefile and have a patch that
> > fixes the problem while retaining function on Ubuntu/Debian. Please find
> > it attached.
>
> Sadly I don't think -execdir is portable.
>
[-- Attachment #1.2: Type: text/html, Size: 2248 bytes --]
[-- Attachment #2: 0001-Fix-.el-compression-on-CentOS-7.patch --]
[-- Type: text/x-diff, Size: 949 bytes --]
From 50c0162ec4fd22a757df69fabe8202685093ca74 Mon Sep 17 00:00:00 2001
From: Stephen Hassard <steve@hassard.net>
Date: Tue, 8 Jul 2014 08:46:54 -0700
Subject: [PATCH] Fix .el compression on CentOS 7
---
Makefile.in | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 76a0304..f4fd4aa 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -614,9 +614,8 @@ install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA}
${write_subdir} || true
[ -z "${GZIP_PROG}" ] || { \
echo "Compressing *.el ..." && \
- cd "$(DESTDIR)${lispdir}" && \
- find . -name '*.elc' -exec $(SHELL) -c \
- '${GZIP_PROG} -9n `expr "$$1" : "\\(.*\\)c"`' dummy '{}' ';'; \
+ find "$(DESTDIR)${lispdir}" -name '*.el' \
+ -exec ${SHELL} -c 'test -f {}c' \; -exec ${GZIP_PROG} -9n {} \; ; \
}
-chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS}
--
1.8.3.1
next prev parent reply other threads:[~2014-07-08 15:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 5:05 bug#17971: 24.3.92; Patch to fix el compression on RHEL/CentOS 7 Stephen Hassard
2014-07-08 6:04 ` Glenn Morris
2014-07-08 15:50 ` Stephen Hassard [this message]
2014-07-09 1:10 ` Glenn Morris
2014-07-09 4:07 ` Stephen Hassard
2014-07-09 4:16 ` Stephen Hassard
2014-07-09 13:56 ` Stephen Hassard
2014-07-09 16:34 ` Glenn Morris
2014-07-09 17:29 ` Stephen Hassard
2014-07-10 16:06 ` Glenn Morris
2014-07-10 17:14 ` Paul Eggert
2014-07-10 18:06 ` Glenn Morris
2014-07-10 18:49 ` Paul Eggert
2014-07-11 6:37 ` Paul Eggert
[not found] ` <CAAicSydhXppOY=uqe90yZNDMszY5VnJb632FZWH6NzJe+bH9Zg@mail.gmail.com>
2014-07-11 17:36 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAicSydqiBKCp0HFrp+1awLSsMYgC1JPgafu6bTrDMQYvWDo4g@mail.gmail.com \
--to=steve@hassard.net \
--cc=17971@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.