Bug 223761 - devel/talloc, databases/tdb, devel/tevent, databases/ldb: invalid Python syntax during configure
Summary: devel/talloc, databases/tdb, devel/tevent, databases/ldb: invalid Python synt...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-20 07:34 UTC by Charlie Li
Modified: 2019-05-21 01:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (timur)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Li freebsd_committer freebsd_triage 2017-11-20 07:34:20 UTC
On systems with Python 3 set as default, the build for all of these ports fails during configure with an identical error. Below is an example from devel/tevent:

=======================<phase: configure      >============================
===>  Configuring for tevent-0.9.34
Traceback (most recent call last):
  File "buildtools/bin/waf", line 75, in <module>
    import Scripting
  File "/wrkdirs/usr/ports/devel/tevent/work/tevent-0.9.34/third_party/waf/wafadmin/Scripting.py", line 146
    except Utils.WafError, e:
                         ^
SyntaxError: invalid syntax
===>  Script "configure" failed unexpectedly.
Please report the problem to timur@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/devel/tevent/work/tevent-0.9.34/bin/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/tevent

Restricting USES to python:2.7 instead of python:2.7+ fixes this problem.
Comment 1 Charlie Li freebsd_committer freebsd_triage 2017-11-20 07:37:54 UTC
Update title to reflect the same problem with databases/ldb.
Comment 2 Timur I. Bakeyev freebsd_committer freebsd_triage 2017-11-20 13:47:15 UTC
Thanks for spotting it, too many combinations to catch them all, didn't showed up in any tests...