public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Sandbox violations when installing a Python package
@ 2017-12-06 14:08 Helmut Jarausch
  2017-12-06 14:32 ` Michael Orlitzky
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Jarausch @ 2017-12-06 14:08 UTC (permalink / raw
  To: gentoo-user

Hi,

I hope somebody can help me.

I've written a new ebuild for  "dev-python/imapclient-1.1.0" (the  
latest version in the tree is version 0.13)
I've just copied dev-python/imapclient-0.13.ebuild and remove a patch  
which is no longer needed.

Ebuilding this packages dies of a Sandbox Violation:

>>> Compiling source in  
>>> /var/tmp/portage/dev-python/imapclient-1.1.0/work/IMAPClient-1.1.0  
>>> ...
  * python3_6: running distutils-r1_run_phase  
distutils-r1_python_compile

>>> snip <<<

   File "/usr/lib64/python3.6/site-packages/setuptools/sandbox.py",  
line 411, in _violation
     raise SandboxViolation(operation, args, kw)
setuptools.sandbox.SandboxViolation: SandboxViolation:  
mkdir('/var/tmp/portage/dev-python/imapclient-1.1.0/work/IMAPClient-1.1.0-python3_6/lib/sphinx',  
511) {}


I have used  "FEATURES=-sandbox" and I've added  addpredict and addread  
in

python_prepare_all() {
	addpredict "/var/tmp/portage/dev-python/${P}/work"
	addread "/var/tmp/portage/dev-python/${P}/work"
	distutils-r1_python_prepare_all
}

but it still raises a Sandbox Violation.

What can I do about this?
How can I debug this.
How to stop 'setuptools' to check for a Sandbox Violation,
particularly as /var/tmp/portage/dev-python/imapclient-1.1.0/work/...
isn't critical.

Many thanks for any hints,
Helmut

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Sandbox violations when installing a Python package
  2017-12-06 14:08 [gentoo-user] Sandbox violations when installing a Python package Helmut Jarausch
@ 2017-12-06 14:32 ` Michael Orlitzky
  2017-12-06 16:09   ` Helmut Jarausch
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Orlitzky @ 2017-12-06 14:32 UTC (permalink / raw
  To: gentoo-user

On 12/06/2017 09:08 AM, Helmut Jarausch wrote:
> Hi,
> 
> I hope somebody can help me.
> 
> I've written a new ebuild for  "dev-python/imapclient-1.1.0" (the  
> latest version in the tree is version 0.13)...
> 
> Ebuilding this packages dies of a Sandbox Violation:
> 

Post the full build log and ebuild? I was able to get the new version to
compile and install after using "sed" to loosen the sphinx dependency,

  sed -i "s/1\.5/2.0/" setup.py || die

and after removing the two lines,

  rm imapclient/six.py || die
  epatch "${FILESDIR}"/0.12-tests.patch

Before I fixed the sphinx dependency, the "build" phase was trying to
download crap from the internet. That failed due to
FEATURES="network-sandbox", but if you're not using that FEATURE, then
it may have crashed further down the line for you.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Sandbox violations when installing a Python package
  2017-12-06 14:32 ` Michael Orlitzky
@ 2017-12-06 16:09   ` Helmut Jarausch
  2017-12-06 16:41     ` Michael Orlitzky
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Jarausch @ 2017-12-06 16:09 UTC (permalink / raw
  To: gentoo-user

On 12/06/2017 03:32:12 PM, Michael Orlitzky wrote:
> On 12/06/2017 09:08 AM, Helmut Jarausch wrote:
> > Hi,
> >
> > I hope somebody can help me.
> >
> > I've written a new ebuild for  "dev-python/imapclient-1.1.0" (the
> > latest version in the tree is version 0.13)...
> >
> > Ebuilding this packages dies of a Sandbox Violation:
> >
> 
> Post the full build log and ebuild? I was able to get the new version  
> to
> compile and install after using "sed" to loosen the sphinx dependency,
> 
>   sed -i "s/1\.5/2.0/" setup.py || die

Hi Michael,
this 'sed' helped me to emerge imapclient-1.1.0

> 
> and after removing the two lines,
> 
>   rm imapclient/six.py || die
>   epatch "${FILESDIR}"/0.12-tests.patch

Version 1.1.0 doesn't have the file imapclient/six.py nor does the  
patch apply.

But then using this version of imapclient fails since it wants
dev-python/backports-ssl (from PyPi).
But  dev-python/backports-ssl-0.0.9  doesn't install here before a name  
clash with dev-python/backports-1.0.
And no, this version of backports doesn't contain the 'ssl' class

How did you solve this.
I nothing helps, I will rename backports to old-backports and patch  
imapclient correspondingly.

Many thanks for  your help,
Helmut


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Sandbox violations when installing a Python package
  2017-12-06 16:09   ` Helmut Jarausch
@ 2017-12-06 16:41     ` Michael Orlitzky
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Orlitzky @ 2017-12-06 16:41 UTC (permalink / raw
  To: gentoo-user

On 12/06/2017 11:09 AM, Helmut Jarausch wrote:
> 
> But then using this version of imapclient fails since it wants
> dev-python/backports-ssl (from PyPi).
> But  dev-python/backports-ssl-0.0.9  doesn't install here before a name  
> clash with dev-python/backports-1.0.
> And no, this version of backports doesn't contain the 'ssl' class
> 
> How did you solve this.

I didn't get that far. Once it installed, I came here to report my progress.


> I nothing helps, I will rename backports to old-backports and patch  
> imapclient correspondingly.

That /sounds/ like a bad idea, but I don't know enough about these
packages to say for sure. If you ask in #gentoo-python, you might
encourage someone who knows how to fix that to do so. There is an open
bug for the new version: https://bugs.gentoo.org/571310


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-06 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06 14:08 [gentoo-user] Sandbox violations when installing a Python package Helmut Jarausch
2017-12-06 14:32 ` Michael Orlitzky
2017-12-06 16:09   ` Helmut Jarausch
2017-12-06 16:41     ` Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox