Subject: pkg/34217: lang/python23 and lang/python24 fails to build on Sparc Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 08/16/2006 18:10:01
>Number:         34217
>Category:       pkg
>Synopsis:       lang/python23 and lang/python24 fails to build on Sparc Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 16 18:10:00 +0000 2006
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS e450 5.10 Generic_118833-17 sun4u sparc SUNW,Ultra-4
>Description:
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building 'struct' extension
Traceback (most recent call last):
  File "./setup.py", line 1105, in ?
    main()
  File "./setup.py", line 1099, in main
    scripts = ['Tools/scripts/pydoc2.4',
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/command/build_ext.py", line 279, in run
    self.build_extensions()
  File "./setup.py", line 179, in build_extensions
    build_ext.build_extensions(self)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/command/build_ext.py", line 405, in build_extensions
    self.build_extension(ext)
  File "./setup.py", line 184, in build_extension
    build_ext.build_extension(self, ext)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/command/build_ext.py", line 470, in build_extension
    depends=ext.depends)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/ccompiler.py", line 699, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/unixccompiler.py", line 112, in _compile
    self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/ccompiler.py", line 1040, in spawn
    spawn (cmd, dry_run=self.dry_run)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/spawn.py", line 37, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/spawn.py", line 122, in _spawn_posix
    log.info(string.join(cmd, ' '))
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/log.py", line 33, in info
    self._log(INFO, msg, args)
  File "/opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3/Lib/distutils/log.py", line 23, in _log
    print msg % args
TypeError: not enough arguments for format string
*** Error code 1

Stop.
bmake: stopped in /opt/pkg.obj/lang/python24/work.ultra10/Python-2.4.3
*** Error code 1

>How-To-Repeat:

>Fix:
Edit ${WRKOBJDIR}/Python-2.4.3/Lib/distutils/log.py
and change 'print msg % args' to 'print msg, args' on line 23