Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64156 closed defect (fixed)

xmms2 @0.8DrO_o_23 +python27: Error compiling Cython file

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: xmms2

Description

Trying to upgrade xmms2 results in this failure:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/src/clients/lib/python/cython_include/xmmsvalue.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/src/clients/lib/python/cython_include/xmmsapi.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
warning: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/src/clients/lib/python/cython_include/cxmmsclient.pxd:215:1: 'xmmsv_coll_namespace_t' redeclared 

Error compiling Cython file:
------------------------------------------------------------
...
	def medialib_path_import(self, path, cb = None, encoded=False):
		"""
		@deprecated
		Use medialib_import_path(path, ...) instead
		"""
		return self.medialib_import_path(self, path, cb=cb, encoded=encoded)
                                              ^
------------------------------------------------------------

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/src/clients/lib/python/xmmsapi.pyx:1367:47: argument 'cb' passed twice

Error compiling Cython file:
------------------------------------------------------------
...
	def medialib_path_import_encoded(self, path, cb = None):
		"""
		@deprecated
		Use medialib_import_path(path, ..., encoded=True) instead
		"""
		return self.medialib_import_path(self, path, cb=cb, encoded=True)
                                              ^
------------------------------------------------------------

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/src/clients/lib/python/xmmsapi.pyx:1375:47: argument 'cb' passed twice
Waf: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/_build_'
Build failed
 -> task failed (exit status 1): 
	{task 4457000656: cython xmmsapi.pyx -> xmmsapi.c}
['/opt/local/bin/cython', '-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/src/clients/lib/python/cython_include', '-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/_build_/src/clients/lib/python/cython_include', '-o', '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o/_build_/src/clients/lib/python/xmmsapi.c', '../src/clients/lib/python/xmmsapi.pyx']
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o" && /opt/local/bin/python2.7 ./waf build --verbose 
Exit code: 1
Error: Failed to build xmms2: command execution failed
DEBUG: Error code: CHILDSTATUS 68461 1

I'm on Big Sur (11.6.1) with Xcode 13.1

Change History (5)

comment:1 Changed 3 years ago by cooljeanius (Eric Gallager)

Note that the +ruby variant has its own issue:

Checking for program ruby                                         : /opt/local/bin/ruby 
ruby                                                              : 1.8.0 
command ['/opt/local/bin/ruby', '-rrbconfig', '-e', "puts Config::CONFIG['archdir']"] returned 1
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o" && /opt/local/bin/python2.7 ./waf configure --prefix=/opt/local --conf-prefix=/opt/local --without-optionals python --nocache 
Exit code: 1
Error: Failed to configure xmms2: configure failure: command execution failed
DEBUG: Error code: NONE

comment:2 Changed 3 years ago by cooljeanius (Eric Gallager)

The +cpp variant has its own issue with boost; the variants +jack+mdns+perl+pulse work fine, though.

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In d2e907bbada4d377c506a4c5688ecc406431ee0b/macports-ports (master):

xmms2: Don't use cython

The build opportunistically uses a "cython" the user may have on their
system (for example if they used "sudo port select cython") which then
fails to build this code.

Closes: #64156

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

In 01fc27218c611114ad0cb78f61daab0f149c83fa/macports-ports (master):

xmms2 +ruby: Use the right ruby

Use the ruby that we're declaring a dependency on. The build previously
used /usr/bin/ruby or a ruby the user had selected with "sudo port
select ruby" which might fail to build this code.

See: #64156

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

In 3484230d1f4607b447df535563eb97c599080411/macports-ports (master):

xmms2 +cpp: Fix clang build failure

See: #64156

The header being patched gets installed, so increase revision.

Note: See TracTickets for help on using tickets.