LoginSignup
0
1

More than 3 years have passed since last update.

portsnap が更新しない場合の対処法

Last updated at Posted at 2021-04-12

2021/3/31 以降 subversion での ports skeleton の更新が停止てしたので、git への移行作業が必要となった。

注:2021/4/15 時点で skeleton 全ての更新が入り問題なく portsnap も利用可能の模様。

今までの手順

# portsnap fetch update

これからの手順

ユーザランドには執筆時点でコマンドの用意がされておらず、devel/git をインスコするハメになるが、ビルドに時間が掛かるし、同期以外のコマンド (commit や merge 等 ) が不要なので、 src や ports の同期専用のサブセット的な net/gitup をインスコする。

# cd /usr/ports/net/gitup && make install

必要であれば /usr/local/etc/gitup.conf を適宜書き換えるがデフォルトではブランチが無いって文句言われるけ、その辺りを書き換える。

ワンライナーで勝負😏
# sed 's|master|main|' /usr/local/etc/gitup.conf.sample> /usr/local/etc/gitup.conf
参照鯖を標準(github.com→git.FreeBSD.orgへ+おまけ)
--- /usr/local/etc/gitup.conf.sample
+++ /usr/local/etc/gitup.conf@@ -10,13 +10,15 @@
    },

    "ports" : {
-       "host"       : "github.com",
-       "repository" : "/freebsd/freebsd-ports.git",
-       "branch"     : "master",
+       "repository" : "/ports.git",
+       "branch"     : "main",
        "target"     : "/usr/ports",
        "ignores"    : [
            "distfiles",
            "packages",
+           "INDEX-*",
+           ".snap",
+           ".sujournal",
        ],
    },

以前は初期化としての御呪いが一度だけ実行しないと更新作業が出来なかったが、
git に変わってからは初回の御呪いは不要じゃが、index が自動生成しよらんけ、御呪いが毎回必要となる。

御呪い
# gitup ports
# cd /usr/ports && make fetchindex

web 閲覧も url 変更

これは、コミットログの参照先の url 変更なので、ブックマークの変更だけで🆗

subversion
https://svnweb.freebsd.org/

git
https://cgit.freebsd.org/

当分の間は subversion のコミットログ閲覧は可能だと思われるのじゃが、陳腐化しよっって行けば無くなるじゃろな😢
注:謎の更新停止時期に対するアナウンスが見つからんかったのじゃが、とりま、gitup 移行への手順書として残しておく✌
注2:gitup.conf 記述に間違いがあったけ、修正と薄っすら追記💦

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1