Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508628 - media-libs/libgphoto2-2.5.3.1 - src_configure(): sandbox violation by mkdir -p /usr/i486-pc-linux-gnu/gcc-bin
Summary: media-libs/libgphoto2-2.5.3.1 - src_configure(): sandbox violation by mkdir -...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2014-04-24 17:35 UTC by nicotroost
Modified: 2017-08-27 16:35 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,32.05 KB, text/plain)
2014-04-24 17:35 UTC, nicotroost
Details
config.log (config.log,103.45 KB, text/x-log)
2014-04-25 16:54 UTC, nicotroost
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nicotroost 2014-04-24 17:35:28 UTC
Created attachment 375632 [details]
build.log

Emerge of media-libs/libgphoto2-2.5.3.1 fails, see attached build.log


emerge --info
Portage 2.2.8-r1 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-gentoo-2.2
KiB Mem:     2073212 total,     59340 free
KiB Swap:    1020092 total,   1019984 free
Timestamp of tree: Thu, 24 Apr 2014 16:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo desktop-effects sunrise
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US"
LC_ALL="en_US.ISO-8859-1"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/desktop-effects /var/lib/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa apm asf branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus declarative divx4linux dts dvd dvdr dvdread encode exif ffmpeg firefox flac foomaticdb fortran gdbm gif gnutls gpm hddtemp iconv imlib jack java javascript jpeg kde lame lcms libnotify libwww lirc lm_sensors mad matroska mmx mmxext mng modules mp3 mp4 mpeg musepack ncurses nptl nptlonly nsplugin ogg opengl openmp oss pam pango pcre pdf png policykit ppds qt qt3support qt4 quicktime readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd theora tiff truetype udev udisks upower usb v4l v4l2 vdpau vlc vorbis win32codecs wxwidgets x264 x86 xcb xcomposite xine xml xscreensaver xv xvid xvmc zip zlib" ABI_X86="32" ALSA_CARDS="hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="serial" NETBEANS_MODULES="apisupport ide java nb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-25 13:47:52 UTC
Please attach the config.log file to this bug report.
Comment 2 nicotroost 2014-04-25 16:54:57 UTC
Created attachment 375698 [details]
config.log
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-04-26 11:39:45 UTC
What are those gcc in your path ?

PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.7.3
PATH: /usr/i686-pc-linux-gnu/avr/gcc-bin/4.7.3
PATH: /usr/i486-pc-linux-gnu/gcc-bin/4.1.2
Comment 4 nicotroost 2014-04-26 15:29:03 UTC
/usr/i686-pc-linux-gnu/avr/gcc-bin/4.7.3 was updated to version 4.8.2, 4.7.3 was removed by depclean. I did not switch version yet with gcc-config. Did that now.

/usr/i486-pc-linux-gnu/gcc-bin/4.1.2 is set in /etc/env.d/05gcc-i486-pc-linux-gnu. When i move the file somewhere else and do an env-update, libgphoto2 is compiling fine. I seems to me that /etc/env.d/05gcc-i486-pc-linux-gnu is obsolete, there is also 04gcc-i686-pc-linux-gnu. I'm not sure why it is still there, but never caused any problems.
Comment 5 Pacho Ramos gentoo-dev 2014-04-26 17:48:33 UTC
Maybe:
equery b /etc/env.d/05gcc-i486-pc-linux-gnu

will show you if a package is installing it (if any)
Comment 6 nicotroost 2014-04-26 20:00:05 UTC
Thanks for the suggestion. equery b /etc/env.d/05gcc-i486-pc-linux-gnu comes up with nothing, so i guess the file should not be there. Why would there ever be a i486 when CHOST="i686-pc-linux-gnu"?

Anyway, after removing /etc/env.d/05gcc-i486-pc-linux-gnu libgphoto2 compiles fine, so i'm not sure if this is a bug in libgphoto2 really, although its the only package that gives an error.
Comment 7 SpanKY gentoo-dev 2014-04-26 21:29:50 UTC
such env.d files are created by crossdev when generating cross-compilers.  they're not really relevant -- packages shouldn't randomly try to create dirs.
Comment 8 Pacho Ramos gentoo-dev 2014-05-21 17:58:35 UTC
Not sure where is trying to create the dirs :/
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-08-27 16:35:56 UTC
I really can't see what could trigger a mkdir in https://github.com/gphoto/libgphoto2/blob/master/configure.ac#L346-L384

Anyway since reporter has this fixed now by cleaning up his system, I guess we will just close needinfo, just in case someone doing crossdev would hit this in the future.