Bug 214281

Summary: x11/libxcb: Fails in build with Python 3 after r425430
Product: Ports & Packages Reporter: John W. O'Brien <john>
Component: Individual Port(s)Assignee: Ruslan Makhmatkhanov <rm>
Status: Closed FIXED    
Severity: Affects Only Me CC: rm
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
john: maintainer-feedback?
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Poudriere log excerpt
none
x11/libxcb: Backport py3k regression fixes john: maintainer-approval?

Description John W. O'Brien 2016-11-06 19:32:31 UTC
Created attachment 176699 [details]
Poudriere log excerpt

Attempts to build this port with Python 3.5 (at least) fail at the build target (see attached poudriere log excerpt from 10.3-STABLE amd64 w/py3.5).

These errors were fixed upstream shortly after 1.12 was tagged. The following patch can be applied to resolve this error.

====
author	Thomas Klausner <wiz@NetBSD.org>	2016-05-19 15:31:18 (GMT)
committer	Uli Schlachter <psychon@znc.in>	2016-05-28 10:20:59 (GMT)
commit	8740a288ca468433141341347aa115b9544891d3 (patch)
tree	07fca9af69f89d2e81fe450f9e9ff97465e4efcc /src/c_client.py
parent	d34785a34f28fa6a00f8ce00d87e3132ff0f6467 (diff)
Fix inconsistent use of tabs vs. space.
Needed for at least python-3.5.x.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Signed-off-by: Uli Schlachter <psychon@znc.in>

https://cgit.freedesktop.org/xcb/libxcb/commit/src/c_client.py?id=8740a288ca468433141341347aa115b9544891d3
====
Comment 1 John W. O'Brien 2016-11-06 19:34:40 UTC
Created attachment 176700 [details]
x11/libxcb: Backport py3k regression fixes

Changelog:

*   Backport upstream fix for py3k compatibility
*   While here, pet portlint

QA:

portlint -- OK
poudriere --
    10.3-STABLE amd64 python2.7 -- OK
    10.3-STABLE amd64 python3.4 -- OK
    10.3-STABLE amd64 python3.5 -- OK
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-11-07 09:36:40 UTC
A commit references this bug:

Author: rm
Date: Mon Nov  7 09:36:15 UTC 2016
New revision: 425598
URL: https://svnweb.freebsd.org/changeset/ports/425598

Log:
  x11/libxcb: fix build with python3

  Add upstream patches to fix build/packaging with python3 as default after
  the recent update. python3 is not default, so no PORTREVISION bump is required.

  PR:		214281
  Submitted by:	John W. O'Brien <john@saltant.com>
  Approved by:	portmgr (just-fix-it blanket)

Changes:
  head/x11/libxcb/Makefile
  head/x11/libxcb/files/patch-src_c__client.py
  head/x11/libxcb/files/patch-tests-check_public.c
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2016-11-07 09:37:05 UTC
Committed, thank you!