いまいです。 DeveloperNews #6 の 3 番目の記事を訳しました。チェックをお願いします。 > dpkg-buildpackage sets default value to CFLAGS, etc. > ---------------------------------------------------- > > Since dpkg 1.14.17, dpkg-buildpackage will define the environment > variables CFLAGS, CXXFLAGS, CPPFLAGS, LDFLAGS and FFLAGS. The goal is to > be able to easily recompile packages with supplementary compilation flags > and to simplify the debian/rules files since CFLAGS has the right default > value (no need to special case for DEB_BUILD_OPTIONS=noopt). > > But this change has many consequences which can lead to problems (several > dozens FTBFS have been filed due to this change). The most important > change is related to make's behavior: since the variables exist in the > environment when make is called, they are automatically exported to the > various commands called in the makefile (possibly modified by the > variable assignation in debian/rules). Some broken build systems do not > cope with the presence of those variables. > > Please note that debuild currently doesn't call dpkg-buildpackage and > thus can't be used to reproduce the various FTBFS filed (see #476100). > > -- Raphaël Hertzog dpkg-buildpackage が CFLAGS などのデフォルト値をセットするようになりました。 ---------------------------------------------------------------------------- dpkg 1.14.17 から、dpkg-buildpackage が環境変数 CFLAGS、CXXFLAGS、 CPPFLAGS、LDFLAGS そして FFLAGS を定義するようになります。コンパイルフ ラグを追加したパッケージの再コンパイルを簡単にしたり、CFLAGS が正しい デフォルト値を持つことにより debian/rules ファイルを簡素化するのが目的 です (DEB_BUILD_OPTIONS=noopt のような特別な措置が不要になります)。 しかし、この変更は多くの問題を引き起こす結果となりました (この変更によ る、数十もの FTBFS が報告されています)。最も重要な変更は make の挙動に かんするものです。make が呼ばれたときに環境変数が存在しているので、そ れらが makefile から呼び出される各種のコマンドに自動的に伝播してしまい ます (あるいは、debian/rules ファイル内で割り当てられる変数に変更され るかもしれません)。これらの変数の存在に対応できない壊れたビルドシステ ムもいくつかあります。 今のところ、debuild は dpkg-buildpackage を呼び出さないので、報告され た各種の FTBFS の再現には使えないことに留意してください (#476100 を参 照してください)。 -- Raphaël Hertzog -- Nobuhiro IMAI <nov@xxxxxxxxxxxx> Key fingerprint = F39E D552 545D 7C64 D690 F644 5A15 746C BD8E 7106
Attachment:
pgpDJjzFD5J4Y.pgp
Description: PGP signature