Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602822 - dev-qt/qtmultimedia-5.7.1: build error due to permission denied to directory outside /var/tmp/portage
Summary: dev-qt/qtmultimedia-5.7.1: build error due to permission denied to directory ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-16 12:56 UTC by Marcin Mirosław
Modified: 2023-09-09 16:57 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,567.08 KB, text/plain)
2016-12-16 12:57 UTC, Marcin Mirosław
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2016-12-16 12:56:34 UTC
Build process of qtmultimedia uses build directory of some other package and adds it to linking process (-L/mnt/test).
I build a few packages using PORTAGE_TMPDIR="/mnt/test". After some time i stopped to use this directory, umounted /mnt/test. This directory has 700 permissions at this moment:
ls -lah /mnt/test
total 8.0K
drwx------  2 root root 4.0K Oct 22  2012 .
drwxr-xr-x 11 root root 4.0K Feb 24  2016 ..


Today I tried to compile dev-qt/qtmultimedia-5.7.1, it failed with error:
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -z relro -Wl,--sort-common -O2 -march=native -pipe -fpeel-loops -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g -gdwarf-4 -Wl,--no-undefined -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-rpath-link,/usr/lib64 -shared -o libgstaudiodecoder.so .obj/qgstreameraudiodecodercontrol.o .obj/qgstreameraudiodecoderservice.o .obj/qgstreameraudiodecodersession.o .obj/qgstreameraudiodecoderserviceplugin.o .obj/moc_qgstreameraudiodecodercontrol.o .obj/moc_qgstreameraudiodecoderservice.o .obj/moc_qgstreameraudiodecodersession.o .obj/moc_qgstreameraudiodecoderserviceplugin.o  -lqgsttools_p -L/mnt/test/portage/dev-qt/qtmultimedia-5.6.2/work/qtmultimedia-opensource-src-5.6.2/lib -lgstaudio-1.0 -lgstvideo-1.0 -lgstpbutils-1.0 -lgstapp-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -L/var/tmp/portage/dev-qt/qtmultimedia-5.7.1/work/qtmultimedia-opensource-src-5.7.1/lib -lQt5MultimediaWidgets -lQt5Multimedia -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread  
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: /mnt/test/portage/dev-qt/qtmultimedia-5.6.2/work/qtmultimedia-opensource-src-5.6.2/lib: can not read directory: Permission denied
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:102: ../../../../plugins/mediaservice/libgstaudiodecoder.so] Error 1
make[4]: Leaving directory '/var/tmp/portage/dev-qt/qtmultimedia-5.7.1/work/qtmultimedia-opensource-src-5.7.1/src/plugins/gstreamer/audiodecoder'
make[3]: *** [Makefile:46: sub-audiodecoder-make_first] Error 2
make[3]: Leaving directory '/var/tmp/portage/dev-qt/qtmultimedia-5.7.1/work/qtmultimedia-opensource-src-5.7.1/src/plugins/gstreamer'
make[2]: *** [Makefile:96: sub-gstreamer-make_first] Error 2
make[2]: *** Waiting for unfinished jobs....



Probably gstreamer hardcoded build directory and qtmultimedia adds this directory to searched paths. And it fails.


Reproducible: Always



Expected Results:  
Build process should not use build dir of other packages.

# emerge --info
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.8.0-bcache+ x86_64)
=================================================================
System uname: Linux-4.8.0-bcache+-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.3
Timestamp of repository gentoo: Fri, 16 Dec 2016 06:30:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
ccache version 3.3.3 [enabled]
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.3.3::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.138.254/gentoo-portage
    priority: -1000

mysql
    location: /usr/local/portage/layman/mysql
    masters: gentoo
    priority: 50

neurogeek
    location: /usr/local/portage/layman/neurogeek
    masters: gentoo
    priority: 50

ultrabug
    location: /usr/local/portage/layman/ultrabug
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g -gdwarf-4"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g -gdwarf-4"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g -gdwarf-4"
FEATURES="assume-digests binpkg-logs ccache cgroup collision-protect compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g -gdwarf-4"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -z relro -Wl,--sort-common -O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g -gdwarf-4"
MAKEOPTS="-j3 -l5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aio alsa amd64 apm async bash-completion bittorrent branding bzip2 cairo caps cdda cdr chroot cli consolekit crypt cups cxx dbus declarative dmx dri dvd dvdr emboss encode exif fam firefox ftp gif glamor glibc-omitfp gpl gpm gstreamer iconv idn iproute2 ipv6 ithreads jit jpeg kde kipi laptop lcms libnotify lightning logrotate mad mmap mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses network-cron nls nptl nsplugin nspluginwrapper objc ogg opengl openmp openssl optimization optimized-qmake pam pango pcre pdf phonon plasma png policykit ppds python3 qml qt3support qt4 qt5 readline samba sdl seccomp semantic-desktop session sharedmem smp spell sse sse2 ssl startup-notification svg threads threadsafe tiff tools truetype udev udisks unicode unwind upower urandom usb vim vim-pager vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zip zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cgid dav dbd deflate dir env expires ext_filter filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="pl en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Marcin Mirosław 2016-12-16 12:57:18 UTC
Created attachment 456386 [details]
build.log
Comment 2 Marcin Mirosław 2016-12-16 13:01:17 UTC
After changing permission: chmod 755 /mnt/test
compilation finishes without problem.
Comment 3 Davide Pesavento gentoo-dev 2016-12-17 03:08:58 UTC
error: /mnt/test/portage/dev-qt/qtmultimedia-5.6.2/work/qtmultimedia-opensource-src-5.6.2/lib: can not read directory: Permission denied

Note that the path says "5.6.2", so I suspect it's using some path from the currently installed version of qtmultimedia...
Comment 4 Ionen Wolkens gentoo-dev 2023-09-09 16:57:46 UTC
I believe there's nothing to do here.