On 2016/09/14 19:06, Dmitrij D. Czarkoff wrote: > Daniel Jakots <danj+obsd...@chown.me> wrote: > > >On Wed, 14 Sep 2016 07:02:11 -0600 (MDT), Dmitrij Czarkoff > ><czark...@openbsd.org> wrote: > > > >> CVSROOT: /cvs > >> Module name: ports > >> Changes by: czark...@cvs.openbsd.org 2016/09/14 07:02:11 > >> > >> Modified files: > >> graphics/scour : Makefile > >> > >> Log message: > >> add python3 FLAVOR > >> > > > >There's a conflict if you try to install the py3 flavor and you already > >have the py2 installed. > > They do indeed conflict, and they should. Having both simultaneously doesn't > make much sense. Same as with vim.
What is the point in having two versions? It's just a program you run isn't it, not a library? My preference would be to pick one python version (preferably a current one rather than a several-years-on-life-support one...) and stick with it. If there's a very good reason not to, then either the plist must declare the conflict (which means you probably need PFRAG.python3 and PFRAG.no-python3 so that each can conflict with the other), or rename bins. > >Can't install scour-0.35-python3 because of conflicts (scour-0.35) > > > >Also, as the name doesn't begin with "py-" I'm not sure you can add a > >py3 flavor. > > As you can see, name of python2 package is "scour-0.35", while name of python3 > package is "scour-0.35-python3". That said, we have at least one port where > both flavored and unflavored packages share the same name: > > $ cd /usr/ports/www/puppetboard > $ make show=FLAVORS > python3 > $ make show=FULLPKGNAME > puppetboard-0.2.0p0 > $ env FLAVOR=python3 make > show=FULLPKGNAME > puppetboard-0.2.0p0 Then that is also broken.