CONTENTS


Lastmodified 2023-04-19 (水) 10:22:15


ruby 3.0 > 3.*

/usr/ports/UPDATING

0230315:
 AFFECTS: users of lang/ruby30
 AUTHOR: yasu@FreeBSD.org

 The default ruby version has been updated from 3.0 to 3.1.

 If you compile your own ports you may keep 3.0 as the default version by
 adding the following lines to your /etc/make.conf file:

 #
 # Keep ruby 3.0 as default version
 #
 DEFAULT_VERSIONS+=ruby=3.0

 If you wish to update to the new default version, you need to first stop any
 software that uses ruby. Then, you will need to follow these steps, depending
 upon how you manage your system.

 If you use pkg, simply upgrade:
 # pkg upgrade

 If you do not use pkg, please check entry 20190420.
 The description there should also work for this version.

ruby 2.7 > 3.0

/usr/ports/UPDATING

20220421:
 AFFECTS: users of lang/ruby27
 AUTHOR: yasu@FreeBSD.org

 The default ruby version has been updated from 2.7 to 3.0.

 If you compile your own ports you may keep 2.7 as the default version by
 adding the following lines to your /etc/make.conf file:

 #
 # Keep ruby 2.7 as default version
 #
 DEFAULT_VERSIONS+=ruby=2.7

 If you wish to update to the new default version, you need to first stop any
 software that uses ruby. Then, you will need to follow these steps, depending
 upon how you manage your system.

 If you use pkg, simply upgrade:
 # pkg upgrade

 If you do not use pkg, please check entry 20190420.
 The description there should also work for this version.

https://freebsd.sing.ne.jp/daily/07/07.html

portupgrade -m "DISABLE_VULNERABILITIES=yes" -f ruby27 -o lang/ruby30
$ portupgrade -f ruby27 -o lang/ruby30
[Reading data from pkg(8) ... - 479 packages found - done]

$ pkg set -o lang/ruby27:lang/ruby30
Change origin from lang/ruby27 to lang/ruby30 for ruby-2.7.6,1? [y/N]:

/etc/make.conf

DEFAULT_VERSIONS+=ruby=2.7.propertiesCopy

の行を下記へ変更します。

DEFAULT_VERSIONS+=ruby=3.0
cd /usr/ports/lang/ruby27
make deinstall clean
cd /usr/ports/lang/ruby30
make install clean

セキュリティエラーが出るので、

make DISABLE_VULNERABILITIES=yes

する。

# ruby --version
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [amd64-freebsd13]

更新が必要なパッケージを調べるため

portsdb -Fu
make: exec(portsdb) failed (No such file or directory)
*** Error code 1

するもエラー。

取り敢えず、portupgrade をインストールしたいので、

# pkg install portupgrade

New packages to be INSTALLED:
       portupgrade: 2.4.16,2
       ruby27: 2.7.7,1
       ruby31-bdb: 0.6.6_8

Installed packages to be UPGRADED:
       ruby: 3.0.5_1,1 -> 3.1.3_2,1
Proceed with this action? [y/N]: y

で、インストールして、/etc/make.conf のrubyの行は#する。


ruby 26 27

ruby-2.6.6_2,1 > ruby-2.7

/usr/ports/UPDATING

20201128:
  AFFECTS: users of lang/ruby26
  AUTHOR: mfechner@FreeBSD.org

  The default ruby version has been updated from 2.6 to 2.7.

  If you compile your own ports you may keep 2.6 as the default version by
  adding the following lines to your /etc/make.conf file:

  #
  # Keep ruby 2.6 as default version
  # 
  DEFAULT_VERSIONS+=ruby=2.6

  If you wish to update to the new default version, you need to first stop any
  software that uses ruby. Then, you will need to follow these steps, depending
  upon how you manage your system.

  If you use pkg, simply upgrade:
  # pkg upgrade

  If you do not use pkg, please check entry 20190420.
  The description there should also work for this version.

# pkg delete ruby-2.6.6_2,1

Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 6 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        portupgrade: 2.4.16,2
        ruby: 2.6.6_2,1
        ruby26-bdb: 0.6.6_8
        ruby26-gems: 3.0.8
        rubygem-asciidoctor: 2.0.10
        rubygem-rdoc: 6.2.1

Number of packages to be removed: 6

The operation will free 44 MiB.

Proceed with deinstalling packages? [y/N]:

# pkg info -r ruby-2.6.6_2,1

ruby-2.6.6_2,1:
       ruby26-gems-3.0.8
       rubygem-rdoc-6.2.1
       ruby26-bdb-0.6.6_8
       portupgrade-2.4.16,2
# pkg delete ruby-2.6.6_2,1
y
# cd /usr/ports/lang/ruby27
# make install clean
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean

# portinstall textproc/rubygem-asciidoctor

Total access 750:本日 1:昨日 1

Counter: 750, today: 1, yesterday: 1

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-04-19 (水) 10:22:15