FreeBSD - メンテナンス・トラブルシュート - python - Duplicated origin ...
| 
1. 概要				2. 対策				 
1. 概要これも、python27 と python36 が、まだ完全に移行しきれてないものがあることの弊害であろうと思われます。
 2019年7月22日現在でも、ときどき発生します。
 今回は、curl の例で言いますとてな状況になっておりまして、curl を portupgrade すると
> pkg version -vl "<"
curl-7.65.1_1                      <   needs updating (index has 7.65.3)
freetype2-2.10.0                   <   needs updating (index has 2.10.1)
py27-imagesize-0.7.1               <   needs updating (index has 1.1.0)
py27-snowballstemmer-1.2.0_1       <   needs updating (index has 1.2.1)
py36-imagesize-0.7.1               <   needs updating (index has 1.1.0)
py36-snowballstemmer-1.2.0_1       <   needs updating (index has 1.2.1)
webp-1.0.2                         <   needs updating (index has 1.0.3)
 てなことになります。
 わたしだけの問題ではないらしく、「Other memo for FreeBSD (shige)」にも、同様の記事があります。
> portupgrade -Rr curl
--->  Session started at: Mon, 22 Jul 2019 07:51:16 +0900
[Reading data from pkg(8) ... - 415 packages found - done]
[Gathering depends for ftp/curl ......(devel/gmake)..(devel/gettext-runtime)..(converters/libiconv)(print/indexinfo)(devel/pkgconf)(security/openssl).(lang/perl5.28)(www/libnghttp2)....(devel/autoconf).......(devel/m4)..(print/texinfo)..........(misc/help2man)......(devel/p5-Locale-gettext)...(devel/gettext-tools)....(devel/libtextstyle)..(devel/p5-Locale-libintl)....(converters/p5-Text-Unidecode).(textproc/p5-Unicode-EastAsianWidth).(devel/autoconf-wrapper)(devel/automake)....(devel/libtool)....(security/ca_root_nss).. done]
[Gathering depends for databases/mysql57-server ..........(devel/bison).......(devel/cmake).......(textproc/py-sphinx)..............(lang/python36)......(devel/libffi).(devel/readline).(textproc/expat2)(devel/jsoncpp).(devel/scons)...(lang/python27)......(devel/libuv)....(security/rhash)(archivers/libarchive).....(archivers/liblz4)..(archivers/lzo2)(devel/libevent).....(devel/protobuf)..(devel/libedit)(databases/mysql57-client)...........(net/openldap24-sasl-client)..(security/cyrus-sasl2)... done]
** Duplicated origin - textproc/py-sphinx: py27-sphinx-1.6.5_2,1 py36-sphinx-1.6.5_2,1
** Run 'pkgdb -F' to interactively fix them.
--->  Session ended at: Mon, 22 Jul 2019 07:51:22 +0900 (consumed 00:00:05)
 2. 対策他の多くのものと同様。の記述を、いったん
/etc/make.conf
 として、
DEFAULT_VERSIONS+=python=2.7 python2=2.7
#DEFAULT_VERSIONS+=python=3.6 pythonr3=3.6
 「/etc/make.conf」を、また
cd /usr/ports/textproc/py-sphinx
make deinstall clean
 にして
#DEFAULT_VERSIONS+=python=2.7 python2=2.7
DEFAULT_VERSIONS+=python=3.6 pythonr3=3.6
 その後は、他の portupgrade が正常に動作するようになります。
cd /usr/ports/textproc/py-sphinx
make deinstall clean
make
make install
 |  |