Bug 233716 - graphics/py-gdal: Flavor @py36 does not install because of wrong PYTHON*_SITELIBDIR
Summary: graphics/py-gdal: Flavor @py36 does not install because of wrong PYTHON*_SITE...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks: 233726
  Show dependency treegraph
 
Reported: 2018-12-02 11:17 UTC by Rainer Hurling
Modified: 2018-12-03 15:00 UTC (History)
1 user (show)

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


Attachments
patch SITELIBDIR for @py36 (704 bytes, patch)
2018-12-02 11:17 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling 2018-12-02 11:17:32 UTC
Created attachment 199743 [details]
patch SITELIBDIR for @py36

In the process of preparing my new port graphics/qgis with QGIS 3, I found graphics/py-gdal as a showstopper, because it is not able to install for flavor @py36.

I think, this is because graphics/py-gdal@py37 tries to install the Python files wrongly in PYTHON_SITELIBDIR instead of PYTHONPREFIX_SITELIBDIR.

The attached patch seems to solve the problem, now both @py27 and @py36 are installable at the same time.


Tested with Poudriere (F11.2i/a, F12.0-RC1i/a, and HEADi/a).

'portlint -AC' seems fine.
Comment 1 Sunpoet Po-Chuan Hsieh freebsd_committer 2018-12-03 15:00:08 UTC
I cannot reproduce the problem.
And our building cluster generates the packages successfully [1][2].

[1] https://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/py36-gdal-2.2.4_1.txz
[2] https://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/py36-gdal-2.2.4_1.txz