Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118697 - media-video/qdvdauthor-0.1.0 still doesn't honor PORTAGE_TMPDIR
Summary: media-video/qdvdauthor-0.1.0 still doesn't honor PORTAGE_TMPDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-11 13:09 UTC by Heiko Baums
Modified: 2007-02-11 01:52 UTC (History)
1 user (show)

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


Attachments
qdvdauthor-0.1.4-errorlog (qdvdauthor-0.1.4-errorlog,11.41 KB, text/plain)
2007-01-07 00:11 UTC, Heiko Baums
Details
qdvdauthor-0.1.4.ebuild (qdvdauthor-0.1.4.ebuild,2.78 KB, text/plain)
2007-01-07 14:04 UTC, Heiko Baums
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Baums 2006-01-11 13:09:33 UTC
When installing qdvdauthor-0.1.0 with PORTAGE_TMPDIR set I'm getting the following error message. If PORTAGE_TMPDIR is not set it is installed without problems.


>>> Install qdvdauthor-0.1.0 into /usr/var/portage/qdvdauthor-0.1.0/image/ category media-video
make: Entering directory `/usr/var/portage/qdvdauthor-0.1.0/work/qdvdauthor-0.1.0/qdvdauthor'
test -d ../bin/ || mkdir -p ../bin/
g++  -o ../bin/qdvdauthor .obj/main.o .obj/log.o .obj/utils.o .obj/global.o .obj/execute.o .obj/dvdinfo.o .obj/dvdmenu.o .obj/keyword.o .obj/dialogman.o .obj/modifiers.o .obj/importsrt.o .obj/exportsrt.o .obj/qdvdauthor.o .obj/undobuffer.o .obj/menuobject.o .obj/textobject.o .obj/dialogtemp.o .obj/importkino.o .obj/dialogmovie.o .obj/frameobject.o .obj/imageobject.o .obj/movieobject.o .obj/dialogframe.o .obj/menupreview.o .obj/dialogsetup.o .obj/subtitlesgui.o .obj/buttonobject.o .obj/dialogbutton.o .obj/qimagehelper.o .obj/colortoolbar.o .obj/layoutwizard.o .obj/kimageeffect.o .obj/listviewmedia.o .obj/sourcetoolbar.o .obj/buttonpreview.o .obj/xml_dvdauthor.o .obj/dialogexecute.o .obj/templatewizard.o .obj/dialogtextfont.o .obj/qdvdauthorinit.o .obj/dialoganimation.o .obj/dialogundostack.o .obj/sourcefileentry.o .obj/importdvdauthor.o .obj/exportdvdauthor.o .obj/objectcollection.o .obj/structuretoolbar.o .obj/dvdmenuundoobject.o .obj/listviewitemmedia.o .obj/dragndropcontainer.o .obj/animationattribute.o .obj/dialogcommandeditor.o .obj/startmenurender.o .obj/mediainfo.o .obj/mediacreator.o .obj/mediascanner.o .obj/sourcefiledialog.o .obj/startstopcontrol.o .obj/listviewfileitem.o .obj/dummywidget.o .obj/mediainterface.o .obj/soundline.o .obj/imageline.o .obj/slidertime.o .obj/filterline.o .obj/dialogfilter.o .obj/dialogcreate.o .obj/imagepreview.o .obj/xml_slideshow.o .obj/xineinfo.o .obj/xinewidget.o .obj/kxinewidget.o .obj/qxinewidget.o .obj/kaffeineswidget.o .obj/dialogqxinesetup.o .obj/formmain.o .obj/dialogslide.o .obj/dialogimage.o .obj/uidialogcreate.o .obj/uisourcefiledialog.o .obj/uistartstopcontrol.o .obj/uitemptab.o .obj/uisubtitles.o .obj/uinewwizard.o .obj/dialogmatrix.o .obj/dialogresize.o .obj/uidialogmovie.o .obj/uidialogabout.o .obj/uidialogsetup.o .obj/uidialogframe.o .obj/dialoggeometry.o .obj/uidialogbutton.o .obj/uisourcewidget.o .obj/uicommandeditor.o .obj/uidialogtextfont.o .obj/uitemplatewizard.o .obj/uidialoganimation.o .obj/uistructurewidget.o .obj/uidialogextraction.o .obj/uidialogrenderpreview.o .obj/qmake_image_collection.o .obj/moc_execute.o .obj/moc_dvdmenu.o .obj/moc_dialogman.o .obj/moc_qdvdauthor.o .obj/moc_menuobject.o .obj/moc_textobject.o .obj/moc_dialogtemp.o .obj/moc_dialogmovie.o .obj/moc_frameobject.o .obj/moc_imageobject.o .obj/moc_movieobject.o .obj/moc_dialogframe.o .obj/moc_menupreview.o .obj/moc_dialogsetup.o .obj/moc_subtitlesgui.o .obj/moc_buttonobject.o .obj/moc_dialogbutton.o .obj/moc_colortoolbar.o .obj/moc_sourcetoolbar.o .obj/moc_buttonpreview.o .obj/moc_listviewmedia.o .obj/moc_dialogexecute.o .obj/moc_dialogtextfont.o .obj/moc_templatewizard.o .obj/moc_dialogundostack.o .obj/moc_dialoganimation.o .obj/moc_objectcollection.o .obj/moc_structuretoolbar.o .obj/moc_dialogcommandeditor.o .obj/moc_sourcefiledialog.o .obj/moc_startstopcontrol.o .obj/moc_mediainterface.o .obj/moc_soundline.o .obj/moc_imageline.o .obj/moc_slidertime.o .obj/moc_filterline.o .obj/moc_dialogfilter.o .obj/moc_dialogcreate.o .obj/moc_imagepreview.o .obj/moc_kxinewidget.o .obj/moc_qxinewidget.o .obj/moc_dialogqxinesetup.o .obj/moc_formmain.o .obj/moc_dialogslide.o .obj/moc_dialogimage.o .obj/moc_uidialogcreate.o .obj/moc_uisourcefiledialog.o .obj/moc_uistartstopcontrol.o .obj/moc_uitemptab.o .obj/moc_uisubtitles.o .obj/moc_uinewwizard.o .obj/moc_dialogmatrix.o .obj/moc_dialogresize.o .obj/moc_uidialogmovie.o .obj/moc_uidialogabout.o .obj/moc_uidialogsetup.o .obj/moc_uidialogframe.o .obj/moc_dialoggeometry.o .obj/moc_uidialogbutton.o
.obj/moc_uisourcewidget.o .obj/moc_uicommandeditor.o .obj/moc_uidialogtextfont.o .obj/moc_uitemplatewizard.o .obj/moc_uidialoganimation.o .obj/moc_uistructurewidget.o .obj/moc_uidialogextraction.o .obj/moc_uidialogrenderpreview.o   -L/usr/qt/3/lib -L/usr/X11R6/lib `xine-config --cflags --libs` -lqt-mt -lXext -lX11 -lm
-lpthread
ACCESS DENIED  mkdir:     /share
mkdir: cannot create directory `/usr/var/portage/qdvdauthor-0.1.0/image/../../../../../../share': Permission denied
make: *** [install_i18n] Error 1
make: Leaving directory `/usr/var/portage/qdvdauthor-0.1.0/work/qdvdauthor-0.1.0/qdvdauthor'

!!! ERROR: media-video/qdvdauthor-0.1.0 failed.
!!! Function src_install, Line 53, Exitcode 2
!!! qdvdauthor install failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-video_-_qdvdauthor-0.1.0-21994.log"

mkdir:     /share
--------------------------------------------------------------------------------



My emerge info:

Gentoo Base System version 1.12.0_pre13
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-gentoo-r4 i686)
=================================================================
System uname: 2.6.14-gentoo-r4 i686 AMD Athlon(tm) XP 1600+
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/var"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acpi aim alsa apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bluetooth bonobo bzip2 cdparanoia cdr chipcard crypt cups curl dba dga directfb divx4linux doc dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode exif expat f77 fam fame fbcon ffmpeg flac flash font-server foomaticdb fortran ftp gcc-libffi gcj gd gdbm geldkarte gif gimp gimpprint glut gmp gpm graphviz gstreamer gtk gtk2 gtkhtml guile hbci icq idn imagemagick imlib ipv6 irmc jabber jce jpeg kde lcms ldap libg++ libwww lirc live lzo mad maildir mailwrapper mbox mhash mikmod milter mime ming mjpeg mmx mmx2 mmxext mng modplug motif mozilla mp3 mpeg mplayer msn mysql mythtv nas ncurses network nls nptl nptlonly nsplugin nvidia objc objc-gc odbc offensive ofx ogg oggvorbis on-the-fly-crypt openal opengl oscar oss pam pcre pdflib perl php plugin png ppds print python qt quicktime quotes readline real recode scanner sdl slang smime spell spl sqlite sse ssl svg svga tcltk tcpd tetex theora tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 v4l v4l2 vfat videos vidix visualization vorbis win32codecs wmf x86 xine xml xml2 xmms xpm xv xvid yahoo yv12 zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2006-01-11 16:52:59 UTC
that's really strange! On my system, I don't have these relative paths.

But: the Makefiles are generated by the Qt framework, which takes its defaults and put them into the generated Makefiles for the project. Perhaps your Qt installation is somewhat damaged? Just an idea...
Comment 2 Heiko Baums 2006-01-11 19:08:58 UTC
I haven't changed anything at Qt by myself.
I could try to uninstall and reinstall Qt - I see how much time revdep-rebuild takes after that - to test it.

But if my Qt installation is really damaged than it must have something to do with the slotted Qt 3 and Qt 4 installation. Means some time I installed Qt 4 beside Qt 3 as it is done automatically by portage. Because I had many problems to install Qt programms after that I uninstalled Qt 4.

Btw, I should search bugzilla and if applicable file a new bug report because it shouldn't be necessary to have installed both Qt versions parallel because of Qt4's Qt3Support.
Comment 3 Heiko Baums 2006-01-20 16:14:09 UTC
It took a while but finally I've tried it again.

I deinstalled Qt - Qt3 as well as Qt4 - completely, installed Qt3 completely new, did an emerge -uDN world, an emerge depclean and a revdep-rebuild, but qdvdauthor still doesn't install when PORTAGE_TMPDIR is set and prints the same error message as in my original comment.

So the reason for this error can't be a damaged Qt installation.
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2006-10-08 12:02:59 UTC
is it still valid with latest version in portage?
Comment 5 Heiko Baums 2006-10-08 13:31:29 UTC
It's still valid.

The error messages of qdvdauthor-0.1.2-r1 are nearly the same as these of 0.1.0:

ACCESS DENIED  mkdir:     /share
mkdir: cannot create directory `/usr/var/portage/qdvdauthor-0.1.2-r1/image/../../../../../../share': Permission denied
make: *** [install_i18n] Error 1
make: Leaving directory `/usr/var/portage/qdvdauthor-0.1.2-r1/work/qdvdauthor-0.1.2/qdvdauthor'

!!! ERROR: media-video/qdvdauthor-0.1.2-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  qdvdauthor-0.1.2-r1.ebuild, line 71:   Called die

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

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-video_-_qdvdauthor-0.1.2-r1-12275.log"

mkdir:     /share
--------------------------------------------------------------------------------


And this is the new emerge --info:

Gentoo Base System version 1.12.5
Portage 2.1.2_pre2-r6 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 1600+
Last Sync: Sun, 08 Oct 2006 19:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.3, 2.0.29
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
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 -O2 -pipe -fomit-frame-pointer"
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="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LINGUAS="de"
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="/usr/var"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib accessibility acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bluetooth bzip2 cairo cdda cddb cdparanoia cdr chipcard cli crypt cups curl dga directfb divx dlloader doc dri dv dvb dvd dvdr dvdread eds effects elibc_glibc emacs emboss encode expat extrafilters fam fame fbcon ffmpeg firefox flac foomaticdb fortran ftp gcc-libffi gcj gd gdbm geldkarte gif gimp glitz gmedia gmp gnutls gpm graphviz gs gstreamer gtk gtk2 gtkhtml hbci iconv idn imagemagick imlib inkjar input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irmc isdnlog jce jpeg kde kernel_linux lcms ldap leim libg++ linguas_de lirc lirc_devices_devinput live lm_sensors mad mailwrapper mbox mbrola mikmod mjpeg mmx mmx2 mmxext mng modplug motif mozilla mp3 mp4 mpeg mplayer mysql mysqli nas ncurses network nls nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc odbc offensive ofx ogg oggvorbis opengl oss pam pcre pdf perl php plugin png ppds pppd print python qt qt3 qt4 quicktime quotes readline real realmedia reflection reiserfs rtc rtsp scanner sdl session slang slideshow smime speex spell spl sqlite sse sse-filters ssl svg svga tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer tools truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vdr video_cards_nvidia video_cards_v4l vidix visualization vlm vorbis win32codecs wmf wmp xcomposite xine xml xml2 xmms xorg xpm xv xvid yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Stefan Briesenick (RETIRED) gentoo-dev 2006-10-08 15:01:02 UTC
well, I can't reproduce it and you are the only one who has this problem currently. Have you tried it on another machine yet?
Comment 7 Stefan Briesenick (RETIRED) gentoo-dev 2006-10-08 15:07:10 UTC
just an idea:

FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"

I'm not sure, but it would be worth a test. Please try to set FEATURES temporarily to:

FEATURES="sandbox"

and then try to emerge qdvdauthor.
Comment 8 Heiko Baums 2006-10-08 20:03:50 UTC
(In reply to comment #6)
> well, I can't reproduce it and you are the only one who has this problem
> currently. Have you tried it on another machine yet?

Maybe there's noone else who has set a different PORTAGE_TMPDIR and has installed qdvdauthor. I don't know.

Unfortunately I don't have another machine. I hope I can switch a computer of a relative to Linux and do a fresh Gentoo installation there in a few weeks.

(In reply to comment #7)
> just an idea:
> 
> FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"

These are the standard portage features. I haven't changed anything.

> I'm not sure, but it would be worth a test. Please try to set FEATURES
> temporarily to:
> 
> FEATURES="sandbox"
> 
> and then try to emerge qdvdauthor.

Or do you mean FEATURES="-sandbox" because I already have sandbox enabled? I think this could work but I guess it's not really the best method particularly with regard to `emerge -uDN world`.

But I'll try it anyway.
Comment 9 Heiko Baums 2006-10-08 20:23:47 UTC
`FEATURES="-sandbox" emerge qdvdauthor` worked.
Comment 10 Stefan Briesenick (RETIRED) gentoo-dev 2006-10-09 02:06:31 UTC
1. no, I really meant 'sandbox', not '-sandbox'. I want to be sure that the other feature-flags doesn't harm somehow.

2. I don't see the reason, why setting PORTAGE_TMPDIR should harm, because it's always set, even if you don't (re)define it.

3. there are other qdvdauthor-users, since I get bugzillas other than this for qdvdauthor. ;-)
Comment 11 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-06 21:45:26 UTC
new version is in portage. Please test it. thanks!
Comment 12 Heiko Baums 2007-01-07 00:08:01 UTC
It still doesn't install. But this time it seems to be related to the i18n part. The translations seem to be installed into the wrong directory.
As the error log says it tries to install something into `/usr/var/portage/media-video/qdvdauthor-0.1.4/image/../../../../../../../share/qdvdauthor/qdvdauthor_de.qm'.
This relative path points to a directory level above / which of course doesn't exist. So it tries to install the translations into /share/qdvdauthor which doesn't exist and which should be /usr/share/qdvdauthor. In the relative path there are two "/.." too much.

I'll attach the new error log.
Comment 13 Heiko Baums 2007-01-07 00:11:19 UTC
Created attachment 105737 [details]
qdvdauthor-0.1.4-errorlog
Comment 14 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 00:18:55 UTC
I still believe that this is a problem with your installation. I still can not reproduce it and you seem to be the only one with this problem.

Can you please try it on a fresh installation?

sometimes it might help to cleanup broken symlinks. please emerge app-misc/symlinks and then run:

symlinks -dr /usr /bin /sbin

that command doesn't harm, it just deletes any broken links.

There might be other orphant files...
Comment 15 Heiko Baums 2007-01-07 09:54:46 UTC
(In reply to comment #14)
> I still believe that this is a problem with your installation. I still can not
> reproduce it and you seem to be the only one with this problem.

I don't think that's a problem with my installation because qdvdauthor is the only ebuild with what I have such a problem. Btw. the problem with qdvdauthor-0.1.4 is a different problem than the problem with the previous versions.

> Can you please try it on a fresh installation?

Sorry, but I can't. It would take more than a week to do a fresh Gentoo installation.

I'm thinking about buying a new CPU and a new mainboard. If I decide to doing so I'll have to do a fresh install anyway. If I decide not to doing so a fresh install takes too long.

> symlinks -dr /usr /bin /sbin

Nice and useful tool but it didn't help either.
 
> There might be other orphant files...

I don't think that the problem are some orphaned files because with this new version it's a permission problem. It tries to create a directory /share/qdvdauthor or - after deleting every "INSTALL_ROOT="${D}" from the ebuild function src_install() - /usr/share/qdvdauthor. But it can't create these directories.

I think that the actual problem is with the first three lines in this function and the extremely weird relative path in the Makefile. I don't know why this has to be a path like somepath/../../../../../../../../../share/someotherpath and why this can't just directly be the absolute path /usr/share/someotherpath. I mean this is the path where the files shall be stored. But if this is the problem then it's an upstream bug.

But in the ebuild you are installing nearly everything "by hand" without make install. Why don't you just install/copy the translations also by hand to /usr/share/qdvdauthor? This seems to be the only thing what the three make install targets which you are running in the src_install() are trying to do.

I haven't tried it yet but I guess if you would copy these file "by hand" without the make install then the problem would be solved.
Comment 16 Heiko Baums 2007-01-07 10:02:51 UTC
I just read the original error message. It's still the same problem.

ACCESS DENIED  mkdir:     /share
mkdir: cannot create directory
`/usr/var/portage/qdvdauthor-0.1.0/image/../../../../../../share': Permission
denied

This also tried to create a directory /share which it is not allowed to. I guess it somehow tries to create a directory outside the sandbox.

Why this only happens on my system I don't know. But as I wrote in my last comment I think that it's only related to the i18n.
Comment 17 Heiko Baums 2007-01-07 11:37:04 UTC
Ok, just copying the file in the i18n directory doesn't seem to work. It installs but I'm getting a segfault when starting qdvdauthor.

I'll keep trying.

Btw, in the line "dodoc CHANGELOG INSTALL README TODO doc/{bugs,ISO_639,render*,sound*,todo*}.txt" you should remove "bugs, " because there's no file doc/bugs.txt in the new version.
Comment 18 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 12:56:34 UTC
1. fixed dodoc in my local overlay. I have some other small fixes for qdvdauthor, so I will commit at once as soon I think everything is ok.

2. ACCESS DENIED problem: of course, on your system, the install process tries to install directly into the filesystem outside the sandbox. So the message is correct and indeed wanted. But I still don't see why this happens.

stay tuned...
Comment 19 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 13:04:47 UTC
ahh, well. Can you please send me a tarball of the tempdir after installation failed? So just try to emerge and as soon it fails, run:

tar cjvf qdvdauthor-fail.tar.bz2 /usr/var/portage/media-video/qdvdauthor-0.1.4/

please send it to: sbriesen@gentoo.org

thanks!
Comment 20 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 13:27:40 UTC
Ha!

Now I can reproduce it!!!!!

it's indeed the PORTAGE_TMPDIR. But *not* the variable itself (I also have set it on my system, but to a different place), but it's the location you've set!

PORTAGE_TMPDIR="/var/gentoo" <- works
PORTAGE_TMPDIR="/usr/var" <- doesn't work

I guess portage (or some other component) gets confused about the "/usr" in PORTAGE_TMPDIR. It might be a bug, but nonetheless, setting "/usr/var" as the TMPDIR looks strange to me, because /usr isn't supposed for temporary files at all. Please move your PORTAGE_TMPDIR somewhere under /var (i.e. /var/gentoo).

But now I try to find out, where that bug is hidden...
Comment 21 Heiko Baums 2007-01-07 14:03:05 UTC
I've also tried a bit. The problem seems to be in the three makefiles which are build during the compilation and which are used by the three makes in the src_install() function.

I'll add a new ebuild which for me compiles and installs qdvdauthor without an error except a few warnings. The only but big problem is that I'm getting a segfault when starting qdvdauthor. But I don't know if this has something to do with this bug or if this is another bug.
Comment 22 Heiko Baums 2007-01-07 14:04:29 UTC
Created attachment 105811 [details]
qdvdauthor-0.1.4.ebuild

My new ebuild in which I replaced the paths like ../../../../.. with just usr.
Comment 23 Heiko Baums 2007-01-07 14:18:23 UTC
And concerning the /usr/var I unfortunately can't use /var or /tmp as the PORTAGE_TMPDIR because my root partition is a bit too small. So I have to use my usr partition even if it breaks a bit the Linux filesystem standard.

Maybe when I switched some people's computers to Linux some time so that I don't need Windoze anymore to help them and therefore I finally can remove it I'll be able to repartition my hard disk and give the root partition more space or I'll change my Linux installation to only one partition.

But as I wrote before I don't think that the bug is in portage or in your ebuild but in the Makefiles of qdvdauthor.

Btw., there's usually also a /usr/tmp and a /usr/var directory in every Linux distribution even if they are links to /tmp and /var in most cases. So I'm not sure if my filesystem changes are really non-standard.
Comment 24 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 17:36:02 UTC
You're right, qmake generates that broken Makefiles. But only (!) if --prefix is the same for your PORTAGE_TMPDIR (prefix = /usr and TMPDIR = /usr/..). 

> sed -i -e "2782,2803s:../../../../../../..:usr:g"

I can't implement it this way, because the number of ../ depends on your installation/configuration.

The only correct fix right now is, to set PORTAGE_TMPDIR outside of /usr (i.e. /var/gentoo). If I don't find a better solution, I will include a check in pkg_setup() and stop building with a big fat warning, that PORTAGE_TMPDIR must not beneath /usr. 

btw: if I set prefix=/tmp/blubb and PORTAGE_TMPDIR=/usr/var, it works! The problem only arises, when prefix is part of PORTAGE_TMPDIR (which internally sets $TMP and $TMPDIR also). But I didn't found out yet, if this is a problem within qmake/qt or the project files of qdvdauthor.
Comment 25 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 18:15:51 UTC
aha. It's a Qt or qmake bug!

look here:
http://lists.debian.org/debian-qt-kde/2006/05/msg00285.html

I try to find a solution...
Comment 26 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 18:41:55 UTC
ok, finally. It's neither a bug in portage, the ebuild, the project/make-files nor in qmake. It's deliberate behaviour. qmake works this way and nobody will fix this behaviour.

The only thing I can do is to include a slightly modified sed before installation.
Comment 27 Stefan Briesenick (RETIRED) gentoo-dev 2007-01-07 19:15:22 UTC
good luck my friend. I found a better solution! ;-)

adding -nocache to the qmake-calls in the configure-script solves that issue.

I will commit a new revision as soon bug #154694 is solved.
Comment 28 Heiko Baums 2007-01-07 19:38:09 UTC
(In reply to comment #26)
> ok, finally. It's neither a bug in portage, the ebuild, the project/make-files
> nor in qmake. It's deliberate behaviour. qmake works this way and nobody will
> fix this behaviour.

Let's say it this way: I wouldn't say it's not a bug in qmake. ;-)

But I've forgotten that there are some other bugs related to qmake and at least one other package (konverter) is not upgraded in the portage tree due to the change from make to qmake: bug #97090 and bug #46805

From debian bugzilla:
"As this is deliberate behaviour and has a work-around, closing."

If there would have been posted what the work-around is it would have helped.

> The only thing I can do is to include a slightly modified sed before
> installation.

My sed command wasn't the best, I know. It was just a quick and dirty work-around to test it.
Comment 29 Heiko Baums 2007-01-07 19:39:31 UTC
(In reply to comment #27)
> good luck my friend. I found a better solution! ;-)
> ...

I'll test it as soon as it's in portage.
Comment 30 August Hörandl 2007-02-06 08:50:44 UTC
just tried media-video/qdvdauthor-0.1.4 - still the same error ...
Comment 31 Stefan Briesenick (RETIRED) gentoo-dev 2007-02-10 23:47:50 UTC
0.1.4-r1 is in CVS now. Please test it. Reopen Bug if still not fixed.
Comment 32 Heiko Baums 2007-02-11 01:52:01 UTC
It's working. Bug is fixed. Thanks.