* bug#11518: 24.1.50; install-etc target installs emacs.png outside of $DESTDIR
@ 2012-05-19 8:08 Ulrich Mueller
2012-05-19 18:57 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Mueller @ 2012-05-19 8:08 UTC (permalink / raw
To: 11518
Forwarding downstream bug <https://bugs.gentoo.org/show_bug.cgi?id=416515>.
When installing Emacs from BZR trunk as of today, the "install-etc"
target in the top-level Makefile tries to install files outside of
$DESTDIR. In Gentoo's sandboxed environment this leads to an access
violation.
Here is the relevant part of the build log:
umask 022; /bin/mkdir -p /var/tmp/portage/app-editors/emacs-vcs-24.1.9999/image//usr/share/applications
/usr/bin/install -c -m 644 /var/tmp/portage/app-editors/emacs-vcs-24.1.9999/work/emacs-vcs-24.1.9999/etc/emacs.desktop \
/var/tmp/portage/app-editors/emacs-vcs-24.1.9999/image//usr/share/applications/emacs.desktop
thisdir=`/bin/pwd`; \
cd /var/tmp/portage/app-editors/emacs-vcs-24.1.9999/work/emacs-vcs-24.1.9999/etc/images/icons || exit 1; umask 022 ; \
for dir in */*/apps */*/mimetypes; do \
[ -d ${dir} ] || continue ; \
( cd ${thisdir}; /bin/mkdir -p /usr/share/icons/${dir} ) ; \
for icon in ${dir}/*.*; do \
[ -r ${icon} ] || continue ; \
( cd ${thisdir}; \
/usr/bin/install -c -m 644 /var/tmp/portage/app-editors/emacs-vcs-24.1.9999/work/emacs-vcs-24.1.9999/etc/images/icons/${icon} /usr/share/icons/${icon} ) \
|| exit 1; \
done ; \
done
ACCESS DENIED unlink: /usr/share/icons/hicolor/128x128/apps/emacs.png
/usr/bin/install: cannot remove ‘/usr/share/icons/hicolor/128x128/apps/emacs.png’: Permission denied
make: *** [install-etc] Error 1
* ERROR: app-editors/emacs-vcs-24.1.9999 failed (install phase):
* emake failed
The breakage was introduced by this commit:
------------------------------------------------------------
revno: 108266
committer: Glenn Morris <rgm@gnu.org>
branch nick: trunk
timestamp: Thu 2012-05-17 15:13:02 -0400
message:
Simplify install-etc rule
* Makefile.in (install-etc, mkdir):
Make relevant directories in install-etc rather than mkdir.
------------------------------------------------------------
The following patch should fix it:
2012-05-19 Ulrich Müller <ulm@gentoo.org>
* Makefile.in (install-etc): Install icons inside of DESTDIR.
--- emacs-orig/Makefile.in
+++ emacs/Makefile.in
@@ -626,11 +626,11 @@
cd ${iconsrcdir} || exit 1; umask 022 ; \
for dir in */*/apps */*/mimetypes; do \
[ -d $${dir} ] || continue ; \
- ( cd $${thisdir}; ${MKDIR_P} ${icondir}/$${dir} ) ; \
+ ( cd $${thisdir}; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \
for icon in $${dir}/*.*; do \
[ -r $${icon} ] || continue ; \
( cd $${thisdir}; \
- ${INSTALL_DATA} ${iconsrcdir}/$${icon} ${icondir}/$${icon} ) \
+ ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${icon} ) \
|| exit 1; \
done ; \
done
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#11518: 24.1.50; install-etc target installs emacs.png outside of $DESTDIR
2012-05-19 8:08 bug#11518: 24.1.50; install-etc target installs emacs.png outside of $DESTDIR Ulrich Mueller
@ 2012-05-19 18:57 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-05-19 18:57 UTC (permalink / raw
To: 11518-done
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-19 18:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-19 8:08 bug#11518: 24.1.50; install-etc target installs emacs.png outside of $DESTDIR Ulrich Mueller
2012-05-19 18:57 ` Glenn Morris
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.