Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

mock 和 ybuild 搭配用


$ cd source
$ ybuild update '*'
$ for i in $(ybuild list -d); do ybuild getsrpm -d $i; done
$ su - builder
$ for i in source/*.src.rpm; do mockc --debug $i; cat result/build.log >> build.log; cat result/root.log >> root.log; cp -i result/*.rpm source ; done

alias mockc='mock --autocache -r fedora-devel-i386-core --debug'
alias mocknc='mock --autocache -r fedora-devel-i386-core --no-clean --debug'
不是很适应跑 cron jobs


还好,pingus, Clanlib 都已经被禁掉了。mock 没办法解决 build requires 的问题,但是要解决也很简单啊,编译两通,第一通编译之后 createrepo 就好了。所以,与其花力气做 ybuild,立即解决问题,倒不如编译两次,反正机器做事情,不要人来操心。

$ ybuild list -d | sort
app-editors/emacs23/
app-edu/reciteword/
app-edu/reciteword-data/
app-i18n/zhcon/
app-text/acroread/
app-text/chmsee/
CPAN/perl-Ybuild/
games-net/bluedj/
media-fonts/acroread-fonts-chs/
media-fonts/fonts-firefly-song/
media-fonts/fonts-hkscs-ming/
media-fonts/fonts-wenquanyi-song/
media-gfx/gpaint/
media-libs/alsa-oss/
media-libs/win32codecs/
net-ftp/ftpsync/
net-im/eva/
sys-base/debootstrap/
sys-base/fedora-cn-release/
sys-devel/yautobuilder/
sys-devel/ybuild/
sys-fs/fuse-convmvfs/
sys-fs/ntfs-3g/
unknown/915resolution/
unknown/dvipdfmx/


今天 hellwolf 又在 ybuild 中添加了 opts 功能,支持了 per package opts,就有了 gentoo 的 use 的感觉。opts 存在每个软件包相应的 db 文件中,感觉不如 gentoo 直观,并且要用上这些 opts,还有很多事情要做。
Tags: linux, , 小东西
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments