Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471134 - dev-db/barman-1.2.0: NameError: name 'execfile' is not defined
Summary: dev-db/barman-1.2.0: NameError: name 'execfile' is not defined
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-24 08:13 UTC by Dieter Verfaillie
Modified: 2013-05-24 08:42 UTC (History)
0 users

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


Attachments
Updated ebuild (barman-1.2.0-r1.ebuild,700 bytes, text/plain)
2013-05-24 08:32 UTC, Dieter Verfaillie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter Verfaillie 2013-05-24 08:13:49 UTC
It seems barman's setup.py uses exefile() which was removed from Python 3,
but the ebuild does not request setup.py to be executed with some Python 2
version, leading to:

# emerge barman
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-db/barman-1.2.0
 * barman-1.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking barman-1.2.0.tar.gz to /var/tmp/portage/dev-db/barman-1.2.0/work
>>> Source unpacked in /var/tmp/portage/dev-db/barman-1.2.0/work
>>> Preparing source in /var/tmp/portage/dev-db/barman-1.2.0/work/barman-1.2.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-db/barman-1.2.0/work/barman-1.2.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-db/barman-1.2.0/work/barman-1.2.0 ...
python3.3 setup.py build
Traceback (most recent call last):
  File "setup.py", line 46, in <module>
    execfile('barman/version.py', barman)
NameError: name 'execfile' is not defined
<snipped />

# eselect python list
Available Python interpreters:
  [1]   python2.5
  [2]   python2.6
  [3]   python2.7
  [4]   python3.1
  [5]   python3.2
  [6]   python3.3 *
Comment 1 Dieter Verfaillie 2013-05-24 08:32:12 UTC
Created attachment 349048 [details]
Updated ebuild

Added SUPPORT_PYTHON_ABIS, PYTHON_DEPEND and RESTRICT_PYTHON_ABIS
as per http://www.gentoo.org/proj/en/Python/developersguide.xml,
set supported Python versions as per the packages README file and
the System Requirements section on http://docs.pgbarman.org/#before_you_start
Comment 2 Patrick Lauer gentoo-dev 2013-05-24 08:42:42 UTC
+  24 May 2013; Patrick Lauer <patrick@gentoo.org> +barman-1.2.0-r1.ebuild:
+  Fix python use #471134 a bit nicer

That should do, for now :) Thanks for the bug and patch