Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318797 - app-text/gtranslator-1.9.10: ACCESS VIOLATION when installing
Summary: app-text/gtranslator-1.9.10: ACCESS VIOLATION when installing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-05-06 19:07 UTC by Pacho Ramos
Modified: 2011-01-12 10:15 UTC (History)
1 user (show)

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


Attachments
build.log (gtranslator-1.9.10:20100506-190239.log,47.93 KB, text/plain)
2010-05-06 19:08 UTC, Pacho Ramos
Details
disable call to update-desktop-database (gtranslator-1.9.11_update_desktop.patch,680 bytes, patch)
2010-06-11 08:58 UTC, Robert G. Jakabosky
Details | Diff
new ebuild for this package. (gtranslator-1.9.11.ebuild,1.61 KB, text/plain)
2010-06-11 08:59 UTC, Robert G. Jakabosky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2010-05-06 19:07:52 UTC
I get the following when running "LINGUAS="" emerge -1 gtranslator"
make[5]: Entering directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop/icons'
*** Icon cache not updated.  After (un)install, run this:
***   gtk-update-icon-cache -f -t /usr/share/icons/hicolor
make[5]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop/icons'
make[4]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop/icons'
make[3]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop/icons'
make[3]: Entering directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop'
make[4]: Entering directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/applications" || /bin/mkdir -p "/var/tmp/portage/app-text/gtranslator-1.9.10/image//usr/share/applications"
 /usr/bin/install -c -m 644 gtranslator.desktop '/var/tmp/portage/app-text/gtranslator-1.9.10/image//usr/share/applications'
make  install-data-hook
make[5]: Entering directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop'
if [ -f /usr/share/applications/defaults.list ] ; then if which update-desktop-database>/dev/null 2>&1 ; then update-desktop-database /usr/share/applications; fi fi
Warning in file "/usr/share/applications/file-roller.desktop": usage of MIME type "multipart/x-zip" is discouraged ("multipart" is a media type that probably does not make sense in this context)
Error in file "/usr/share/applications/gnumeric.desktop": "zz-application/zz-winassoc-xls" is an invalid MIME type ("zz-application" is an unregistered media type)
Warning in file "/usr/share/applications/nautilus-folder-handler.desktop": usage of MIME type "x-directory/gnome-default-handler" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent)
Warning in file "/usr/share/applications/nautilus-folder-handler.desktop": usage of MIME type "x-directory/normal" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent)
ACCESS DENIED  open_wr:      /usr/share/applications/.mimeinfo.cache.CKHCCV
The databases in [/usr/share/applications] could not be updated.
make[5]: *** [install-data-hook] Error 1
make[5]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop'
make[4]: *** [install-data-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data/desktop'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10/data'
make: *** [install-recursive] Error 1
 * ERROR: app-text/gtranslator-1.9.10 failed:
 *   install failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 1598:  Called gnome2_src_install
 *   environment, line 1343:  Called die
 * The specific snippet of code:
 *           emake DESTDIR="${D}" "scrollkeeper_localstate_dir=${ED}${sk_tmp_dir} " "$@" install || die "install failed";
 * 
 * If you need support, post the output of 'emerge --info =app-text/gtranslator-1.9.10',
 * the complete build log and the output of 'emerge -pqv =app-text/gtranslator-1.9.10'.
 * The complete build log is located at '/var/log/portage/build/app-text/gtranslator-1.9.10:20100506-190239.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/gtranslator-1.9.10/temp/environment'.
 * S: '/var/tmp/portage/app-text/gtranslator-1.9.10/work/gtranslator-1.9.10'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-3603.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: open_wr
S: deny
P: /usr/share/applications/.mimeinfo.cache.CKHCCV
A: /usr/share/applications/.mimeinfo.cache.CKHCCV
R: /usr/share/applications/.mimeinfo.cache.CKHCCV
C: update-desktop-database /usr/share/applications 
--------------------------------------------------------------------------------

>>> Failed to emerge app-text/gtranslator-1.9.10, Log file:

>>>  '/var/log/portage/build/app-text/gtranslator-1.9.10:20100506-190239.log'


Reproducible: Always




My emerge --info:
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.13
Timestamp of tree: Thu, 06 May 2010 17:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests autoaddcvs ccache cvs distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign split-log strict test unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/local/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/suka /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 applet avahi bash-completion berkdb branding bzip2 cairo cddb cdinstall cdr cleartype cli consolekit cracklib crypt css cups cxx daap dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gdu gif glitz gnome gnome-keyring gpm gstreamer gtk hal iconv imagemagick java jpeg kdehiddenvisibility kpathsea latex lcms libnotify lyx lzma mad mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musicbrainz nautilus ncurses network network-cron nls nptl nptlonly ntfs nvidia ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reflection reiserfs scanner sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs t1lib tcpd threads tiff truetype unicode usb v4l2 vcd vorbis webkit x264 xattr xcb xinetd xml xmp xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 cache 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2010-05-06 19:08:11 UTC
Created attachment 230631 [details]
build.log
Comment 2 Robert G. Jakabosky 2010-06-11 07:55:10 UTC
This problem still happens with app-text/gtranslator-1.9.11
Comment 3 Robert G. Jakabosky 2010-06-11 08:58:03 UTC
Created attachment 234915 [details, diff]
disable call to update-desktop-database
Comment 4 Robert G. Jakabosky 2010-06-11 08:59:18 UTC
Created attachment 234917 [details]
new ebuild for this package.

Use this ebuild + the attached patch to fix this bug.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-06-11 10:04:17 UTC
that patch doesn't look right. Build system should not call update-desktop-database at all in our case. Generally this is achieved by a --disable-update-desktop-database or some such configure switch.
Comment 6 Robert G. Jakabosky 2010-06-11 22:38:11 UTC
(In reply to comment #5)
> that patch doesn't look right. Build system should not call
> update-desktop-database at all in our case. Generally this is achieved by a
> --disable-update-desktop-database or some such configure switch.
> 

There is no '--disable-update-desktop-database' config switch.  The patch makes the build system only call 'update-desktop-database' when $(DESTDIR) is empty.  I copied the same logic from another Makefile.am in gtranslator that is used to disabled calling 'gtk-update-icon-cache'.

I was able to install gtranslator using the new ebuild & patch.
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-01-12 10:15:30 UTC
+  12 Jan 2011; Gilles Dartiguelongue <eva@gentoo.org>
+  -gtranslator-1.9.11.ebuild, gtranslator-1.9.13.ebuild,
+  +files/gtranslator-1.9.13-desktop-database.patch:
+  Fix sandbox violation due to unneeded call to update-desktop-database, bug
+  #318797.

Applied patch from upstream, thanks for reporting.