mumumuの日記: kdesvn-build 1.0 2
今月はじめに、KDE SVNのビルドツールkdesvn-buildの
1.0がついにリリースされた。
l10nモジュールの選択的ビルド、stableブランチとtrunk
の選択を明示的に行う機能を追加、等の強力な改善に加えて
bug fixも加わり、KDEの最新を丸ごと追ってみたいデベロ
ッパにとっては、まさに1.0に相応しいビルドツールとなった。
l10nのビルド追加により、kdebase等、KDEの根幹に関わ
る翻訳の変更を即座にチェックすることが可能になる。翻訳
に参加している者、そしてコーディーネーターにとっては
非常に強力な助けになろう。
----
だが、l10nモジュールのビルドの際、configureオプショ
ンをはじめとするグローバルな設定オプションを悉く無視する
ようにソースがかかれていたため、root権限がないと実質的に
インストールができないという動きになっていた。
バグかどうかわからなかったので、作者のMichael Pyneに
直接メールすると、本人もどうして無視するように書いたのか
わからないという返事が来た(´ー`;) だが、この振る舞い
を次のバージョンでは消してくれる方向で動いてくれるそうだ。
とりあえずのworkaroundとして、下のメールにあるソース
部分をコメントアウトしてビルドを行えば、rootなしでも
ビルド結果をKDEDIRに自動でインストールしてくれるように
なる。
----
On Sunday 19 February 2006 13:43, you wrote:
> hi, michael.
>
> thank you for release kdesvn-build 1.0! its a good software and i enjoy it
> too enough every day.
>
> but i have one question about it. why kdesvn-build ignore configure option
> in building l10n module? because of this behavior, i cant install it
> without root privileges.
>
> # i use kdesvn-build 1.0 on Debian GNU/Linux 3.1
> # Perl 5.8.4.
>
> i looked into kdesvn-build's source and found the follwing statement.
>
> if ($module =~ /^l10n\//)
> {
> whisper "\tg[$module] ignores configure flags...";
> @commands = ();
> }
>
> ----
>
> i didnt know if this is a spec of kdesvn-build and couldnt find if its a
> bug, so i write to you personally. if you could answer, im very grad.
Well I checked, and to be honest, I have no clue why l10n needs to ignore the
configure flags.
In fact, I don't think it has to. What probably happened is that l10n briefly
needed to ignore configure flags as a side effect of one of the
implementations of the l10n feature. When I eventually used a different
implementation I forgot to remove the check for the configure flags.
I'm testing removing that check right now but I think it's pretty safe to
remove. There are two checks in the safe_configure() subroutine, you should
be able to remove both. You can use kdesvn-build --pretend first to see if
that fixes the bug.
The next kdesvn-build will allow you to use configure flags for l10n again.
Regards,
- Michael Pyne
便利そうで良いですね (スコア:1)
今まで、自前のスクリプトを回していたのを一括化
出来そうな気がします。
#使ってみると、結局自分のが良いって言い出すかもしれないけど(w
Re:便利そうで良いですね (スコア:1)
私はそれで良いと思っています。
----
とはいえ、設定ファイルをひとつホームディレクトリに
置いておけばあとはコマンド一発で柔軟なビルドが可能、
というkdesvn-buildの魅力を知るともう、、(ry
# 無精、短気、傲慢、これ最強