Portage

FEATURES='distcc'っていうのがとても捗る

RaspberryPIにGentooを入れて遊び始めたが,emergeが遅すぎてつらい.まあcross compile前提だよねーと思って環境を作ってみたものの,/以下まるっとrsyncとかなんか怖いしqpkgとか使い方しらんし覚えたくねーなって思っていたところ,Portageがdistccをサポ…

equery changes its output by isatty()

I've got confused when trying to see output of equery depgraph. It turns off verbose flag if its output piped to another process. When executing it without piping output, the output is formatted as tree-view and contains informations regar…

Skip emerging package which was provided manually

Use package.provided. For example, if you want install virt-install from portage without depending to app-emulation/libvirt: # /etc/portage/profile/package.provided app-emulation/libvirt

Hook after emerge

emergeした後にhookの設定ができたら便利だなーと思っていたら実はできました. Ref: https://forums-lb.gentoo.org/viewtopic-t-772340-start-0.html /etc/portage/bashrcにpost_pkg_postinstというfunctionを定義することで,各パッケージのインストール後…

Build ebuild package manually

Which fails to emerge. Applying own patch. With reference: https://www.gentoo.org/doc/en/handbook/2004.2/handbook-x86.xml?part=3&chap=6 ebuild(1) always requires .ebuild file as first argument, and action as second argument. Here's an exam…