[website] 01/03: Add 'Configure lintian pbuilder hook' section.

Bas Couwenberg sebastic at xs4all.nl
Sat Feb 15 22:01:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository website.

commit 4b95407993f6621cab400565d0cb0468a5acd177
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Feb 15 22:14:51 2014 +0100

    Add 'Configure lintian pbuilder hook' section.
---
 policy.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/policy.xml b/policy.xml
index d155b67..44c1ba5 100644
--- a/policy.xml
+++ b/policy.xml
@@ -759,6 +759,35 @@ Cmnd_Alias PBUILDERS=/usr/sbin/pbuilder, /usr/sbin/cowbuilder
 <command>sudo cowbuilder</command> <option>--create</option> <option>--distribution=<replaceable><distribution></replaceable></option> <option>--architecture=<replaceable><architecture></replaceable></option> <option>--basepath=/var/cache/pbuilder/base-<replaceable><distribution></replaceable>-<replaceable><architecture></replaceable>.cow</option>
 </programlisting>
           </para>
+          <sect5 id="git-pbuilder-hooks">
+            <title>Configure lintian pbuilder hook</title>
+
+            <para>
+              It's highly recommended to run <command>lintian</command>
+              afer every build.
+              <command>pbuilder</command> provides an example
+              <literal>lintian</literal> hook in
+              <filename>/usr/share/doc/pbuilder/examples/B90lintian</filename>
+              for this.
+            </para>
+            <para>
+              Copy this file to your <command>pbuilder</command> hooks
+              directory, and modify it to report all <command>lintian</command>
+              tags and not fail the build if lintian reports issues.
+<programlisting>
+<command>mkdir</command> <filename class="directory">~/pbuilder-hooks</filename>
+<command>cp</command> <filename>/usr/share/doc/pbuilder/examples/B90lintian</filename> <filename class="directory">~/pbuilder-hooks/</filename>
+<command>sed</command> <option>-i</option> <literal>'s/lintian -I --show-overrides/& --pedantic -E/; s/^su /##&/; s/^#su /su /'</literal> <filename>~/pbuilder-hooks/B90lintian</filename>
+</programlisting>
+            </para>
+            <para>
+              Specify the <command>pbuilder</command> hook directory when
+              creating the chroot to run the hook scripts contained therein.
+<programlisting>
+<command>sudo cowbuilder</command> <option>--create</option> <option>--distribution=<replaceable><distribution></replaceable></option> <option>--basepath=/var/cache/pbuilder/base-<replaceable><distribution></replaceable>.cow</option> <option>--hookdir=~/pbuilder-hooks/</option>
+</programlisting>
+            </para>
+          </sect5>
         </sect4>
         <sect4 id="git-new-package">
           <title>Starting a new package</title>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/website.git



More information about the Pkg-grass-devel mailing list