Bug 225840 - security/py-trezor: conflict between py27 / py3* flavors
Summary: security/py-trezor: conflict between py27 / py3* flavors
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-11 22:38 UTC by John Hein
Modified: 2018-02-12 20:04 UTC (History)
1 user (show)

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


Attachments
[patch] allow concurrent install of py-trezor for different py flavors (360 bytes, patch)
2018-02-11 22:56 UTC, John Hein
jcfyecrayz: maintainer-approval? (ehaupt)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Hein 2018-02-11 22:38:48 UTC
If you attempt to install security/py-trezor@py36 while you have security/py-trezor@py27 installed, you get the following error:

===>   Registering installation for py36-trezor-0.9.0 as automatic
/usr/bin/env PORTSDIR=/usr/ports FORCE_POST="rmdir kldxref mkfontscale mkfontdir fc-cache  fonts.dir fonts.scale gtk-update-icon-cache  gio-querymodules  gtk-query-immodules  ldconfig  load-octave-pkg  ocamlfind  update-desktop-database update-mime-database  gdk-pixbuf-query-loaders catalog.ports  glib-compile-schemas  ccache-update-links" /usr/local/sbin/pkg-static egister -d -i /usr/ports/security/py-trezor/work-py36/stage -m /usr/ports/security/py-trezor/work-py36/.metadir -f /usr/ports/security/py-trezor/work-py36/.PLIST.mktmp
Installing py36-trezor-0.9.0...
pkg-static: py36-trezor-0.9.0 conflicts with py27-trezor-0.7.16 (installs files into the same place).  Problematic file: /usr/local/bin/trezorctl


Since I needed the py36 flavor, my workaround was to remove py27-trezor.  That could be a problem if you want both the py2 and py3 flavors installed.  In my case, it was not important to have both flavors.

It seems like there will be a number of flavored ports that will have this problem - basically many py- ports that install scripts into PREFIX/bin.
Comment 1 John Hein 2018-02-11 22:56:33 UTC
Created attachment 190531 [details]
[patch] allow concurrent install of py-trezor for different py flavors

Allow concurrent install of different py flavors for the py-trezor port.
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-02-12 20:03:32 UTC
A commit references this bug:

Author: ehaupt
Date: Mon Feb 12 20:03:05 UTC 2018
New revision: 461647
URL: https://svnweb.freebsd.org/changeset/ports/461647

Log:
  - Avoid conflict flavors by using 'concurrent' python keyword
  - While here mark NO_ARCH

  PR:		225840
  Submitted by:	John Hein <z7dr6ut7gs@snkmail.com>

Changes:
  head/security/py-trezor/Makefile
Comment 3 Emanuel Haupt freebsd_committer freebsd_triage 2018-02-12 20:04:29 UTC
Committed, thanks!