Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592872 - =dev-python/jira-1.0.10 version bump
Summary: =dev-python/jira-1.0.10 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Austin English (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 599988
Blocks:
  Show dependency tree
 
Reported: 2016-09-04 14:46 UTC by Manuel Rüger (RETIRED)
Modified: 2017-05-21 18:42 UTC (History)
0 users

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


Attachments
jira-1.0.9.ebuild.patch (file_592872.txt,1.30 KB, patch)
2017-01-24 13:25 UTC, Manuel Rüger (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger (RETIRED) gentoo-dev 2016-09-04 14:46:41 UTC
Can you please bump to 1.0.7 and if possible add python3_5 support?

https://pypi.python.org/pypi/jira

Thanks!
Comment 1 Austin English (RETIRED) gentoo-dev 2016-10-18 21:20:38 UTC
Hi Manuel,

Sorry for the delay.

I started on this, but I see that they didn't push the tag to github, so there's no release tarball there. I've opened a ticket on their github page, and will look again once they've pushed a release there.

https://github.com/pycontribs/jira/issues/270
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2017-01-21 12:43:39 UTC
It looks like new tags finally arrived:

https://github.com/pycontribs/jira/releases
Comment 3 Austin English (RETIRED) gentoo-dev 2017-01-24 02:00:05 UTC
(In reply to Manuel Rüger from comment #2)
> It looks like new tags finally arrived:
> 
> https://github.com/pycontribs/jira/releases

But unforunately, it doesn't build:

 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 37, in <module>
    test_suite='tests')
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 316, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 371, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match
    return self.obtain(req, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain
    return installer(requirement)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 439, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 665, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 695, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 876, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 1115, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 1103, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: open('/var/tmp/portage/dev-python/jira-1.0.8/work/jira-1.0.8-python2_7/lib/ptr.py', 'wb') {}

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.

I'll try to look more tomorrow (or if you want to, that's cool too :) ).
Comment 4 Manuel Rüger (RETIRED) gentoo-dev 2017-01-24 13:25:14 UTC
Created attachment 461246 [details, diff]
jira-1.0.9.ebuild.patch
Comment 5 Manuel Rüger (RETIRED) gentoo-dev 2017-01-24 13:27:44 UTC
Here's a patch that seems to work for me.
As argparse and ordereddict is available in python2.7, I've dropped that from requirements.txt. Otherwise it would be recorded in the egg info
Comment 6 Austin English (RETIRED) gentoo-dev 2017-01-24 17:47:10 UTC
(In reply to Manuel Rüger from comment #5)
> Here's a patch that seems to work for me.
> As argparse and ordereddict is available in python2.7, I've dropped that
> from requirements.txt. Otherwise it would be recorded in the egg info

Fails for me in similar way:
austin@austin2:/var/portage/repos/gentoo/dev-python/jira$ sudo emerge -av =jira-1.0.9


!!! Error fetching binhost package info from 'http://gentoo.gaikai.org/binhosts/workstation-stable-9999999999//workstation-stable-base-multilib-2015102301'
!!! HTTP Error 404: Not Found


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-python/defusedxml-0.4.1-r1::gentoo  USE="-examples" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)" 48 KiB
[ebuild  N     ] dev-python/jira-1.0.9::gentoo  USE="-filemagic -ipython -oauth" PYTHON_TARGETS="python2_7 python3_4" 0 KiB

Total: 2 packages (2 new), Size of downloads: 48 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) dev-python/defusedxml-0.4.1-r1::gentoo
>>> Installing (1 of 2) dev-python/defusedxml-0.4.1-r1::gentoo
>>> Emerging (2 of 2) dev-python/jira-1.0.9::gentoo
>>> Failed to emerge dev-python/jira-1.0.9, Log file:
>>>  '/var/tmp/portage/dev-python/jira-1.0.9/temp/build.log'
>>> Jobs: 1 of 2 complete, 1 failed                 Load avg: 0.25, 0.11, 0.07
 * Package:    dev-python/jira-1.0.9
 * Repository: gentoo
 * Maintainer: wizardedit@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 userland_GNU workstation
 * FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking jira-1.0.9.tar.gz to /var/tmp/portage/dev-python/jira-1.0.9/work
>>> Source unpacked in /var/tmp/portage/dev-python/jira-1.0.9/work
>>> Preparing source in /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9 ...
 * Will copy sources from /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9
 * python2_7: copying to /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python2_7
 * python3_4: copying to /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python3_4
 * python2_7: running distutils-r1_run_phase python_prepare
 * Will copy sources from /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python2_7/build
 * python2_7: copying to /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python2_7/build-python2_7
 * python3_4: copying to /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python2_7/build-python3_4
 * python3_4: running distutils-r1_run_phase python_prepare
 * Will copy sources from /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python3_4/build
 * python2_7: copying to /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python3_4/build-python2_7
 * python3_4: copying to /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python3_4/build-python3_4
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 37, in <module>
    test_suite='tests')
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 316, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 371, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match
    return self.obtain(req, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain
    return installer(requirement)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 439, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 665, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 695, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 876, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 1115, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 1103, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: open('/var/tmp/portage/dev-python/jira-1.0.9/work/jira-1.0.9-python2_7/build/lib/ptr.py', 'wb') {}

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.
Comment 7 Manuel Rüger (RETIRED) gentoo-dev 2017-04-15 17:10:00 UTC
commit 6820957fb0fb6525799b5c54d5cfc81cb6bb621a
Author: Zac Medico <zmedico@gentoo.org>
Date:   Fri Apr 14 10:56:12 2017 -0700

    dev-python/jira: version bump to 1.0.10
    
    Package-Manager: Portage-2.3.5, Repoman-2.3.2
Comment 8 Denis Dupeyron (RETIRED) gentoo-dev 2017-05-21 18:42:37 UTC
(In reply to Austin English from comment #3)
[...]
> But unforunately, it doesn't build:

Just a quick note which may be useful in the future.

This issue stems from missing build dependencies, namely dev-python/pbr and dev-python/pytest-runner. However, enabling the oauth USE flag would pull those indirectly as runtime dependencies. This is why dev-python/jira would sometimes build, sometimes not.

This is now fixed.