Summary: | Mk/bsd.python.mk: CMake python detection gets confused if multiple python versions are installed | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Marcus von Appen <mva> | ||||||
Component: | Individual Port(s) | Assignee: | Max Brazhnikov <makc> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | makc, portmgr, python | ||||||
Priority: | Normal | Keywords: | needs-patch, patch | ||||||
Version: | Latest | Flags: | antoine:
maintainer-feedback+
koobs: exp-run+ |
||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 199685, 200518 | ||||||||
Attachments: |
|
Description
Marcus von Appen
![]() ![]() Responsible Changed From-To: freebsd-ports-bugs->freebsd-python That's a Python PR mva 2012-06-19 17:18:13 UTC FreeBSD ports repository Modified files: Mk bsd.python.mk Log: - Force cmake to use PYTHON_VER as version to detect, so that it uses the same Python version for the interpreter and library linking, if multiple Python versions are installed. PR: ports/168159 On behalf of: python@ Revision Changes Path 1.148 +12 -1 ports/Mk/bsd.python.mk _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" State Changed From-To: open->closed Committed. Thanks! Created attachment 157311 [details] Enforce default Python provided by the ports tree While this bug was resolved with the update of CMake to 3.0.1 in r366996, the workaround was still useful: by default CMake picks up the highest available version of Python package, while we want to use the default version provided by the ports framework. The attached patch fixes build issues reported in https://bugs.freebsd.org/199685 and https://bugs.freebsd.org/200518. Reopen and request maintainer approval. Take for exp-run Exp-run results: http://package18.nyi.freebsd.org/build.html?mastername=101amd64-default-D2704PR168169&build=2015-06-01_08h27m15s The 1 new failure is not related to this change, patch approved. Just a minor change to be done: "Enforce the default version provided by the ports tree." should be "Enforce the version required by the port or the default." And while here: should not be CMAKE_ARGS+= only be set, if USES contains cmake? Just to keep the set environment clean? (In reply to Marcus von Appen from comment #9) > And while here: should not be CMAKE_ARGS+= only be set, if USES contains > cmake? Just to keep the set environment clean? Seems like overcomplication for me, besides two lines above the CONFIGURE_ENV is set unconditionally. (In reply to Marcus von Appen from comment #8) > Just a minor change to be done: > "Enforce the default version provided by the ports tree." > should be > "Enforce the version required by the port or the default." Absolutely. Will you commit the patch or you want me to do it? (In reply to Max Brazhnikov from comment #11) > (In reply to Marcus von Appen from comment #8) > > Just a minor change to be done: > > "Enforce the default version provided by the ports tree." > > should be > > "Enforce the version required by the port or the default." > > Absolutely. Will you commit the patch or you want me to do it? A change prior to the commit should be sufficient. No need for a separate patch in my opinion. Created attachment 157371 [details]
Enforce the version required by the port or the default
(In reply to Marcus von Appen from comment #12) > (In reply to Max Brazhnikov from comment #11) > > (In reply to Marcus von Appen from comment #8) > > > Just a minor change to be done: > > > "Enforce the default version provided by the ports tree." > > > should be > > > "Enforce the version required by the port or the default." > > > > Absolutely. Will you commit the patch or you want me to do it? > > A change prior to the commit should be sufficient. No need for a separate > patch in my opinion. Sorry for not being clear, I was talking about the final version of the patch. A commit references this bug: Author: makc Date: Wed Jun 10 09:23:54 UTC 2015 New revision: 389024 URL: https://svnweb.freebsd.org/changeset/ports/389024 Log: Pass the default Python version (or the version required by port) for CMake based ports. By default CMake picks up the highest available version of Python package, therefore ports which use CMake may fail to build or link to different Python library than one could expect (e.g. bugs 199685, 200518). In essence this commit reverts r366996. PR: 168159 Exp-run by: antoine Approved by: mva Changes: head/Mk/Uses/python.mk |