Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484554 - sys-devel/gettext-0.18.3.1 causes sandbox errors in eautoreconf -> autopoint --force, breaks various ebuilds (app-accessibility/yasr, dev-util/d-feet etc.)
Summary: sys-devel/gettext-0.18.3.1 causes sandbox errors in eautoreconf -> autopoint ...
Status: RESOLVED DUPLICATE of bug 487794
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-11 05:38 UTC by Patrick Lauer
Modified: 2013-10-25 11:07 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-09-11 05:38:34 UTC
>>> It appears that 'unpack' has already executed for 'yasr-0.6.9-r1'; skipping.
>>> Remove '/chroot/build/portage/app-accessibility/yasr-0.6.9-r1/.unpacked' to force unpack.
>>> Preparing source in /chroot/build/portage/app-accessibility/yasr-0.6.9-r1/work/yasr-0.6.9 ...
 * Applying yasr-0.6.9-automake113.patch ...                                                                                                                                                                                          [ ok ]
 * Applying yasr-0.6.9-gettext018.patch ...                                                                                                                                                                                           [ ok ]
 * Applying yasr-0.6.9-gcc43.patch ...                                                                                                                                                                                                [ ok ]
 * Applying yasr-0.6.9-remove-m4.patch ...                                                                                                                                                                                            [ ok ]
 * Running eautoreconf in '/chroot/build/portage/app-accessibility/yasr-0.6.9-r1/work/yasr-0.6.9' ...
 * Running autopoint --force ...
 * ACCESS DENIED:  unlinkat:     /codeset.m4
 * ACCESS DENIED:  open_wr:      /codeset.m4
 * ACCESS DENIED:  unlinkat:     /fcntl-o.m4
 * ACCESS DENIED:  open_wr:      /fcntl-o.m4
 * ACCESS DENIED:  unlinkat:     /gettext.m4
 * ACCESS DENIED:  open_wr:      /gettext.m4
 * ACCESS DENIED:  unlinkat:     /glibc2.m4
 * ACCESS DENIED:  open_wr:      /glibc2.m4
 * ACCESS DENIED:  unlinkat:     /glibc21.m4
 * ACCESS DENIED:  open_wr:      /glibc21.m4
 * ACCESS DENIED:  unlinkat:     /iconv.m4
 * ACCESS DENIED:  open_wr:      /iconv.m4
 * ACCESS DENIED:  unlinkat:     /intdiv0.m4
 * ACCESS DENIED:  open_wr:      /intdiv0.m4
 * ACCESS DENIED:  unlinkat:     /intl.m4
 * ACCESS DENIED:  open_wr:      /intl.m4
 * ACCESS DENIED:  unlinkat:     /intldir.m4
 * ACCESS DENIED:  open_wr:      /intldir.m4
 * ACCESS DENIED:  unlinkat:     /intlmacosx.m4
 * ACCESS DENIED:  open_wr:      /intlmacosx.m4
 * ACCESS DENIED:  unlinkat:     /intmax.m4
 * ACCESS DENIED:  open_wr:      /intmax.m4
 * ACCESS DENIED:  unlinkat:     /inttypes-pri.m4
 * ACCESS DENIED:  open_wr:      /inttypes-pri.m4
 * ACCESS DENIED:  unlinkat:     /inttypes_h.m4
 * ACCESS DENIED:  open_wr:      /inttypes_h.m4
 * ACCESS DENIED:  unlinkat:     /lcmessage.m4
 * ACCESS DENIED:  open_wr:      /lcmessage.m4
 * ACCESS DENIED:  unlinkat:     /lib-ld.m4
 * ACCESS DENIED:  open_wr:      /lib-ld.m4
 * ACCESS DENIED:  unlinkat:     /lib-link.m4
 * ACCESS DENIED:  open_wr:      /lib-link.m4
 * ACCESS DENIED:  unlinkat:     /lib-prefix.m4
 * ACCESS DENIED:  open_wr:      /lib-prefix.m4
 * ACCESS DENIED:  unlinkat:     /lock.m4
 * ACCESS DENIED:  open_wr:      /lock.m4
 * ACCESS DENIED:  unlinkat:     /longlong.m4
 * ACCESS DENIED:  open_wr:      /longlong.m4
 * ACCESS DENIED:  unlinkat:     /nls.m4
 * ACCESS DENIED:  open_wr:      /nls.m4
 * ACCESS DENIED:  unlinkat:     /po.m4
 * ACCESS DENIED:  open_wr:      /po.m4
 * ACCESS DENIED:  unlinkat:     /printf-posix.m4
 * ACCESS DENIED:  open_wr:      /printf-posix.m4
 * ACCESS DENIED:  unlinkat:     /progtest.m4
 * ACCESS DENIED:  open_wr:      /progtest.m4
 * ACCESS DENIED:  unlinkat:     /size_max.m4
 * ACCESS DENIED:  open_wr:      /size_max.m4
 * ACCESS DENIED:  unlinkat:     /stdint_h.m4
 * ACCESS DENIED:  open_wr:      /stdint_h.m4
 * ACCESS DENIED:  unlinkat:     /threadlib.m4
 * ACCESS DENIED:  open_wr:      /threadlib.m4
 * ACCESS DENIED:  unlinkat:     /uintmax_t.m4
 * ACCESS DENIED:  open_wr:      /uintmax_t.m4
 * ACCESS DENIED:  unlinkat:     /visibility.m4
 * ACCESS DENIED:  open_wr:      /visibility.m4
 * ACCESS DENIED:  unlinkat:     /wchar_t.m4
 * ACCESS DENIED:  open_wr:      /wchar_t.m4
 * ACCESS DENIED:  unlinkat:     /wint_t.m4
 * ACCESS DENIED:  open_wr:      /wint_t.m4
 * ACCESS DENIED:  unlinkat:     /xsize.m4
 * ACCESS DENIED:  open_wr:      /xsize.m4                                                                                                                                                                                            [ ok ]
 * Running aclocal ...                                                                                                                                                                                                                [ ok ]
 * Running autoconf ...                                                                                                                                                                                                               [ ok ]
 * Running autoheader ...                                                                                                                                                                                                             [ ok ]
 * Running automake --add-missing --copy ...                                                                                                                                                                                          [ ok ]
>>> Source prepared.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-26054.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: unlinkat
S: deny
P: /codeset.m4
A: /codeset.m4
R: /codeset.m4
C: rm -f /codeset.m4 

Portage 2.2.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.1, glibc-2.17, 3.10.6-gentoo x86_64)
=================================================================
System uname: Linux-3.10.6-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7920972 total,   2721876 free
KiB Swap:   25165812 total,  25165812 free
Timestamp of tree: Unknown
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-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.11.2::kde
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
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, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo laurentb x11 kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/chroot/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug 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="http://mirrors.sohu.com/gentoo/ http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="/chroot/build"
PORTDIR="/home/pl/code/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/laurentb /var/lib/layman/x11 /home/pl/code/kde"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli compat consolekit crypt cups curl cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm gif gmp gnutls gpm gtk iconv icq idn imagemagick imap imlib innodb ipod ipv6 jabber javascript jingle jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp openvg oscar pam pango pcre pdf perl php plasma png policykit ppds python qt3support qt4 quicktime raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg syslog taglib tcpd threads tidy tiff tk truetype udev udisks unicode upower usb vdpau vlc vorbis wifi wmf wxwindows x264 xattr xcb xcomposite xine xinerama xml xmlrpc xpm xscreensaver xulrunner xv xvid zlib" ABI_X86="64" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel or32 ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 unicore32 xtensa xtensaeb" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel or32 ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Chris Brannon (RETIRED) gentoo-dev 2013-09-12 01:21:58 UTC
Since the sandbox violations were all happening in autopoint, I suspected
that the problem might have something to do with gettext.
I couldn't reproduce it with sys-devel/gettext-0.18.2, but when
I upgraded to sys-devel/gettext-0.18.3.1, I found the same sandbox
violations.  So maybe this bug should be retitled
app-accessibility/yasr fails to build with sys-devel/gettext-0.18.3.1.
Comment 2 Chris Brannon (RETIRED) gentoo-dev 2013-09-13 14:34:52 UTC
I've found the problem, but not the solution.
The autopoint shell script from gettext defines a variable called m4dir,
into which gettext-related .m4 files are copied.
In gettext 0.18.2 (and presumably earlier versions), $m4dir defaulted to
m4.  Sometime between gettext 0.18.2 and gettext 0.18.3.1, that changed,
 and m4dir defaults to the empty string.  It may not even be set!
There are two tests that could set m4dir.
One looks for AC_CONFIG_MACRO_DIR in configure.ac.
The other looks at ACLOCAL_AMFLAGS in Makefile.am (if it exists).
If none of these tests finds a suitable directory, m4dir is unset.
When autopoint runs for yasr, m4dir is never set, so autopoint copies
lots of .m4 files to /.

The fix for bug #246926 added yasr-0.6.9-remove-m4.patch, which
removes the line ACLOCAL_AMFLAGS = ... from Makefile.am.
Re-adding that line would probably fix the issue with gettext-0.18.3.1's
autopoint, but what might it break in the process?
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-02 21:54:45 UTC
Assigning this to base-system since this is a gettext bug or misfeature.

(And in addition to yasr, it also breaks dev-util/d-feet)
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-02 22:09:56 UTC
For now, added a workaround for d-feet, but this is obviously not an ideal situation. It needs to either be fixed in gettext or in autotools.eclass.

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/d-feet/ChangeLog,v
retrieving revision 1.22
diff -u -r1.22 ChangeLog
--- ChangeLog	1 Sep 2013 19:22:53 -0000	1.22
+++ ChangeLog	2 Oct 2013 22:07:13 -0000
@@ -2,6 +2,10 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo-x86/dev-util/d-feet/ChangeLog,v 1.22 2013/09/01 19:22:53 pacho Exp $
 
+  02 Oct 2013; Alexandre Rostovtsev <tetromino@gentoo.org> d-feet-0.3.6.ebuild:
+  Work around gettext-0.18.3.1 causing sandbox failures in eautoreconf (bug
+  #484554).
+
   01 Sep 2013; Pacho Ramos <pacho@gentoo.org> -d-feet-0.1.15.ebuild,
   -d-feet-0.3.3.ebuild, d-feet-0.3.6.ebuild:
   Add missing dep on yelp-tools (#482428 by Marc Burkhardt), drop old.
Index: d-feet-0.3.6.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/d-feet/d-feet-0.3.6.ebuild,v
retrieving revision 1.2
diff -u -r1.2 d-feet-0.3.6.ebuild
--- d-feet-0.3.6.ebuild	1 Sep 2013 19:22:53 -0000	1.2
+++ d-feet-0.3.6.ebuild	2 Oct 2013 22:07:13 -0000
@@ -35,7 +35,10 @@
 src_prepare() {
 	# Do not run update-desktop-database (sandbox violation)
 	sed -i '/^UPDATE_DESKTOP/s:=.*:=true:' data/Makefile.am || die
-	eautoreconf
+
+	# Set m4dir as workaround for gettext-0.18.3.1 silliness, bug #484554
+	mkdir m4 || die
+	m4dir=m4 eautoreconf
 	gnome2_src_prepare
 }
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-10-25 11:05:49 UTC

*** This bug has been marked as a duplicate of bug 485952 ***
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-10-25 11:07:36 UTC
Sorry, had wrong bug-id in clipboard...

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