Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 1308  / 2 Years ago, tue, march 1, 2022, 12:52:01

I am using pbuilder-dist to build my packages for Debian unstable and Ubuntu Precise. I want to know how to run lintian (and possibly other commands) inside a certain chroot.



I have Ubuntu 12.04 on my machine.


More From » packaging

 Answers
6

Lintian can be run inside cowbuilder or pbuilder using hooks.
Several examples are available in /usr/share/doc/pbuilder/examples/



Just copy the hook you want to a directory:



mkdir ~/pbuilderhooks
cp /usr/share/doc/pbuilder/examples/B90lintian $HOME/pbuilderhooks


Then tell pbuilder to use the hooks in that directory:



echo "HOOKDIR=$HOME/pbuilderhooks/" >> ~/.pbuilderrc


And/or:



echo "HOOKDIR=$HOME/pbuilderhooks/" | sudo tee -a /etc/pbuilderrc


The first is required if you intend to run cowbuilder-dist or pbuilder-dist without sudo; the latter if you intend to run sudo cowbuilder or sudo pbuilder. Use tee -a to avoid overwriting the original /etc/pbuilderrc file.


[#38201] Tuesday, March 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nguai

Total Points: 216
Total Questions: 108
Total Answers: 116

Location: Hong Kong
Member since Thu, Dec 16, 2021
2 Years ago
;