Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575844 - dev-python/buildutils-0.3-r1 installs broken bundle.py with normal_script_header instead of normal_get_script_header on line 147
Summary: dev-python/buildutils-0.3-r1 installs broken bundle.py with normal_script_hea...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 584080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-27 19:14 UTC by Jeremy Stent
Modified: 2016-06-27 18:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Stent 2016-02-27 19:14:48 UTC
The bundle.py for python2.7 included with dev-python/buildutils-0.3-r1 on line 147 has a reference to "normal_script_header" which appears to be undefined.  This means that other python 2.7 packages will not install.  If I change this to "normal_get_script_header" instead, then thing work.

Reproducible: Always

Steps to Reproduce:
1.  Emerge dev-python/buildutils-0.3-r1
2.  Attempt to merge dev-python/pbr, or anything else that still uses python 2.7
Actual Results:  
running install_scripts
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    **util.cfg_to_args())
  File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/var/tmp/portage/dev-python/pbr-1.8.1-r1/work/pbr-1.8.1/pbr/packaging.py", line 194, in run
    return du_install.install.run(self)
  File "/usr/lib64/python2.7/distutils/command/install.py", line 575, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/var/tmp/portage/dev-python/pbr-1.8.1-r1/work/pbr-1.8.1/pbr/packaging.py", line 376, in run
    for args in get_script_args(dist, executable, is_wininst):
  File "/var/tmp/portage/dev-python/pbr-1.8.1-r1/work/pbr-1.8.1/pbr/packaging.py", line 313, in override_get_script_args
    header = easy_install.get_script_header("", executable, is_wininst)
  File "/usr/lib64/python2.7/site-packages/buildutils/command/bundle.py", line 147, in patched_get_script_header
    return normal_script_header(script_text, executable, wininst)
NameError: global name 'normal_script_header' is not defined
 * ERROR: dev-python/pbr-1.8.1-r1::gentoo failed (install phase):


Expected Results:  
successful emerge
Comment 1 Mike Gilbert gentoo-dev 2016-05-25 15:28:34 UTC
# Mike Gilbert <floppym@gentoo.org> (25 May 2016)
# Causes build failures in unrelated packages due to invasive
# monkey-patching of easy_install (dev-python/setuptools).
# Remove this package in 30 days.
# Bug: https://bugs.gentoo.org/575844
dev-python/buildutils
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2016-05-25 15:41:13 UTC
*** Bug 584080 has been marked as a duplicate of this bug. ***
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-26 15:07:45 UTC
commit 0e1703d06c2175e59aeea64524e16b3dfc503c44
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Sun Jun 26 17:05:17 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Sun Jun 26 17:05:17 2016

    dev-python/buildutils: Remove last rited package
Comment 4 Mansour 2016-06-27 11:38:27 UTC
This issue is not fixed. The package that is failing is pbr and not buildutils.
I am updating world and it's failing on this dev-python/pbr 

>>> Emerging (3 of 71) dev-python/pbr-1.9.1::gentoo
 * pbr-1.9.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking pbr-1.9.1.tar.gz to /var/tmp/portage/dev-python/pbr-1.9.1/work
>>> Source unpacked in /var/tmp/portage/dev-python/pbr-1.9.1/work
>>> Preparing source in /var/tmp/portage/dev-python/pbr-1.9.1/work/pbr-1.9.1 ...
 * rogue tests disabled
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pbr-1.9.1/work/pbr-1.9.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pbr-1.9.1/work/pbr-1.9.1 ...
 * 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 22, in <module>
    **util.cfg_to_args())
  File "/var/tmp/portage/dev-python/pbr-1.9.1/work/pbr-1.9.1/pbr/util.py", line 264, in cfg_to_args
    wrap_commands(kwargs)
  File "/var/tmp/portage/dev-python/pbr-1.9.1/work/pbr-1.9.1/pbr/util.py", line 566, in wrap_commands
    cmdclass = ep.resolve()
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named babel.messages.frontend
 * ERROR: dev-python/pbr-1.9.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_compile
 *   environment, line 3606:  Called distutils-r1_src_compile
 *   environment, line  890:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  315:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3129:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2238:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2236:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  577:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  881:  Called distutils-r1_python_compile
 *   environment, line  756:  Called esetup.py 'build'
 *   environment, line 1382:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pbr-1.9.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pbr-1.9.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pbr-1.9.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pbr-1.9.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pbr-1.9.1/work/pbr-1.9.1'
 * S: '/var/tmp/portage/dev-python/pbr-1.9.1/work/pbr-1.9.1'

>>> Failed to emerge dev-python/pbr-1.9.1, Log file:

>>>  '/var/tmp/portage/dev-python/pbr-1.9.1/temp/build.log'
Comment 5 Mike Gilbert gentoo-dev 2016-06-27 18:33:22 UTC
(In reply to Mansour from comment #4)

Different issue. File a new bug please.