Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562196 - sys-libs/db-4.8.30-r2 with sys-apps/portage-2.2.22 - autom4te-2.69: cannot open configure: Permission denied
Summary: sys-libs/db-4.8.30-r2 with sys-apps/portage-2.2.22 - autom4te-2.69: cannot op...
Status: RESOLVED DUPLICATE of bug 561368
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-04 09:18 UTC by Markus Walter
Modified: 2015-10-09 15:04 UTC (History)
0 users

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


Attachments
emerge --info (info.txt,6.23 KB, text/plain)
2015-10-04 09:18 UTC, Markus Walter
Details
build log (db-4.8.30-r2:20151004-083754.log,2.56 KB, text/plain)
2015-10-04 09:19 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2015-10-04 09:18:56 UTC
Created attachment 413652 [details]
emerge --info

On my hardened ~amd64 with gcc-5.2.0 I see the following failure for db. This is not present in versions 5.3.28-r2 and 6.0.35.

 * Failed Running autoconf !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/sys-libs/db-4.8.30-r2/temp/autoconf.out

And there we have

***** autoconf *****
***** PWD: /var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/dist
***** autoconf -I aclocal -I aclocal_java --force

configure.ac:461: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal/cxx.m4:16: AC_CXX_WSTRING is expanded from...
configure.ac:461: the top level
configure.ac:482: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
aclocal/types.m4:43: AM_TYPES is expanded from...
configure.ac:482: the top level
configure.ac:482: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
aclocal/types.m4:43: AM_TYPES is expanded from...
configure.ac:482: the top level
autom4te-2.69: cannot open configure: Permission denied
Comment 1 Markus Walter 2015-10-04 09:19:34 UTC
Created attachment 413654 [details]
build log
Comment 2 Radoslaw Szkodzinski 2015-10-04 23:16:20 UTC
Confirming, same issue here with gcc 4.9.3 etc.

Portage 2.2.22 (python 2.7.10-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.21-r1, 4.1.5-rt-rt5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.5-rt-rt5-x86_64-Intel-R-_Xeon-R-_CPU_E31275_@_3.40GHz-with-gentoo-2.2
KiB Mem:    15926956 total,   6896500 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 04 Oct 2015 17:41:48 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25 p1.2) 2.25
ccache version 3.2.3 [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.3::gentoo
dev-util/cmake:           3.3.2::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/proaudio
    sync-type: laymansync
    sync-uri: svn://svn.tuxfamily.org/svnroot/proaudio/proaudio/trunk/overlays/proaudio
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -march=native -mfpmath=sse -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/init.d /usr/share/config/kdm /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/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -fomit-frame-pointer -march=native -mfpmath=sse -pipe"
DISTDIR="/var/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://gentoo.prz.rzeszow.pl/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both"
MAKEOPTS="-j4"
PKGDIR="/var/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache --exclude=/metadata/md5-cache"
PORTAGE_RSYNC_OPTS="--recursive  --links  --safe-links  --perms  --times --force  --whole-file  --delete  --stats  --timeout=120 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus aacs accessibility acl acpi adns adplug aiglx aim alsa amd64 amr amrenc apparmor artswrappersuid audiofile audit auth-dns avahi avx bash-completion berkdb bidi bluetooth bluray branding bzip2 c++0x cairo caps cdda cddb cdio cdr celt cilk cjk cli connman cpudetection cracklib crypt cryptsetup cscope cups curl cxx dbi dbus devil dga djvu dri dri3 drm dts dv dvb dvd dvdr dvdread dvi efi encode exif expat fam fame fat fdk ffmpeg fftw firefox fits flac fluidsynth fontconfig foomatic-db fortran freetype fuse gcj gdbm gif gimpprint glade glamor gme gmp gnome-keyring gnutls gpg gphoto2 gpm graphite graphviz gsm gstreamer gtk gtk3 gtkstyle gudev hardened harfbuzz hdri hfs highlight iconv icq icu idn iec61883 ieee1394 imagemagick imap inotify introspection ipod iproute2 ipv6 irc irda iso jabber jack jbig jemalloc jfs jit joystick jpeg jpeg2k json justify kdeenablefinal kdehiddenvisibility kerberos ladspa lame lash lcd ldap libass libcanberra libnotify libproxy libsamplerate libsecret libsoxr live lm_sensors lto lua lzma lzo mac mad mail matroska mjpeg mms mmx mmxext mng modplug modules mozdevelop mp3 mp3rtp mpeg msn mtp mudflap multilib multimedia musepack musicbrainz ncurses netlink network nls nptl nsplugin ntfs ntlm odf ogg openal opencl openexr opengl openmp openssl openvpn opus orc pam pango pax_kernel pcmcia pcre pda perl pgo pie plymouth png podcast policykit portaudio postproc postscript ppds python qt3support qt4 qt5 quvi rados rar raw rdesktop readline real realtime reiserfs rle rss rtmp samba sasl scanner schroedinger sdl sdlgfx seccomp session sid slp snappy sndfile snmp socks socks5 speex spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssp ssse3 startup-notification stream svg sysfs systemd taglib tcmalloc tcpd telepathy theora threads tiff truetype twolame udev unicode unwind urandom usb v4l v4l2 vaapi vala vcd vim-syntax visualization vorbis vpx wavpack webp wifi win32codecs wmf x264 x265 xattr xcb xen xfs xine xinerama xml xpm xprint xtpax xulrunner xv xvid xvmc yahoo zeitgeist zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 avx" 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" GRUB_PLATFORMS="pc efi-64 xen qemu multiboot" INPUT_DEVICES="evdev void vmmouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher" LINGUAS="en en_US pl" LIRC_DEVICES="audio audio_alsa serial pctv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 arm armeb i386 mips mips64 mips64el mipsel mipsn32 aarch64" QEMU_USER_TARGETS="arm armeb i386 mips mipsel mips64 mips64el mipsn32 x86_64 aarch64" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeon intel radeonsi amdgpu i965" 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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

sys-libs/db-5.3.28-r2::gentoo was built with the following:
USE="cxx -doc -examples -java -tcl -test" ABI_X86="32 64 -x32"
CFLAGS="-O3 -fomit-frame-pointer -march=native -mfpmath=sse -pipe"
CXXFLAGS="-O3 -fomit-frame-pointer -march=native -mfpmath=sse -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both -Wl,--build-id -Wl,--default-symver"


sys-libs/db-6.0.35::gentoo was built with the following:
USE="cxx -doc -examples -java -tcl -test" ABI_X86="32 64 -x32"
CFLAGS="-O3 -fomit-frame-pointer -march=native -mfpmath=sse -pipe"
CXXFLAGS="-O3 -fomit-frame-pointer -march=native -mfpmath=sse -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both -Wl,--build-id -Wl,--default-symver"
Comment 3 karl 2015-10-05 01:43:55 UTC
I'm having this issue.  I found that dist/configure is unpacked from the archive with permissions 0555.  This is why autoconf cannot overwrite it.
Comment 4 karl 2015-10-05 02:05:34 UTC
Downgrading portage from 2.2.22 to 2.2.20.1 resolved this issue for me.
Comment 5 Priit Laes (IRC: plaes) 2015-10-07 11:56:21 UTC
(In reply to karl from comment #3)
> I'm having this issue.  I found that dist/configure is unpacked from the
> archive with permissions 0555.  This is why autoconf cannot overwrite it.

Indeed:

tar t -vf /usr/portage/distfiles/db-4.8.30.tar.gz  |grep dist\/conf
-r-xr-xr-x cupsys/users  46152 2010-04-12 23:25 db-4.8.30/dist/config.guess
-r--r--r-- cupsys/users  16714 2010-04-12 23:25 db-4.8.30/dist/config.hin
-r-xr-xr-x cupsys/users  33941 2010-04-12 23:25 db-4.8.30/dist/config.sub
-r-xr-xr-x cupsys/users 719025 2010-04-12 23:25 db-4.8.30/dist/configure
-r--r--r-- cupsys/users  27992 2010-04-12 23:25 db-4.8.30/dist/configure.ac
Comment 6 Brian Dolbec (RETIRED) gentoo-dev 2015-10-09 15:04:05 UTC
The commit that caused this issue has been reverted and a new commit does it correctly without this problem

*** This bug has been marked as a duplicate of bug 561368 ***