Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59172 - desktop-file-utils ebuild fails
Summary: desktop-file-utils ebuild fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-02 10:44 UTC by Pete Plank
Modified: 2004-08-13 17:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for desktop-file-utils-0.7.ebuild (desktop-file-utils-0.7.ebuild.patch,393 bytes, patch)
2004-08-03 11:44 UTC, José Romildo Malaquias
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pete Plank 2004-08-02 10:44:55 UTC
Fails with access violation; output clipping below:

make[2]: Nothing to be done for `install-exec-am'.
 /bin/install -c -m 644 desktop-entry-mode.el /usr/share/emacs/site-lisp/desktop-entry-mode.el
ACCESS DENIED  open_wr:   /usr/share/emacs/site-lisp/desktop-entry-mode.el
/bin/install: cannot create regular file `/usr/share/emacs/site-lisp/desktop-entry-mode.el': Permission denied
 /bin/install -c -m 644 desktop-entry-mode.elc /usr/share/emacs/site-lisp/desktop-entry-mode.elc
ACCESS DENIED  open_wr:   /usr/share/emacs/site-lisp/desktop-entry-mode.elc
/bin/install: cannot create regular file `/usr/share/emacs/site-lisp/desktop-entry-mode.elc': Permission denied
make[2]: *** [install-lispLISP] Error 1
make[2]: Leaving directory `/var/tmp/portage/desktop-file-utils-0.7/work/desktop-file-utils-0.7/misc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/desktop-file-utils-0.7/work/desktop-file-utils-0.7/misc'
make: *** [install-recursive] Error 1

!!! ERROR: dev-util/desktop-file-utils-0.7 failed.
!!! Function src_install, Line 29, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-dev-util_-_desktop-file-utils-0.7-30631.log"

open_wr:   /usr/share/emacs/site-lisp/desktop-entry-mode.el
open_wr:   /usr/share/emacs/site-lisp/desktop-entry-mode.elc
--------------------------------------------------------------------------------



Reproducible: Always
Steps to Reproduce:
1. emerge desktop-file-utils
2.
3.

Actual Results:  
emerge failed

Expected Results:  
successful emerge

root@misaki /home/neko # emerge info
Portage 2.0.50-r9 (2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0,
2.6.7-gentoo-r11)=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aalib alsa apm arts avi berkdb bindist bonobo cdr cjk
crypt cups directfb dvd encode esd f77 fam foomaticdb gdbm gif gnome gphoto2 gpm
gtk gtk2 gtkhtml guile imap imlib java jpeg kde libg++ libwww mad mikmod mmx
mmxext motif mozilla mpeg mysql ncurses nls nvidia oggvorbis opengl oss pam
pdflib perl png ppds python qt quicktime readline samba sdl slang spell sse ssl
stencil-buffer svga tcltk tcpd tiff truetype usb v4l wxwindows x86 xml xml2 xmms
xv xvid zlib"
Comment 1 Mårten Woxberg 2004-08-03 05:32:20 UTC
I can confirm this. Add a USE flag atleast so that we can choose not to install this file.
Comment 2 José Romildo Malaquias 2004-08-03 11:44:44 UTC
Created attachment 36708 [details, diff]
Patch for desktop-file-utils-0.7.ebuild

This patch to the ebuild should fix it.

In the src_install function in the ebuild just define DESTDIR in the call to
"make install".
Comment 3 Michael O. Distler 2004-08-06 08:06:21 UTC
Almost. In addition to comment #2 I had to add 'datadir=${D}/usr/share' to the make install.
Comment 4 Keith Lea 2004-08-06 08:48:30 UTC
This patch along with the datadir suggestion in comment 3 works for me.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2004-08-08 22:46:15 UTC
The ebuild fails for me as well.

make[3]: Entering directory `/var/tmp/portage/desktop-file-utils-0.7/work/deskto p-file-utils-0.7/misc'
WARNING: Warnings can be ignored. :-)
if test emacs != no; then \
  set x; \
  list='desktop-entry-mode.el'; for p in $list; do \
            if test -f "$p"; then d=; else d="./"; fi; \
    set x "$@" "$d$p"; shift; \
  done; \
  shift; \
  EMACS=emacs /bin/sh ../elisp-comp "$@" || exit 1; \
else : ; fi
Loading php-mode...
Loading php-mode...
Loading /usr/libexec/emacs/21.3/i686-pc-linux-gnu/fns-21.3.1.el (source)...
Loading /usr/libexec/emacs/21.3/i686-pc-linux-gnu/fns-21.3.1.el (source)...
Symbol's function definition is void: global-semantic-show-dirty-mode
make[2]: *** [elc-stamp] Error 1
make[2]: *** Waiting for unfinished jobs....
Symbol's function definition is void: global-semantic-show-dirty-mode
make[3]: *** [elc-stamp] Error 1
make[3]: Leaving directory `/var/tmp/portage/desktop-file-utils-0.7/work/desktop -file-utils-0.7/misc'
make[2]: *** [desktop-entry-mode.elc] Error 2
make[2]: Leaving directory `/var/tmp/portage/desktop-file-utils-0.7/work/desktop -file-utils-0.7/misc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/desktop-file-utils-0.7/work/desktop -file-utils-0.7'
make: *** [all] Error 2

!!! ERROR: dev-util/desktop-file-utils-0.7 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

emerge info
Portage 2.0.51_pre17 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r11 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.40GHz)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.40GHz
Gentoo Base System version 1.5.2
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fexpensive-optimizations -ffast-math -falign-functions=4 -fforce-addr -funroll-loops -maccumulate-outgoing-args -frerun-loop-opt -fprefetch-loop-arrays -frerun-cse-after-loop -mfpmath=sse -ftracer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fexpensive-optimizations -ffast-math -falign-functions=4 -fforce-addr -funroll-loops -maccumulate-outgoing-args -frerun-loop-opt -fprefetch-loop-arrays -frerun-cse-after-loop -mfpmath=sse -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox sign"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo/distfiles/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /home/cardoe/workspace/gentoo-x86"
SYNC="rsync://rsync2.us.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm arts audiofile avi berkdb cdr crypt cups dvd encode esd faad flac foomaticdb footmaticdb gdbm gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 imlib ipv6 java jpeg kde libg++ libwww mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mysql nas ncurses nogcj nptl nvidia oav oggvorbis opengl oss pam pcmcia pdflib perl pic png pnp ppds python qt quicktime readline samba sdl slang slp smooth spell sse ssl svga tcltk tcpd theora tiff truetype usb wmf x86 xml2 xmms xv zlib"

Comment 6 Skobel 2004-08-11 20:51:48 UTC
Rather then adding all of that you could just make it use einstall
Comment 7 Charles Goodwin 2004-08-13 16:02:56 UTC
Um why has this not yet gone away? :(
Comment 8 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-08-13 17:01:17 UTC
Sorry for the delay. Fixed in CVS. Thanks for the bug report.