Bug 216555 - irc/weechat: Build of 1.7 fails (package phase) against Python 3.5
Summary: irc/weechat: Build of 1.7 fails (package phase) against Python 3.5
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: Bernard Spil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-28 19:44 UTC by Charles P
Modified: 2017-03-26 17:48 UTC (History)
1 user (show)

See Also:


Attachments
poudriere log (60.96 KB, text/x-log)
2017-01-28 19:44 UTC, Charles P
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles P 2017-01-28 19:44:17 UTC
Created attachment 179382 [details]
poudriere log

weechat 1.7 build failure with poudriere with python 3.5

Attached poudriere build log, doesn't look like there's anything of interest other than:

    pkg-static: Unable to access file /wrkdirs/usr/ports/irc/weechat/work/stage/usr/local/lib/weechat/plugins/python.so: No such file or directory

Looks to be the same as bug #205981 with 1.6
Comment 1 Walter Schwarzenfeld freebsd_triage 2017-02-10 06:41:55 UTC
See makefile:
.if defined(PORT_OPTIONS:MPYTHON) && ${PYTHON_MAJOR_VER} >= 3
WARNING=        "Using Python 3.x is NOT recommended because many \"official\" scripts won\'t work"
CMAKE_ARGS+=    -DENABLE_PYTHON3:BOOL=true \
                -DPYTHON_LIBRARY:FILEPATH=${LOCALBASE}/lib/libpython${PYTHON_VER}m.so
.endif
Comment 2 Walter Schwarzenfeld freebsd_triage 2017-02-10 06:43:14 UTC
Try to set option PYTHON to off.
Comment 3 Charles P 2017-02-12 12:50:13 UTC
(In reply to w.schwarzenfeld from comment #2)
Can confirm that works, although I'd hardly consider it a good solution
Comment 4 Walter Schwarzenfeld freebsd_triage 2017-02-12 20:35:41 UTC
Surely, it should run with python35.
I have also python27 installed and DEFAULT_VERSIONS+=python=2.7 python2=2.7 python3=3 in /etc/make.conf. So it takes python27 And this works.
Comment 5 Walter Schwarzenfeld freebsd_triage 2017-02-12 21:37:03 UTC
I try to install it with python35 works without problems (but I have 10.3).
I only added python:3.5 to USES in the Makefile.
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-03-26 11:15:31 UTC
A commit references this bug:

Author: brnrd
Date: Sun Mar 26 11:14:39 UTC 2017
New revision: 436955
URL: https://svnweb.freebsd.org/changeset/ports/436955

Log:
  irc/weechat: Fix python3 detection

    - Fix package error when python3 is used

  PR:		216555
  Reported by:	 Charles P <charlespigott@googlemail.com>

Changes:
  head/irc/weechat/Makefile