CONTENTS


Lastmodified 2021-06-14 (月) 06:56:28


https://qiita.com/psaxuww/items/4f14414999fc1b31ca11

freebsd-update upgrade -r 12.2-RELEASE
freebsd-update install
reboot
freebsd-update install
pkg bootstrap -f
portupgrade -af --batch
freebsd-update install
uname -a
FreeBSD  12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
root@piano2nd:~:21_05_22:5:15 # freebsd-update install
src component not installed, skipped
Installing updates...rmdir: ///var/db/etcupdate/current/usr/share/openssl/man/en.ISO8859-1: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/openssl/man: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/openssl: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/man/en.UTF-8: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/man/en.ISO8859-1: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/man: Directory not empty
 done.

https://www.facebook.com/groups/freebsd.labo.japan/permalink/2493192240752658/ 上記の作業だけだとntpdが動かないことがあるのでpwd_mkdbとchown実行すればntpdが動きます

# pwd_mkdb /etc/master.passwd
# chown ntpd:ntpd /var/db/ntp/{ntpd.drift,ntpd.pid}

FreeBSD 11.4 to 12.2

freebsd-update -r 12.2-RELEASE upgrade

# freebsd-update -r 12.2-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 11.4-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic world/base world/lib32

The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/doc world/lib32-dbg

Does this look reasonable (y/n)? 

y

Fetching metadata signature for 12.2-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 11.4-RELEASE for merging... done.
Preparing to download files... done.
Fetching 9250 patches.....10....20
Applying patches... done.
Fetching 10227 files...

The following file could not be merged automatically: /etc/ssh/moduli
Press Enter to edit this file in vi and resolve the conflicts
manually...
/var/db/etcupdate/current/root/.login
/var/db/etcupdate/current/root/.profile
/var/db/etcupdate/log
/var/db/mergemaster.mtree
/var/empty
/var/yp/Makefile.dist
To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".

/usr/sbin/freebsd-update install

Installing updates...
Kernel updates have been installed.  Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.

reboot

/usr/sbin/freebsd-update install

Installing updates...
Completing this upgrade requires removing old shared object files.
Please rebuild all installed 3rd party software (e.g., programs
installed from the ports tree) and then run "/usr/sbin/freebsd-update install"
again to finish installing updates.

portupgrade -arf --batch

 # portupgrade -af --batch

Shared object "libssl.so.8" not found

https://forums.freebsd.org/threads/i-cant-upgrade-pkg-after-upgrading-11-2-to-12-0.68717/

pkg-static install -f pkg

pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
Updating FreeBSD repository catalogue...
Repository FreeBSD has a wrong packagesite, need to re-create database
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Fetching packagesite.txz: 100%    6 MiB 288.9kB/s    00:20
Processing entries: 100%
FreeBSD repository update completed. 25385 packages processed.
Updating database digests format: 100%
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be DOWNGRADED:
        pkg: 1.9.2 -> 1.8.8

Number of packages to be downgraded: 1

The process will require 2 MiB more space.
2 MiB to be downloaded.

Proceed with this action? [y/N]:

y

portupgrade -af --batch or pkg upgrade

** Port deleted on 2020-09-19: www/mod_python35
        Has expired: Uses deprecated version of python
** Port deleted on 2020-09-19: japanese/mailman
        Has expired: Uses deprecated version of python
** Port marked as IGNORE: security/p5-OpenCA-OpenSSL:
        is marked as broken: does not build with DEFAULT_VERSIONS+=ssl=openssl: incomplete definition of type 'struct x509_st'

/usr/sbin/freebsd-update install

FreeBSDー12 システムのOpenSSL を使う様に変更

/etc/make.conf の OpenSSL コメントアウト

#DEFAULT_VERSIONS+=ssl=openssl

Apache24 PHP73 再コンパイル

# portupgrade -rfR --batch apache24-2.4.46_2
# portupgrade -rf 'php73*'
# portupgrade -rf curl-7.76.1 --batch
# portupgrade -f -m "DISABLE_VULNERABILITIES=yes" mysq80-server

Encode.c: loadable library and perl binaries are mismatched

https://www.basekernel.jp/cgi-bin/adiary/adiary.cgi/basekrnl/0720

Encode.c: loadable library and perl binaries are mismatched (got handshake key 0xc000080, needed 0xc680080)
# pkg info -r perl5
perl5-5.28.3_1:
       p5-Canary-Stability-2013_1
       imake-1.0.8,1
       utf8proc-2.6.1
       aspell-0.60.8_1,1
       mysql80-server-8.0.25
       mysql80-client-8.0.25
       p5-Encode-3.09
       apache24-2.4.46_2
       p5-HTTP-Message-6.31
       p5-Type-Tiny-1.012003
       w3m-0.5.3.20210424
       p5-libwww-6.54
       p5-Net-DNS-1.31,1
       p5-CGI-4.52
       p5-DateTime-Locale-1.32
       p5-CryptX-0.072
       texinfo-6.7_5,1
       help2man-1.48.3
       p5-Net-HTTP-6.21
       ImageMagick6-6.9.11.6_3,1
       logcheck-1.3.23
       p5-Moo-2.005004
       spamassassin-3.4.5
       munin-master-2.0.67
       munin-node-2.0.67
       munin-common-2.0.67
       net-snmp-5.9_3,1
       p5-IO-Socket-SSL-2.070
       p5-Crypt-DES-2.07_2
       p5-Crypt-CBC-3.01
       p5-Crypt-PBKDF2-0.161520
       p5-strictures-2.000006,1
       p5-multidimensional-0.014
       p5-indirect-0.39
       p5-bareword-filehandles-0.007
       p5-B-Hooks-OP-Check-0.22
       p5-ExtUtils-Depends-0.8000
       p5-Type-Tiny-XS-0.022
       p5-Type-Tie-0.015
       p5-Hash-FieldHash-0.15
       p5-Ref-Util-XS-0.117
       p5-Digest-SHA3-1.04
       p5-DateTime-TimeZone-2.47,1
       p5-Specio-0.47
       p5-URI-5.07
       p5-Mail-AuthenticationResults-2.20210112
       p5-Role-Tiny-2.002004
       llvm10-10.0.1_5
       p5-HTTP-Cookies-6.10
       automake-1.16.3
       p5-MIME-Types-2.18
       p5-List-MoreUtils-0.430
       p5-File-Listing-6.14
       p5-DateTime-1.54
       p5-Params-Util-1.102
       p5-Date-Manip-6.83
       p5-Class-Singleton-1.6
       p5-Class-C3-0.35
       p5-Algorithm-C3-0.11
       p5-Package-Stash-0.39
       p5-Locale-libintl-1.32
       p5-List-MoreUtils-XS-0.430
       p5-File-ShareDir-1.118
       p5-Params-Validate-1.30
       p5-XML-LibXML-2.0206,1
       p5-HTML-Parser-3.75
       p5-Log-Log4perl-1.53
       p5-BerkeleyDB-0.64
       p5-DBD-Pg-3.14.2
       p5-Mail-Tools-2.21
       p5-Mozilla-CA-20200520
       p5-DateTime-HiRes-0.04
       rrdtool-1.7.2_4
       llvm80-8.0.1_4
       amavisd-new-2.12.0_1,1
       p5-Convert-TNEF-0.18_2
       p5-IO-Stringy-2.113
       p5-HTTP-Daemon-6.12
       p5-TimeDate-2.33,1
       p5-Clone-0.45
       p5-common-sense-3.75
       p5-Exporter-Tiny-1.002002
       p5-Archive-Zip-1.68
       p5-Convert-UUlib-1.70,1
       p5-Net-DNS-Resolver-Mock-1.20200215
       p5-DBI-1.643
       p5-Error-0.17029
       p5-Module-Build-0.4231
       p5-Time-Local-1.30
       p5-Net-SSLeay-1.88
       p5-FCGI-0.79
       p5-JSON-2.97.001
       p5-Mail-DKIM-0.58
       p5-HTTP-Date-6.05
       intltool-0.51.0_1
       p5-File-ShareDir-Install-0.13
       p5-Sub-Quote-2.006006
       p5-Unicode-EastAsianWidth-12.0
       p5-namespace-autoclean-0.29
       p5-Mail-SPF-2.9.0_5
       p5-Class-Method-Modifiers-2.13
       hunspell-1.7.0_2
       autoconf-2.69_3
       p5-Text-Unidecode-1.30
       p5-Locale-gettext-1.07
       p5-Class-Inspector-1.36
       p5-File-Copy-Recursive-0.45
       mime-construct-1.11_2
       p5-Proc-WaitStat-1.00_1
       p5-IPC-Signal-1.00_1
       p5-Unix-Syslog-1.1_1
       p5-Crypt-OpenSSL-RSA-0.31
       p5-Crypt-OpenSSL-Bignum-0.09
       p5-XML-Parser-2.44
       p5-Crypt-OpenSSL-Random-0.15
       p5-Package-Stash-XS-0.29
       p5-Net-LibIDN-0.12_5
       p5-Net-IDN-Encode-2.500
       p5-Encode-Detect-1.01_1
       p5-Socket6-0.29
       p5-IPC-ShareLite-0.17_1
       p5-Digest-SHA1-2.13_1
       p5-Sub-Identify-0.14
       p5-Variable-Magic-0.62
       p5-NetAddr-IP-4.079
       p5-XML-SAX-1.02
       p5-Net-IP-1.26_1
       p5-Devel-StackTrace-2.04
       p5-Net-CIDR-0.20
       p5-Params-ValidationCompiler-0.30_1
       p5-Test-Exception-0.43
       p5-Sub-Uplevel-0.2800
       p5-CGI-Fast-2.15
       p5-LWP-MediaTypes-6.04
       p5-Net-CIDR-Lite-0.21_1
       p5-File-NFSLock-1.29
       p5-Try-Tiny-0.30
       p5-HTML-Template-2.95_1
       p5-XML-SAX-Base-1.09
       p5-XML-NamespaceSupport-1.12
       p5-WWW-RobotRules-6.02_1
       p5-HTTP-Negotiate-6.01_1
       p5-IO-HTML-1.001_1
       p5-Encode-Locale-1.05
       p5-Authen-NTLM-1.09_1
       p5-Cache-Cache-1.08
       p5-Cache-2.11
       p5-IO-String-1.08_1
       p5-Heap-0.80_1
       p5-Net-SNMP-6.0.1_1
       p5-namespace-clean-0.27
       p5-B-Hooks-EndOfScope-0.24
       p5-Sub-Exporter-Progressive-0.001013
       p5-Sub-Exporter-0.987_1
       p5-Data-OptList-0.110
       p5-Sub-Install-0.928_1
       p5-Module-Implementation-0.09_1
       p5-MRO-Compat-0.13
       p5-Eval-Closure-0.14
       p5-Exception-Class-1.44
       p5-Class-Data-Inheritable-0.08_1
       p5-Dist-CheckConflicts-0.11_1
       p5-Module-Runtime-0.016
       p5-Net-DNS-Resolver-Programmable-0.009
       p5-HTML-Tagset-3.20_1
       p5-Digest-HMAC-1.03_1
       p5-Net-Server-2.009
       p5-IO-Socket-INET6-2.72_1
       p5-IO-Multiplex-1.16
       p5-MIME-Tools-5.509,2
       p5-Convert-BinHex-1.125
               
# pkg info -r perl5
portupgrade -f --batch

imake-1.0.8,1 utf8proc-2.6.1 aspell-0.60.8_1,1 mysql80-server-8.0.25 mysql80-client-8.0.25
apache24-2.4.46_2 w3m-0.5.3.20210424 texinfo-6.7_5,1 help2man-1.48.3 ImageMagick6-6.9.11.6_3,1
logcheck-1.3.23 spamassassin-3.4.5 munin-master-2.0.67 munin-node-2.0.67 munin-common-2.0.67
net-snmp-5.9_3,1 llvm10-10.0.1_5 automake-1.16.3 rrdtool-1.7.2_4 llvm80-8.0.1_4
amavisd-new-2.12.0_1,1 intltool-0.51.0_1 hunspell-1.7.0_2 autoconf-2.69_3 mime-construct-1.11_2

Total access 977:本日 1:昨日 0

Counter: 977, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS