Bug 194605

Summary: [exp-run] Fix python version usage in path for dependency builds with different python versions
Product: Ports & Packages Reporter: Marcus von Appen <mva>
Component: Ports FrameworkAssignee: Marcus von Appen <mva>
Status: Closed FIXED    
Severity: Affects Only Me CC: portmgr
Priority: --- Flags: mva: exp-run+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
python.mk patch
none
Updated python.mk diff (PYTHON_VERSION plist issue) none

Description Marcus von Appen freebsd_committer freebsd_triage 2014-10-26 08:27:39 UTC
Created attachment 148657 [details]
python.mk patch

If a port requests a different python version from the one being the
default or provided at the command line, certain directories as well
as plist entries will use the wrong python version value (the one
being the default or provided at the command line), instead of
the value, the port requests
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2014-10-26 08:38:19 UTC
Take for exp-run
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2014-10-26 13:24:36 UTC
Created attachment 148663 [details]
Updated python.mk diff (PYTHON_VERSION plist issue)

Updated the patch to set PLIST_SUB+= ... PYTHON_VERSION=... to the correct value
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2014-10-27 08:41:35 UTC
Exp-run results with 2nd patch:

http://package18.nyi.freebsd.org/build.html?mastername=101amd64-PR194605&build=2014-10-26_13h52m15s

0 new failure
Comment 4 Marcus von Appen freebsd_committer freebsd_triage 2014-10-27 18:58:28 UTC
Committed in ports r371600.
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-10-27 18:59:09 UTC
A commit references this bug:

Author: mva
Date: Mon Oct 27 18:58:22 UTC 2014
New revision: 371600
URL: https://svnweb.freebsd.org/changeset/ports/371600

Log:
  - Second attempt to fix the python version usage on single port builds

    If a port requests a different python version from the one being the
    default or provided at the command line, certain directories as well
    as plist entries will use the wrong python version value (the one
    being the default or provided at the command line), instead of the
    value, the port requests.

  PR:		194605
  exp-run by:	antoine@
  With hat:	python@

Changes:
  head/Mk/Uses/python.mk