- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-01-04T12:15:44+09:00","default:kuji","kuji")
#author("2022-07-01T08:23:01+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*python 3.6 to 3.7 [#o1ae78d8]
===> Registering installation for py37-setuptools-41.4.0_1 as automatic
Installing py37-setuptools-41.4.0_1...
pkg-static: py37-setuptools-41.4.0_1 conflicts with py36-setuptools-41.4.0_1 (installs files into the same place).
*python38 to 39 [#j4022632]
20220626:
AFFECTS: users of python
AUTHOR: thierry@FreeBSD.org
The default version of python3 and python was switched to 3.9.
Installed packages to be REMOVED:
py36-setuptools-41.4.0_1
py36-configargparse-1.0
py36-certifi-2019.11.28
py36-cython-0.29.13_1
py36-chardet-3.0.4_3
meson-0.52.1
py36-urllib3-1.25.6,1
py36-parsedatetime-2.5
py36-requests-2.22.0
py36-cffi-1.13.2
py36-future-0.18.2
py36-recommonmark-0.5.0_1
py36-CommonMark-0.9.1
py36-pytz-2019.3,1
py36-requests-toolbelt-0.8.0_1
py36-certbot-0.39.0,1
py36-acme-0.39.0,1
py36-sphinx-1.6.5_2,1
py36-zope.component-4.2.2
py36-josepy-1.2.0
py36-openssl-19.0.0
py36-cryptography-2.6.1
py36-idna-2.8
py36-zope.event-4.1.0
py36-Jinja2-2.10.1
py36-MarkupSafe-1.1.1
py36-alabaster-0.7.6
py36-pytest-runner-2.11.1
py36-ply-3.11
py36-snowballstemmer-1.2.1
py36-docutils-0.15.2
py36-distro-1.4.0_1
py36-zope.interface-4.6.0
py36-imagesize-1.1.0
py36-pyrfc3339-1.1
py36-Babel-2.7.0
py36-asn1crypto-0.24.0
py36-pycparser-2.19
py36-configobj-5.0.6_1
py36-speedtest-cli-2.1.1
py36-setuptools_scm-3.3.3
py36-sphinxcontrib-websupport-1.1.2
py36-sphinx_rtd_theme-0.4.3
py36-pygments-2.4.1
py36-pystemmer-1.3.0_2
py36-six-1.12.0
py36-pysocks-1.7.1
bind-tools-9.14.9
bind911-9.11.14
For ports users wanting to keep version 3.8 as default,
add DEFAULT_VERSIONS+= python=3.8 python3=3.8 to make.conf
Following procedures may ease the upgrade:
For users of pre-build packages:
# sh
# for i in $(pkg query -g %n 'py38-*'); do pkg set -yn ${i}:py39-${i#py38-}; done
# pkg upgrade
For portmaster users:
# sh
# portmaster -o lang/python39 python38
# REINSTALL="$(pkg info -o "*py38*" | awk '{printf "%s ", $2}')"
# pkg delete -f "*py38*"
# portmaster $REINSTALL
# REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py39 | cut -d : -f 1 | sort -u)
# portmaster $REBUILD
# REBUILD2=$(pkg list | grep python-38 | xargs pkg which | awk '{print $6}' | sort -u)
# portmaster $REBUILD2
----
sh
portmaster -o lang/python39 python38 -D --no-confirm $REBUILD
REINSTALL="$(pkg info -o "*py38*" | awk '{printf "%s ", $2}')" && pkg delete -f "*py38*"
portmaster -D --no-confirm $REINSTALL
REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py39 | cut -d : -f 1 | sort -u) && portmaster -D --no-confirm $REBUILD
REBUILD2=$(pkg list | grep python-38 | xargs pkg which | awk '{print $6}' | sort -u) && portmaster -D --no-confirm $REBUILD2
----
Final steps (for pre-built packages & portmaster):
If no longer required, Python 3.8 can be removed via
"pkg remove python38" and the directory /usr/local/lib/python3.8 can
then be deleted afterwards, if not empty.
* python38 to 38 ? [#x496d062]
For portmaster users:
portmaster -D --no-confirm をオプションとして、[y/n] を抑制
# sh
# portmaster -o lang/python38 python38
# REINSTALL="$(pkg info -o "*py38*" | awk '{printf "%s ", $2}')"
# pkg delete -f "*py38*"
# portmaster -D --no-confirm $REINSTALL
# REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py38 | cut -d : -f 1 | sort -u)
# portmaster -D --no-confirm $REBUILD
# REBUILD2=$(pkg list | grep python-38 | xargs pkg which | awk '{print $6}' | sort -u)
# portmaster -D --no-confirm $REBUILD2
* python 3.7 to 3.8 [#i5a2b281]
20210425:
AFFECTS: users of python
AUTHOR: kai@FreeBSD.org
The default version of python3 and python was switched to 3.8.
For ports users wanting to keep version 3.7 as default,
add DEFAULT_VERSIONS+= python=3.7 python3=3.7 to make.conf
Following procedures may ease the upgrade:
For users of pre-build packages:
# sh
# for i in $(pkg query -g %n 'py37-*'); do pkg set -yn ${i}:py38-${i#py37-}; done
# pkg upgrade
For portmaster users:
portmaster -D --no-confirm をオプションとして、[y/n] を抑制
# sh
# portmaster -o lang/python38 python37
# REINSTALL="$(pkg info -o "*py37*" | awk '{printf "%s ", $2}')"
# pkg delete -f "*py37*"
# portmaster -D --no-confirm $REINSTALL
# REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py38 | cut -d : -f 1 | sort -u)
# portmaster -D --no-confirm $REBUILD
# REBUILD2=$(pkg list | grep python-37 | xargs pkg which | awk '{print $6}' | sort -u)
# portmaster -D --no-confirm $REBUILD2
* python 3.6 to 3.8 [#i5a2b281]
For ports users wanting to keep version 3.6 as default,
add DEFAULT_VERSIONS+= python=3.6 python3=3.6 to make.conf
Following procedures may ease the upgrade:
For users of pre-build packages:
# sh
# for i in $(pkg query -g %n 'py36-*'); do pkg set -yn ${i}:py38-${i#py36-}; done
# pkg upgrade
For portmaster users:
# sh
# portmaster -o lang/python38 python36
# REINSTALL="$(pkg info -o "*py36*" | awk '{printf "%s ", $2}')"
# pkg delete -f "*py36*"
# portmaster $REINSTALL
# REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py38 | cut -d : -f 1 | sort -u)
# portmaster $REBUILD
# REBUILD2=$(pkg list | grep python-36 | xargs pkg which | awk '{print $6}' | sort -u)
# portmaster $REBUILD2
*/usr/local/sbin/portversion -vl'<' [#z1a4de2c]
すると、
py37-sqlite3-3.7.9_7 < needs updating (port has 3.9.1_7)
と言われるが、py-sqlite3 を portinstall すると、
Installing py37-sqlite3-3.7.9_7...
===> Cleaning for py37-sqlite3-3.7.9_7
===> Cleaning for py27-sqlite3-2.7.18_7
===> Cleaning for py38-sqlite3-3.8.7_7
===> Cleaning for py39-sqlite3-3.9.1_7
===> Cleaning for py36-sqlite3-3.6.12_7
となるので、このport has 3.9.1_7というのは、py39のバージョンナンバーということになる???なんで???
*python 3.6 to 3.7 [#p8d421a2]
python 3.6 で動作している212というサーバがあって、3.6から3.7へ移行したいので、
**/etc/make.conf [#ic6ccb88]
DEFAULT_VERSIONS+= perl5=5.28
#DEFAULT_VERSIONS+= perl5=5.26
NO_SENDMAIL= true
#DEFAULT_VERSIONS+=python=3.6 pythonr3=3.6
DEFAULT_VERSIONS+=python=3.7 pythonr3=3.7
DEFAULT_VERSIONS+=ruby=2.6
pkg set -o lang/python36:lang/python37
Change origin from lang/python36 to lang/python37 for all dependencies? [y/N]: y
として、この段階では、
# pkg delete python36-3.6.9_3
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 9 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
python36-3.6.9_3
munin-node-2.0.52
llvm80-8.0.1_3
glib-2.56.3_6,1
rrdtool-1.7.2_1
harfbuzz-2.6.4
pango-1.42.4_3
cairo-1.16.0,2
munin-master-2.0.52
Number of packages to be removed: 9
The operation will free 992 MiB.
Proceed with deinstalling packages? [y/N]:
となるが、
# pkg delete python37-3.7.6
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
python37-3.7.6
Number of packages to be removed: 1
The operation will free 110 MiB.
Proceed with deinstalling packages? [y/N]:
となる。
https://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/pkgng-intro.html
https://ja.stackoverflow.com/questions/53587/python%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%82%923-7%E3%81%AB%E3%81%97%E3%81%9F%E3%81%84
**/usr/local/sbin/portversion -vl'<' すると、 [#i51de3c0]
Ports tree is already up to date.
[Reading data from pkg(8) ... - 441 packages found - done]
help2man-1.47.11 < needs updating (port has 1.47.12)
oniguruma-6.9.3 < needs updating (port has 6.9.4)
python36-3.6.9_3 < needs updating (port has 3.7.6)
vulnxml file up-to-date
0 problem(s) in 0 installed package(s) found.
**portupgrade -arR (--batch) [#kd6c2f95]
すると、一番に python36 > python37 される模様。
Installing python37-3.7.6...
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:
py37-gdbm databases/py-gdbm@py37
py37-sqlite3 databases/py-sqlite3@py37
py37-tkinter x11-toolkits/py-tkinter@py37
**ports/UPDATING には次のように書かれていますので、 [#t928da91]
```
This may ease the upgrade for users of pre-build packages:
# sh
# for i in $(pkg query -g %n 'py36-*'); do pkg set -yn ${i}:py37-${i#py36-}; done
# pkg upgrade
*** [#n3a40d8c]
Performing sanity check on apache24 configuration:
[Mon Jan 06 11:49:20.552895 2020] [php7:crit] [pid 12786:tid 34397577216] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
*** [#f74b5bdd]
=====
Message from postgresql12-client-12.5:
--
The PostgreSQL port has a collection of "side orders":
postgresql-docs
For all of the html documentation
p5-Pg
A perl5 API for client access to PostgreSQL databases.
postgresql-tcltk
If you want tcl/tk client support.
postgresql-jdbc
For Java JDBC support.
postgresql-odbc
For client access from unix applications using ODBC as access
method. Not needed to access unix PostgreSQL servers from Win32
using ODBC. See below.
ruby-postgres, py-psycopg2
For client access to PostgreSQL databases using the ruby & python
languages.
postgresql-plperl, postgresql-pltcl & postgresql-plruby
For using perl5, tcl & ruby as procedural languages.
postgresql-contrib
Lots of contributed utilities, postgresql functions and
datatypes. There you find pg_standby, pgcrypto and many other cool
things.
etc...
You may need to manually remove /usr/local/etc/namedb/named.conf if it is no longer needed.
=====
Message from bind911-9.11.26:
--
===> NOTICE:
This port is deprecated; you may wish to reconsider installing it:
End of life, please migrate to a newer version of BIND9.
It is scheduled to be removed on or after 2021-12-31.
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);