Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254481 - app-dicts/gwaei-0.12.0 sandbox violation
Summary: app-dicts/gwaei-0.12.0 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
: 254667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-10 20:56 UTC by Jouni Rinne
Modified: 2009-01-12 23:53 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,32.49 KB, text/plain)
2009-01-10 20:59 UTC, Jouni Rinne
Details
first attempt at a patch (diff.patch,392 bytes, patch)
2009-01-12 12:05 UTC, Zachary
Details | Diff
gwaei-0.12.0-gentoo.patch (gwaei-0.12.0-gentoo.patch,423 bytes, patch)
2009-01-12 13:53 UTC, MATSUU Takuto (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Rinne 2009-01-10 20:56:36 UTC
I get this when trying to install gwaei:

>>> Install gwaei-0.12.0 into /var/tmp/portage/app-dicts/gwaei-0.12.0/image/ category app-dicts
make -j3 DESTDIR=/var/tmp/portage/app-dicts/gwaei-0.12.0/image/ 'scrollkeeper_localstate_dir=/var/tmp/portage/app-dicts/gwaei-0.12.0/image//var/lib/scrollkeeper ' install 
Making install in docs
make[1]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/docs"
make[2]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/docs"
make[2]: Kohteelle "install-exec-am" ei tarvitse tehdä mitään.
test -z "/usr/share/gnome/help/gwaei/C" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gnome/help/gwaei/C"
 /usr/bin/install -c -m 644 'C/index.xml' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gnome/help/gwaei/C/index.xml'
make[2]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/docs"
make[1]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/docs"
Making install in src
make[1]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src"
make[2]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src"
test -z "/usr/bin" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/bin"
make[2]: Kohteelle "install-data-am" ei tarvitse tehdä mitään.
  /usr/bin/install -c 'gwaei' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/bin/gwaei'
make[2]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src"
make[1]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src"
Making install in src/schemas
make[1]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/schemas"
make[2]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/schemas"
make[2]: Kohteelle "install-exec-am" ei tarvitse tehdä mitään.
GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults \
	/usr/bin/gconftool-2 --makefile-install-rule ../../src/schemas/gwaei.schemas
test -z "/etc/gconf/schemas" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//etc/gconf/schemas"
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL on asetettu: kaavaimet eivät asennu
`/usr/bin/killall -HUP gconfd-2 || true`
 /usr/bin/install -c -m 644 '../../src/schemas/gwaei.schemas' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//etc/gconf/schemas/gwaei.schemas'
Giving gconfd 4 extra seconds to update itself...
make[2]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/schemas"
make[1]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/schemas"
Making install in src/xml
make[1]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/xml"
make[2]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/xml"
make[2]: Kohteelle "install-exec-am" ei tarvitse tehdä mitään.
test -z "/usr/share/gwaei" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei"
 /usr/bin/install -c -m 644 'main.xml' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei/main.xml'
 /usr/bin/install -c -m 644 'radicals.xml' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei/radicals.xml'
 /usr/bin/install -c -m 644 'settings.xml' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei/settings.xml'
 /usr/bin/install -c -m 644 '../kanjipad/kanjipad.xml' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei/kanjipad.xml'
make[2]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/xml"
make[1]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/xml"
Making install in src/kpengine
make[1]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/kpengine"
make[2]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/kpengine"
make[2]: Kohteelle "install-exec-am" ei tarvitse tehdä mitään.
test -z "/usr/share/gwaei" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei"
test -z "/usr/share/gwaei" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei"
 /usr/bin/install -c -m 644 'jdata.dat' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei/jdata.dat'
  /usr/bin/install -c 'kpengine' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/gwaei/kpengine'
make[2]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/kpengine"
make[1]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/kpengine"
Making install in src/img
make[1]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/img"
make[2]: Siirrytään hakemistoon "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/img"
make[2]: Kohteelle "install-exec-am" ei tarvitse tehdä mitään.
touch -c /usr/share/icons/hicolor
test -z "/usr/share/icons/hicolor/16x16/apps" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/icons/hicolor/16x16/apps"
ACCESS DENIED  utimensat: /usr/share/icons/hicolor
test -z "/usr/share/icons/hicolor/24x24/apps" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/icons/hicolor/24x24/apps"
 /usr/bin/install -c -m 644 '16x16/gwaei.png' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/icons/hicolor/16x16/apps/gwaei.png'
test -z "/usr/share/icons/hicolor/32x32/apps" || /bin/mkdir -p "/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/icons/hicolor/32x32/apps"
 /usr/bin/install -c -m 644 '24x24/gwaei.png' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/icons/hicolor/24x24/apps/gwaei.png'
touch: asetettaessa tiedoston ”/usr/share/icons/hicolor” aikoja: Lupa evätty
make[2]: *** [update-icon-cache] Virhe 1
make[2]: *** Odotetaan keskeneräisiä töitä....
 /usr/bin/install -c -m 644 '32x32/gwaei.png' '/var/tmp/portage/app-dicts/gwaei-0.12.0/image//usr/share/icons/hicolor/32x32/apps/gwaei.png'
make[2]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/img"
make[1]: *** [install-am] Virhe 2
make[1]: Poistutaan hakemistosta "/var/tmp/portage/app-dicts/gwaei-0.12.0/work/gwaei-0.12.0/src/img"
make: *** [install-recursive] Virhe 1
 * 
 * ERROR: app-dicts/gwaei-0.12.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line  720:  Called gnome2_src_install
 *             environment, line  669:  Called die
 * The specific snippet of code:
 *           emake DESTDIR="${D}" "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" install || die "install failed";
 *  The die message:
 *   install failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-dicts/gwaei-0.12.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-dicts/gwaei-0.12.0/temp/environment'.
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-5170.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: utimensat
S: deny
P: /usr/share/icons/hicolor
A: /usr/share/icons/hicolor
R: /usr/share/icons/hicolor
C: touch -c /usr/share/icons/hicolor 
--------------------------------------------------------------------------------

>>> Failed to emerge app-dicts/gwaei-0.12.0, Log file:

>>>  '/var/tmp/portage/app-dicts/gwaei-0.12.0/temp/build.log'
Comment 1 Jouni Rinne 2009-01-10 20:59:08 UTC
Created attachment 178000 [details]
build.log

Oh, and sandbox is version 1.3.2
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-11 00:30:51 UTC
1. read metadata.xml before assigning bugs or don't touch fields you don't know (components here)
2. please don't forget to post your emerge --info
3. please remember that more developers will be able to read your build.log in english
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-11 00:32:42 UTC
4. forgot to say that the issue seems to be that gwaei is trying to run update gtk icon cache in make install which it shouldn't do has it is automatically done by gnome2 eclass at pkg_postinst time or the ebuild should call the appropriate function from fdo-mime or one of the other gnome eclass.
Comment 4 Zachary 2009-01-12 08:33:58 UTC
(In reply to comment #3)
> 4. forgot to say that the issue seems to be that gwaei is trying to run update
> gtk icon cache in make install which it shouldn't do has it is automatically
> done by gnome2 eclass at pkg_postinst time or the ebuild should call the
> appropriate function from fdo-mime or one of the other gnome eclass.
> 

I'm the developer of gWaei.  Should the Makefile actually be calling gtk-update-icon-cache instead of touch?  I didn't personally make the ebuild, but it doesn't look like it's calling touch itself, so I think it is a problem in the Makefile.  The icons don't seem to update otherwise.
Comment 5 Zachary 2009-01-12 11:50:53 UTC
What would fix the problem is if 

src_compile() {
    econf --disable-schemas-install || die "econf failed"
    emake || die "emake failed"
}

is added to the ebuild.  The poking of the icons directory is stopped if --disable-schemas-install is set in configure, and this would stop the premature schemas installation.
Comment 6 Zachary 2009-01-12 12:05:15 UTC
Created attachment 178159 [details, diff]
first attempt at a patch 

An attempted patch.  Should add the needed lines.  Need to know if this works or not.
Comment 7 MATSUU Takuto (RETIRED) gentoo-dev 2009-01-12 13:53:05 UTC
Created attachment 178168 [details, diff]
gwaei-0.12.0-gentoo.patch
Comment 8 MATSUU Takuto (RETIRED) gentoo-dev 2009-01-12 14:06:09 UTC
fixed in cvs now.
Comment 9 MATSUU Takuto (RETIRED) gentoo-dev 2009-01-12 23:53:01 UTC
*** Bug 254667 has been marked as a duplicate of this bug. ***