Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620152 - sci-libs/Fiona-1.5.1 fails tests due to sandbox violation
Summary: sci-libs/Fiona-1.5.1 fails tests due to sandbox violation
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-29 15:07 UTC by Pacho Ramos
Modified: 2020-05-23 09:41 UTC (History)
1 user (show)

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


Attachments
build.log.gz (Fiona-1.5.1:20170529-150634.log.gz,6.08 KB, application/gzip)
2017-05-29 15:07 UTC, Pacho Ramos
Details
build.log.gz (Fiona-1.7.6:20170720-100530.log.gz,312.70 KB, application/gzip)
2017-07-20 10:07 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2017-05-29 15:07:59 UTC
Created attachment 474660 [details]
build.log.gz

Meanwhile, it would be interesting to add support for python 3.5 and 3.6 :)

Searching for cligj
Reading https://pypi.python.org/simple/cligj/
Downloading https://pypi.python.org/packages/fc/53/b89c392f33aa48b3063ad49e4dab70e424659d1fc4103b28b183f477f476/cligj-0.4.0.tar.gz#md5=b1be9e2e9a083e8ab114901645a83826
Best match: cligj 0.4.0
Processing cligj-0.4.0.tar.gz
Writing /var/tmp/portage/sci-libs/Fiona-1.5.1/temp/easy_install-LEQ0Tu/cligj-0.4.0/setup.cfg
Running cligj-0.4.0/setup.py -q bdist_egg --dist-dir /var/tmp/portage/sci-libs/Fiona-1.5.1/temp/easy_install-LEQ0Tu/cligj-0.4.0/egg-dist-tmp-CfT5sL
error: Setup script exited with error: SandboxViolation: mkdir('/var/tmp/portage/sci-libs/Fiona-1.5.1/work/Fiona-1.5.1-python2_7/lib/cligj', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
 * ERROR: sci-libs/Fiona-1.5.1::gentoo failed (test phase):
Comment 1 Sławek Lis (RETIRED) gentoo-dev 2017-05-30 10:31:17 UTC
Updated to version 1.7.6. 
I hadn't add python compat for version 3.6 as one of the deps (dev-python/munch) is not officially supported in python3.6
Comment 2 Pacho Ramos gentoo-dev 2017-05-30 10:42:50 UTC
OK, I will test in a while

Regarding python 3.6... well, if tests are running ok for munch, I guess their maintainers will even welcome to add py3.6 support for it as there are tons of packages to migrate and low manpower to do that ;)
Comment 3 Pacho Ramos gentoo-dev 2017-05-31 13:43:14 UTC
I cannot merge the new version... probably because the patch was not committed by error 
>>> Preparing source in /var/tmp/portage/sci-libs/Fiona-1.7.6/work/Fiona-1.7.6 ...

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /var/tmp/portage/sci-libs/Fiona-1.7.6/files/scriptname-1.7.6.patch
 *   ( scriptname-1.7.6.patch )

 * ERROR: sci-libs/Fiona-1.7.6::gentoo failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_prepare
 *   environment, line 3704:  Called distutils-r1_src_prepare
 *   environment, line 1020:  Called distutils-r1_python_prepare_all
 *   environment, line  925:  Called epatch '/var/tmp/portage/sci-libs/Fiona-1.7.6/files/scriptname-1.7.6.patch'
 *   environment, line 1246:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/Fiona-1.7.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/Fiona-1.7.6::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/sci-libs/Fiona-1.7.6:20170531-134224.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-libs/Fiona-1.7.6/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/Fiona-1.7.6/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/Fiona-1.7.6/work/Fiona-1.7.6'
 * S: '/var/tmp/portage/sci-libs/Fiona-1.7.6/work/Fiona-1.7.6'
Comment 4 Sławek Lis (RETIRED) gentoo-dev 2017-05-31 19:10:29 UTC
Yes, it's already reported #620268.
I wonder why this test is not checked by repoman?
Comment 5 Pacho Ramos gentoo-dev 2017-06-01 07:39:13 UTC
It's reported in bug 431196 , but it looks hard to implement
Comment 6 Pacho Ramos gentoo-dev 2017-06-01 08:10:36 UTC
They still fail:
>>> Test phase: sci-libs/Fiona-1.7.6
 * python2_7: running distutils-r1_run_phase python_test
/usr/bin/python2.7 setup.py test
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'metadata_version'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'requires_python'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'requires_external'
  warnings.warn(msg)
running test
Searching for click-plugins
Reading https://pypi.python.org/simple/click-plugins/
Downloading https://pypi.python.org/packages/77/05/da5c9e19457f20cadfe22c397cd3852577066066f63e40f2baa0831b1693/click-plugins-1.0.3.tar.gz#md5=ddc85a5c51399713f801ae6b63fcac5b
Best match: click-plugins 1.0.3
Processing click-plugins-1.0.3.tar.gz
Writing /var/tmp/portage/sci-libs/Fiona-1.7.6/temp/easy_install-OHq6nk/click-plugins-1.0.3/setup.cfg
Running click-plugins-1.0.3/setup.py -q bdist_egg --dist-dir /var/tmp/portage/sci-libs/Fiona-1.7.6/temp/easy_install-OHq6nk/click-plugins-1.0.3/egg-dist-tmp-UXGwjX
error: Setup script exited with error: SandboxViolation: mkdir('/var/tmp/portage/sci-libs/Fiona-1.7.6/work/Fiona-1.7.6-python2_7/lib/click_plugins', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
 * ERROR: sci-libs/Fiona-1.7.6::gentoo failed (test phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_test
 *   environment, line 3728:  Called distutils-r1_src_test
 *   environment, line 1055:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  342:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3252:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2340:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2338:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  642:  Called distutils-r1_run_phase 'python_test'
 *   environment, line  986:  Called python_test
 *   environment, line 3608:  Called esetup.py 'test'
 *   environment, line 1473:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/Fiona-1.7.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/Fiona-1.7.6::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/sci-libs/Fiona-1.7.6:20170601-080257.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-libs/Fiona-1.7.6/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/Fiona-1.7.6/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/Fiona-1.7.6/work/Fiona-1.7.6'
 * S: '/var/tmp/portage/sci-libs/Fiona-1.7.6/work/Fiona-1.7.6'


Anyway, I see that tests are downloading missing files in src_test phase... that is a bit "ugly" :/ probably that files should be downloaded at the start with USE test if needed :|
Comment 7 Sławek Lis (RETIRED) gentoo-dev 2017-06-01 10:10:47 UTC
It downloads packages required for tests only, so those packages has to be as DEPS in IUSE imho. I'm finishing adding missing `click-plugins' package.
Comment 8 Sławek Lis (RETIRED) gentoo-dev 2017-07-11 05:44:49 UTC
Can you please verify and close?
Comment 9 Pacho Ramos gentoo-dev 2017-07-20 10:07:30 UTC
Created attachment 486008 [details]
build.log.gz

It still fails for me :(
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-23 09:41:42 UTC
Removing.