{"id":55,"date":"2005-11-30T19:06:36","date_gmt":"2005-11-30T18:06:36","guid":{"rendered":"http:\/\/web.glandium.org\/blog\/?p=55"},"modified":"2010-01-27T08:52:44","modified_gmt":"2010-01-27T07:52:44","slug":"pbuilder-and-ccache","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=55","title":{"rendered":"pbuilder and ccache"},"content":{"rendered":"<p><a href=\"http:\/\/people.warp.es\/~isaac\/blog\/index.php\/ccache-pbuilder-33\/\">Isaac<\/a>, there is actually a cleaner way to do the same as your hook. Just add the following to your <code>.pbuilderrc<\/code> file :<\/p>\n<blockquote><p><code>export CCACHE_DIR=\"\/var\/cache\/pbuilder\/ccache\"<br \/>\nexport PATH=\"\/usr\/lib\/ccache:${PATH}\"<\/code><\/p>\n<p><code>EXTRAPACKAGES=ccache<br \/>\nBINDMOUNTS=\"${CCACHE_DIR}\"<\/code>\n<\/p><\/blockquote>\n<p>That will need <a href=\"http:\/\/bugs.debian.org\/341453\">bug #341453<\/a> to be fixed first, though, but if you set both <code>BUILDUSERID<\/code> and <code>BUILDUSERNAME<\/code> it will work out of the box (with the default configuration, <code>PATH<\/code> is not preserved because of the bug).<\/p>\n<p>Note that you can also set <code>HOOKDIR<\/code> instead of using the <code>--hookdir<\/code> command line argument, thus not needing your wrapper.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Isaac, there is actually a cleaner way to do the same as your hook. Just add the following to your .pbuilderrc file : export CCACHE_DIR=&#8221;\/var\/cache\/pbuilder\/ccache&#8221; export PATH=&#8221;\/usr\/lib\/ccache:${PATH}&#8221; EXTRAPACKAGES=ccache BINDMOUNTS=&#8221;${CCACHE_DIR}&#8221; That will need bug #341453 to be fixed first, though, but if you set both BUILDUSERID and BUILDUSERNAME it will work out of the box (with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[23],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-debian","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=55"}],"version-history":[{"count":1,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":796,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/55\/revisions\/796"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}