portupgrade、portmaster、portconf

以前都是用 管理套件的更新,不過 的速度不太好 (在 的 mailing list 上有人說是因為 Ruby 的關係,不過我覺得應該是程式的問題…),後來在 #bsdchat 上看到用 sh 寫的 ,拿來試了以後發現速度比起 快多了,就用了一陣子,沒什麼大問題的話就可以跳槽過來…

有個功能在 似乎是沒有的,也就是在 compile 時設定一些參數,像是編 時需要 WITH_XCHARSET=all,所以就要找其他的套件來替代,也就是標題提到的 + 後更新 ports 目前暫時沒看到什麼問題,也許再跑個一陣子試看看,沒問題就把 拿掉。

8 Responses to “portupgrade、portmaster、portconf”


  1. 1 rafan

    我想要 AFTERINSTALL

  2. 2 rafan

    另外, 如果 /usr/ports 是 symlink, portconf 會不能動, 要偷改一下… :o

  3. 3 Gea-Suan Lin

    /usr/ports 是 soft link 的問題不知道能不能用 realpath(1) 解決?不過這樣每次跑 make 就會跑一次 realpath(1)… @_@

  4. 4 rafan

    這就是我塞給 ale@ 的 (翻一下 PR 有)… 折衷一點的是裝的時候跑一次,不要每次都跑

  5. 5 rafan

    我測了一下 buildworld (RELENG_6) 的速度

    用原本 portconf 的:

    real 49m24.906s
    user 43m28.955s sys 7m0.636s

    用 realpath 的:

    real 52m17.299s
    user 44m9.920s sys 8m39.969s

  6. 6 clsung

    這樣是比較慢的意思 …. ?

  7. 7 rafan

    對,比較慢. 等 ale@ 看看好了 *_*

  1. 1 Hi! I'm clsung

Leave a Reply