Created attachment 146485 [details] py-psycopg2 ports Makefile patch The current port installs to a fixed DOCSDIR and EXAMPLESDIR. Patch allows installing for more than one version of python (${PKGNAMEPREFIX}${PORTNAME}).
Please provide us with redports.org or Poudriere logs that confirm your patch is working fine.
Robert, the following two features should help achieve what is needed: - 'concurrent' feature for USE_PYTHON (Mk/Uses/python.mk) - USES=uniquefiles:dirs feature (Mk/Uses/uniquefiles.mk)
Over to maintainer
(In reply to Robert Kruus from comment #0) I think this port should support concurrent installation right now. Would you please update ports tree and try again? Thanks!
(In reply to Sunpoet Po-Chuan Hsieh from comment #4) I had to add uniquefiles:dirs to USES to allow for concurrent install when I updated to 2.5.5 otherwise the examples and licenses directories still conflict.
(In reply to Robert Kruus from comment #5) I cannot reproduce your problem. % cd /usr/ports/databases/py-psycopg2/ % svn st -v 379615 379234 sunpoet . 379615 379234 sunpoet Makefile 379615 379234 sunpoet distinfo 379615 341308 rm pkg-descr % ls -la /usr/ports/packages/All/py*psycopg2* -rw-r--r-- 1 root wheel 292336 Feb 24 00:42:08 2015 /usr/ports/packages/All/py27-psycopg2-2.5.5.txz -rw-r--r-- 1 root wheel 302964 Feb 24 00:41:39 2015 /usr/ports/packages/All/py34-psycopg2-2.5.5.txz % pkg info -x psycopg2 py27-psycopg2-2.5.5 py34-psycopg2-2.5.5 According to the packages for python 2.7 and 3.4, the files are installed to: 1. python2.7: - license: /usr/local/share/licenses/py27-psycopg2-2.5.5/LICENSE - docs: /usr/local/share/doc/py27-psycopg2/ - examples: /usr/local/share/examples/py27-psycopg2/ 2. python3.4: - license: /usr/local/share/licenses/py34-psycopg2-2.5.5/LICENSE - docs: /usr/local/share/doc/py34-psycopg2/ - examples: /usr/local/share/examples/py34-psycopg2/ Could you please show me the directories used by license, docs and examples?
(In reply to Sunpoet Po-Chuan Hsieh from comment #6) Seems to work now, didn't work last week when doing portmaster -a and the last update to the port. It would build the default python python version (2.7), but not install with the duplicate file error. Doing make clean deinstall install in the ports tree works for different versions. Doing a specific re-install: portmaster py27-psycopg2 portmaster py34-psycopg2 (setting PYTHON_VERSION) works fine now too. I will keep an eye what might be happening with portmaster -a when the next port version/revision comes out. pkg info -x psycopg2 py27-psycopg2-2.5.5 py34-psycopg2-2.5.5 pkg list py27-psycopg2-2.5.5 | grep -e "/share/doc" -e "/share/examples" -e "/share/licenses" | xargs dirname | uniq /usr/local/share/doc/py27-psycopg2 /usr/local/share/examples/py27-psycopg2 /usr/local/share/licenses/py27-psycopg2-2.5.5 pkg list py34-psycopg2-2.5.5 | grep -e "/share/doc" -e "/share/examples" -e "/share/licenses" | xargs dirname | uniq /usr/local/share/doc/py34-psycopg2 /usr/local/share/examples/py34-psycopg2 /usr/local/share/licenses/py34-psycopg2-2.5.5
Submitter confirmed that databases/py-psycopg2 supports concurrent installation.