[MacPorts] #51514: xorg-libxcb: build failure
#51514: xorg-libxcb: build failure --------------------+------------------------- Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Keywords: | Port: xorg-libxcb --------------------+------------------------- Fails at: {{{ :debug:build system: cd "/opt/local/var/macports/build /_opt_mports_trunk_dports_x11_xorg-libxcb/xorg-libxcb/work/libxcb-1.12" && /usr/bin/make -j8 -w all :info:build make: Entering directory `/opt/local/var/macports/build /_opt_mports_trunk_dports_x11_xorg-libxcb/xorg-libxcb/work/libxcb-1.12' :info:build Making all in src :info:build make[1]: Entering directory `/opt/local/var/macports/build /_opt_mports_trunk_dports_x11_xorg-libxcb/xorg- libxcb/work/libxcb-1.12/src' :info:build GEN bigreq.c :info:build GEN xproto.c :info:build GEN xc_misc.c :info:build GEN composite.c :info:build GEN damage.c :info:build GEN dpms.c :info:build GEN dri2.c :info:build GEN dri3.c :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build File "./c_client.py", line 1937 :info:build after_end_of_request = '(((char*)R) + R->length * 4)' :info:build ^ :info:build TabError: inconsistent use of tabs and spaces in indentation :info:build make[1]: *** [dri2.c] Error 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/51514> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by Jobst.Ziebell@…): This happens on my machine too. OS X 10.11.5, macports 2.3.4. After fixing the above issue (some tabs were lurking in the c_client.py file) another error pops up, see fix1_main.log. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jeremyhu@…): If you port select python 2.7 for your python interpreter, does it work for you? -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by Jobst.Ziebell@…): Still exactly the same error. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by mf2k@…): Replying to [comment:2 jeremyhu@…]:
If you port select python 2.7 for your python interpreter, does it work for you?
Yes, it built for me. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by hancock@…): Replying to [comment:2 jeremyhu@…]:
If you port select python 2.7 for your python interpreter, does it work for you?
Same fail: Yosemite 10.10.5, Xcode 7.2.1, macports 2.3.4. No difference selecting python34, python27, python27-apple, cleaning xorg* inbetween. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by hancock@…): Replying to [comment:2 jeremyhu@…]:
If you port select python 2.7 for your python interpreter, does it work for you?
It does if I also change the variant of xorg-libxcb on install to be +python27 rather than +python34, which it was for some reason. I also selected python27 to be the active python. Now things work. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by m74z00219@…): Replying to [comment:2 jeremyhu@…]:
If you port select python 2.7 for your python interpreter, does it work for you?
This worked for me too. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by cal@…): Sounds like a bug to me, builds shouldn't depend on what's selected? -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb: build failure --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jeremyhu@…): Yes. That's just a workaround. If someone has a fix, I'll commit it. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Changes (by jeremyhu@…): * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Changes (by jeremyhu@…): * status: assigned => closed * resolution: => fixed Comment: There was a fix upstream. Pulled in. r149169. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by Deil.Christoph@…): Just now I tried to do the update: {{{ xorg-libxcb 1.11.1_0 < 1.12_1 }}} and it still fails like this: {{{ :info:build Traceback (most recent call last): :info:build File "./c_client.py", line 3294, in <module> :info:build from xcbgen.state import Module :info:build File "/opt/local/lib/python3.4/site- packages/xcbgen/state.py", line 7, in <module> :info:build from xcbgen import matcher :info:build File "/opt/local/lib/python3.4/site- packages/xcbgen/matcher.py", line 12, in <module> :info:build from xcbgen.xtypes import * :info:build File "/opt/local/lib/python3.4/site- packages/xcbgen/xtypes.py", line 504 :info:build print "Explicit start-align for %s: %s\n" % (self, self.required_start_align) :info:build ^ :info:build SyntaxError: invalid syntax }}} Full log: https://gist.github.com/cdeil/eac3b160a5b6475eac3b4e0b129e7bb6 #file-gistfile1-txt-L393 Do I have to issue some special clean or update command to get {{{xcbgen/xtypes.py}}} updated? Or is there still a bug? -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jens.troeger@…): Replying to [comment:12 Deil.Christoph@…]:
Just now I tried to do the update: [...]
Yes I'm seeing the same problems after an updated just now. Looks like a Py2 print statement being executed by Py3. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jeremyhu@…): https://bugs.freedesktop.org/show_bug.cgi?id=96395 -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Changes (by jeremyhu@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: wontfix | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Changes (by jeremyhu@…): * status: reopened => closed * resolution: => wontfix Comment: Filed upstream, and they'll support python3 eventually. For now, they just support python2. Furthermore, the shbang is setup to execute using python2 (#!/usr/bin/env python), so if python is setup as python in the environment, it is a user configuration issue. cf https://www.python.org/dev/peps/pep-0394 -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: wontfix | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jeremyhu@…): #51572 filed to warn users when they try to do this. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:17> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: wontfix | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jens.troeger@…): So to handle this problem, I port select python2 as python, upgrade and build the port tree, and then switch back to python 3? (Ignoring #51572 for now...) -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:18> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: wontfix | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jeremyhu@…): You shouldn't need to port select python3. It should work for you with python3 now. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:19> MacPorts <https://www.macports.org/> Ports system for OS X
#51514: xorg-libxcb fails to build if python3 is port selected --------------------------+------------------------ Reporter: mf2k@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: wontfix | Keywords: Port: xorg-libxcb | --------------------------+------------------------ Comment (by jeremyhu@…): But to be clear, you should not have python3 selected for python for correctness reasons in general as you're bound to run into compatibility issues like this one. -- Ticket URL: <https://trac.macports.org/ticket/51514#comment:20> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts