添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
傻傻的柚子  ·  已解决: ...·  3 周前    · 
无邪的夕阳  ·  Black Duck Community·  1 月前    · 
单身的麦片  ·  选择付费版本 | FigmaChina·  1 月前    · 
Hi all,

Is there any way to allow switchable use of 'ccache' within
dpkg-buildpackage? I am thinking of something like the "-j2" flag that
can be used to switch on and off parallel builds. What about use of
"distcc" during package building? How can I command dpkg to use these
things optionally, only when I want them used?

My reasons for asking are (1) to allow faster debugging of package
builds (even if there might be better ways of doing that and (2) to
allow distributed compilation, at sub-package level.

FWIW I believe this was possible with RPM packages using a file called,
I think, "~/.rpmmacros", which could define local user-defined flags
that the package builder could detect at build-time.

Cheers
JP
--
John Pye
http://jpye.dyndns.org/
--
To UNSUBSCRIBE, email to debian-mentors-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@curioussymbols.com
dpkg-buildpackage and debian/rules should stay away from enabling or
disabling ccache/distcc. It is your responsibility, not that of the
packaging to enable the use of ccache/distcc.

I personally enable ccache permanently like so:

$ grep ccache ~/.*
/home/pabs/.bashrc:export PATH="/usr/lib/ccache:$PATH"

I don't have enough computers to run distcc.
--
bye,
pabs

http://wiki.debian.org/PaulWise
--
To UNSUBSCRIBE, email to debian-mentors-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/AANLkTi=vK-0kSBmmOrDb25T33-BZnox18_hut+J3p=***@mail.gmail.com