Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 154230

Summary: app-office/openoffice-2.0.4: chown: changing ownership of `/var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice': No such file or directory
Product: Gentoo Linux Reporter: Lars Weiler (RETIRED) <pylon>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal CC: cycoone, ja, leonardof, thomas.bettler, yury.tereshonkov
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: OO log

Description Lars Weiler (RETIRED) gentoo-dev 2006-11-06 03:50:13 UTC
openoffice-2.0.4 fails to install on x86 with this error:

Cleaning up ...
Done
Moving package file lists...
Cleaning up lists of files...
Checking for DESTDIR inside installed files...
Packaging succeeded
chown: changing ownership of `/var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice': No such file or directory

!!! ERROR: app-office/openoffice-2.0.4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  openoffice-2.0.4.ebuild, line 289:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.08"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info


Portage 2.1.1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-suspend2 i686)
=================================================================
System uname: 2.6.18-suspend2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 05 Nov 2006 23:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="de_DE.utf8"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl alsa apache2 arts bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dlloader dmx dri dvb dvd dvdr eds elibc_glibc emboss encode esd fam firefox flac fortran gdbm gif gimpprint glitz gnome gpm gstreamer gtk hal iconv idn input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux ldap libcaca libg++ linguas_de linguas_en lirc lirc_devices_devinput lm_sensors mad mailbox mikmod mmx mmxext mozsvg mp3 mpeg mpm-prefork mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime rdesktop readline reflection rtc samba sdl session skey speex spell spl sse sse2 ssl svg tcltk tcpd tetex theora truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vdr video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs x264 xcomposite xinerama xinetd xml xorg xprint xscreensaver xv xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2006-11-06 04:04:58 UTC
Hmm, the only chown we do in the ebuild is

chown -R root:root ${D} || die

in src_install, but this looks safe.

Do you have /sbin/chpax installed? Don't know how the whole pax-stuff works, but maybe it is caused by this line

	[ -x /sbin/chpax ] && [ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin


Still this in postinstall, so the build should already be merged there...
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2006-11-06 04:15:06 UTC
(In reply to comment #1)
> Hmm, the only chown we do in the ebuild is
> 
> chown -R root:root ${D} || die
> 
> in src_install, but this looks safe.

It's a symlink, that fails: # ls -l /var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice
lrwxrwxrwx 1 root root 35  6. Nov 07:45 /var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice -> /usr/lib/openoffice/program/soffice

When I do a manual chown I receive that error:
# chown root:root /var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice
chown: cannot dereference `/var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice': No such file or directory

> Do you have /sbin/chpax installed? Don't know how the whole pax-stuff works,
> but maybe it is caused by this line

Nope, it's not installed.
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2006-11-06 04:23:41 UTC
(In reply to comment #2)
> It's a symlink, that fails: # ls -l
> /var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice
> lrwxrwxrwx 1 root root 35  6. Nov 07:45
> /var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice ->
> /usr/lib/openoffice/program/soffice

If you have an earlier version of OpenOffice installed and the file /usr/lib/openoffice/program/soffice exist, chown will not fail.  But as the symlink references outside DESTDIR and I don't have an older version installed, it fails.  IMHO the symlink should point to /var/tmp/portage/openoffice-2.0.4/image/usr/lib/openoffice/program/soffice
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2006-11-06 12:01:46 UTC
(In reply to comment #1)
> Hmm, the only chown we do in the ebuild is
> 
> chown -R root:root ${D} || die
                          ^^^^^^
Remove the die so that the error-message from chown will be ignored.

Tested on my system.
Comment 5 Thomas Bettler 2006-11-07 04:57:33 UTC
Or use chown -h  or something the like that doesn't dereference the links. Links should never be dereferenced from ebuilds, sine that time the respective files stay in /var/tmp/portage/..../image but the links point somewhere in ${ROOT}
Comment 6 Lars Weiler (RETIRED) gentoo-dev 2006-11-07 08:43:23 UTC
(In reply to comment #5)
> Or use chown -h  or something the like that doesn't dereference the links.

I tested that, but chown still showed an error-message.
Comment 7 Stephen E. Baker 2006-11-08 08:04:32 UTC
I also received this bug:
leaning up ...
Done
Removing duplicated English help...
Removing poor help localizations...
Moving package file lists...
sed: can't read gnome_list.txt: No such file or directory
sed: can't read nld_list.txt: No such file or directory
sed: can't read hunspell_list.txt: No such file or directory
sed: can't read mono_list.txt: No such file or directory
Cleaning up lists of files...
Checking for DESTDIR inside installed files...
Packaging succeeded
chown: changing ownership of `/var/tmp/portage/openoffice-2.0.4/image/usr/bin/soffice': No such file or directory

!!! ERROR: app-office/openoffice-2.0.4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  openoffice-2.0.4.ebuild, line 289:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.08"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

with the following:
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 05 Nov 2006 15:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ "
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa berkdb bitmap-fonts cdr cli cracklib crypt cscope dio dlloader dri dvd elibc_glibc emacs ffmpeg firefox fortran gdbm gif gpm hal iconv icq input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jpeg jpeg2k kde kernel_linux libg++ linguas_en mmx mng mp3 mpeg mplayer msn mysql mysqli ncurses nls nptl nptlonly offensive ogg opengl pam pcmcia pcre pdf perl png ppds pppd python qt3 qt4 readline reflection sdl session spell spl sse sse2 ssl svg tcpd tetex truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_i810 video_cards_vesa wifi win32codecs wxwindows xine xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 09:27:43 UTC
*** Bug 154695 has been marked as a duplicate of this bug. ***
Comment 9 Yury Tereshonkov 2006-11-13 08:57:52 UTC
I removed  
chown -R root:root ${D} || die
                        ^^^^^^
also removed sun-jdk and jrockit-jdk-bin then I've got

... languages ru ... 
... analyzing files ...
... analyzing files with flag ARCHIVE ...
... analyzing files with flag SCPZIP_REPLACE ...
... analyzing files with flag PATCH_SO_NAME ...
... creating preregistered services.rdb ...

**************************************************
ERROR: ERROR: Could not register all components!
in function: create_services_rdb
**************************************************

**************************************************
ERROR: Saved logfile: /var/tmp/portage/app-office/openoffice-2.0.4/work/ooo/build/OOO_2_0_4/instsetoo_native/util/OpenOffice//logging/ru/log_OOD680__ru.log
**************************************************
... cleaning the output tree ...
... removing directory /var/tmp/portage/app-office/openoffice-2.0.4/work/ooo/build/OOO_2_0_4/instsetoo_native/util/OpenOffice//zip/ru ...
... removing directory /var/tmp/portage/app-office/openoffice-2.0.4/work/ooo/build/OOO_2_0_4/instsetoo_native/util/OpenOffice//services.rdb/ru_witherror_1 ...
Mon Nov 13 18:57:26 2006 (00:49 min.)
Failed to install:  at ./ooinstall line 129.
make: *** [install] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1

!!! ERROR: app-office/openoffice-2.0.4 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_install
  ebuild.sh, line 1022:   Called src_install
  openoffice-2.0.4.ebuild, line 279:   Called die

!!! Installation failed!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
!!! This ebuild is from an overlay: '/usr/local/portage'

Please advice how to emerge OpenOffice v 2.0.4

Portage 2.1.2_rc1-r5 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.6
Last Sync: Mon, 13 Nov 2006 01:48:01 +0000
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://127.0.0.1/gentoo"
LANG="ru_RU.KOI8-R"
LINGUAS="ru"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://195.19.254.80/gentoo-portage"
USE="3dnow X a52 alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 cairo cdr cgi cli cracklib crypt ctype cups dba dbus directfb divx4linux dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode esd expat f77 fam ffmpeg firefox flac foomaticdb fortran ftp gd gdbm gif glut gpm gstreamer gtk gtk2 hal iconv imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg junit kde kernel_linux latex lcms ldap libg++ libwww linguas_ru mad mikmod mmx mmxext motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdf pdflib perl php png ppds pppd python qt3 qt4 quicktime rcc readline reflection samba sdk sdl session sndfile soap sockets spell spl sql sse ssl subversion svga tcpd tetex tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_ati video_cards_fglrx video_cards_radeon vorbis win32codecs wxwindows x86 xls xml xml2 xorg xv xvid zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPT
Comment 10 Yury Tereshonkov 2006-11-13 09:01:43 UTC
Created attachment 101842 [details]
OO log

/var/tmp/portage/app-office/openoffice-2.0.4/work/ooo/build/OOO_2_0_4/instsetoo_native/util/OpenOffice//logging/ru/log_OOD680__ru.log
Comment 11 Yury Tereshonkov 2006-11-13 09:12:15 UTC
Also I had rebuild python with CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe" CXXFLAGS=${CFLAGS} after that OpenOffice was emerged with the same CFLAGS and CXXFLAGS, other components of my system was build with

CFLAGS="-march=athlon-xp -mtune=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math
-fprefetch-loop-arrays"; CXXFLAGS=${CFLAGS}
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-11-16 04:35:04 UTC
*** Bug 155348 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Proschofsky (RETIRED) gentoo-dev 2006-11-16 09:57:40 UTC
I've removed the die-statement for now, closing
Comment 14 Stephen E. Baker 2006-11-16 14:11:41 UTC
I think if you're just going to remove the die, you'd be better off changing:
chown -R root:root ${D}
to
find ! -type l -exec chown root:root ${D}\;
Comment 15 Yury Tereshonkov 2006-11-17 04:03:49 UTC
I wrote:

"I removed  
chown -R root:root ${D} || die
                        ^^^^^^
also removed sun-jdk and jrockit-jdk-bin then I've got failure with emerging Openoffice"

Shoud I remove OpenOffice 2.0.3 (unmerge) before emerging 2.0.4. version? It works with emerging mono.