Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329581 - dev-perl/Gtk2-WebKit-0.08 fails with sandbox violation in /root/.local/share/webkit
Summary: dev-perl/Gtk2-WebKit-0.08 fails with sandbox violation in /root/.local/share/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.12.1
  Show dependency tree
 
Reported: 2010-07-23 13:51 UTC by Sergiy Borodych
Modified: 2013-12-23 18:42 UTC (History)
4 users (show)

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


Attachments
emerge.info (emerge.info,4.30 KB, text/plain)
2010-07-23 13:52 UTC, Sergiy Borodych
Details
perl.info (perl.info,9.00 KB, text/plain)
2010-07-23 13:52 UTC, Sergiy Borodych
Details
Gtk2-WebKit/Gtk2-WebKit-0.08.ebuild.diff (Gtk2-WebKit-0.08.ebuild.diff,666 bytes, text/plain)
2010-07-24 01:47 UTC, David Abbott (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergiy Borodych 2010-07-23 13:51:39 UTC
$subj during perl-cleaner --all
and after I try also
# emerge -v -1 dev-perl/Gtk2-WebKit

...
[ CC xs/WebKitWebWindowFeatures.c ]
cp WebKit.bs blib/arch/auto/Gtk2/WebKit/WebKit.bs
chmod 644 blib/arch/auto/Gtk2/WebKit/WebKit.bs
rm -f blib/arch/auto/Gtk2/WebKit/WebKit.so
[ LD blib/arch/auto/Gtk2/WebKit/WebKit.so ]
chmod 755 blib/arch/auto/Gtk2/WebKit/WebKit.so
Generating POD...
Loaded 2 extra types from /usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/Pango/Install/doctypes
Loaded 8 extra types from /usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/Glib/Install/doctypes
Loaded 8 extra types from /usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/Gtk2/Install/doctypes
Loaded 4 extra types from /usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/Cairo/Install/doctypes
ACCESS DENIED  mkdir:        /root/.local/share/webkit
Creating POD index...
Manifying blib/man3/Gtk2::WebKit::WebPolicyDecision.3pm
Manifying blib/man3/Gtk2::WebKit::Download.3pm
Manifying blib/man3/Gtk2::WebKit::WebWindowFeatures.3pm
Manifying blib/man3/Gtk2::WebKit::NetworkRequest.3pm
Manifying blib/man3/Gtk2::WebKit::WebBackForwardList.3pm
Manifying blib/man3/Gtk2::WebKit::WebView.3pm
Manifying blib/man3/Gtk2::WebKit::WebNavigationAction.3pm
Manifying blib/man3/Gtk2::WebKit::WebSettings.3pm
Manifying blib/man3/Gtk2::WebKit::index.3pm
Manifying blib/man3/Gtk2::WebKit::WebFrame.3pm
Manifying blib/man3/Gtk2::WebKit.3pm
Manifying blib/man3/Gtk2::WebKit::WebInspector.3pm
Manifying blib/man3/Gtk2::WebKit::WebHistoryItem.3pm
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-9840.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: mkdir
S: deny
P: /root/.local/share/webkit
A: /root/.local/share/webkit
R: /root/.local/share/webkit
C: /usr/bin/perl5.12.1 -I blib/lib -I blib/arch -MGlib::GenPod -MGtk2::WebKit -e add_types (qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.1\/x86_64\-linux\-thread\-multi\/Pango\/Install\/doctypes), qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.1\/x86_64\-linux\-thread\-multi\/Glib\/Install\/doctypes), qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.1\/x86_64\-linux\-thread\-multi\/Gtk2\/Install\/doctypes), qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.1\/x86_64\-linux\-thread\-multi\/Cairo\/Install\/doctypes));  Glib::GenPod::set_copyright(qq/Copyright (C) 2008, Florian Ragwitz/); Glib::GenPod::set_main_mod(qq(Gtk2::WebKit));  xsdoc2pod(q(build/doc.pl), q(blib/lib), q(build/podindex)); 
--------------------------------------------------------------------------------
Comment 1 Sergiy Borodych 2010-07-23 13:52:07 UTC
Created attachment 239921 [details]
emerge.info
Comment 2 Sergiy Borodych 2010-07-23 13:52:34 UTC
Created attachment 239923 [details]
perl.info

perl-info
Comment 3 David Abbott (RETIRED) gentoo-dev 2010-07-23 23:43:26 UTC
Somehow it was installed here at some point;
[ebuild   R   ] dev-perl/Gtk2-WebKit-0.08  0 kB
but fails with the same error on 5.10.1 also
Gtk2-WebKit-0.07 now fails also
I tried sandbox 2.1 and still fails
Comment 4 David Abbott (RETIRED) gentoo-dev 2010-07-24 01:47:40 UTC
Created attachment 239969 [details]
Gtk2-WebKit/Gtk2-WebKit-0.08.ebuild.diff

This works using addpredict, but I am learning :) so waiting for comments from kent and/or tove
Comment 5 P Purkayastha 2010-12-11 08:47:45 UTC
Any update on whether the solution in #4 is acceptable? This has been working fine for me through the 3 times I emerged the package (on amd64).
Comment 6 Sergiy Borodych 2010-12-11 14:56:44 UTC
This patch for ebuild work for me too
and install Gtk2-WebKit fine

but repoman say:

  upstream.workaround           1
   dev-perl/Gtk2-WebKit/Gtk2-WebKit-0.08.ebuild: Ebuild calls addpredict on line: 25
Comment 7 Torsten Veller (RETIRED) gentoo-dev 2010-12-17 07:36:33 UTC
Also consider building as non-root: FEATURES="userpriv" (+ FEATURES="usersandbox").
(see make.conf(5))
Comment 8 Julian Ospald 2012-01-31 21:44:59 UTC
similar in dev-perl/Gtk2-WebKit-0.09

if you dont want to add the addpredict to that ebuild, there should be at least an ewarn/einfo about that issue

Generating POD...
Loaded 2 extra types from /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/Pango/Install/doctypes
Loaded 8 extra types from /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/Glib/Install/doctypes
Loaded 8 extra types from /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/Gtk2/Install/doctypes
Loaded 4 extra types from /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux/Cairo/Install/doctypes
ACCESS DENIED  open_wr:      /home/jule/.local/share/webkit/icondatabase/WebpageIcons.db
Creating POD index...
Manifying blib/man3/Gtk2::WebKit::WebPolicyDecision.3pm
Manifying blib/man3/Gtk2::WebKit::SecurityOrigin.3pm
Manifying blib/man3/Gtk2::WebKit::WebSettings.3pm
Manifying blib/man3/Gtk2::WebKit::index.3pm
Manifying blib/man3/Gtk2::WebKit::WebInspector.3pm
Manifying blib/man3/Gtk2::WebKit::Download.3pm
Manifying blib/man3/Gtk2::WebKit::WebWindowFeatures.3pm
Manifying blib/man3/Gtk2::WebKit::WebDataSource.3pm
Manifying blib/man3/Gtk2::WebKit::NetworkRequest.3pm
Manifying blib/man3/Gtk2::WebKit::WebView.3pm
Manifying blib/man3/Gtk2::WebKit::WebNavigationAction.3pm
Manifying blib/man3/Gtk2::WebKit::WebBackForwardList.3pm
Manifying blib/man3/Gtk2::WebKit::WebResource.3pm
Manifying blib/man3/Gtk2::WebKit::WebFrame.3pm
Manifying blib/man3/Gtk2::WebKit::GeolocationPolicyDecision.3pm
Manifying blib/man3/Gtk2::WebKit::WebDatabase.3pm
Manifying blib/man3/Gtk2::WebKit.3pm
Manifying blib/man3/Gtk2::WebKit::WebHistoryItem.3pm
Manifying blib/man3/Gtk2::WebKit::NetworkResponse.3pm
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-5050.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: /home/jule/.local/share/webkit/icondatabase/WebpageIcons.db
A: /home/jule/.local/share/webkit/icondatabase/WebpageIcons.db
R: /home/jule/.local/share/webkit/icondatabase/WebpageIcons.db
C: /usr/bin/perl5.12.4 -I blib/lib -I blib/arch -MGlib::GenPod -MGtk2::WebKit -e add_types (qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.4\/x86_64\-linux\/Pango\/Install\/doctypes), qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.4\/x86_64\-linux\/Glib\/Install\/doctypes), qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.4\/x86_64\-linux\/Gtk2\/Install\/doctypes), qq(\/usr\/lib64\/perl5\/vendor_perl\/5\.12\.4\/x86_64\-linux\/Cairo\/Install\/doctypes));  Glib::GenPod::set_copyright(qq/Copyright (C) 2008, Florian Ragwitz/); Glib::GenPod::set_main_mod(qq(Gtk2::WebKit));  xsdoc2pod(q(build/doc.pl), q(blib/lib), q(build/podindex)); 
--------------------------------------------------------------------------------
Comment 9 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2013-12-23 18:42:06 UTC
Don't fails anymore with perl-5.16.3 (I have tested last stable-0.90.0)