I encountered an issue when building debian package.
As for the document of the rules file: https://www.debian.org/doc/manuals/maint-guide/dreq.en.html#rules
debian/rules build runs dh build; which in turn runs the following:
dh_testdir dh_auto_configure dh_auto_build dh_auto_test
fakeroot debian/rules binary runs fakeroot dh binary; which in turn runs the following:
dh_testroot dh_prep dh_installdirs dh_auto_install dh_install dh_installdocs ... dh_builddeb
But when I run dh binary --no-act
command, the output includes dh build --no-act
. This means the ./configure
and make
commands are run two times during build the debian package. It's weird.
I used dpkg-buildpackage -us -uc
to build debian package.
UPDATE: I saw it actually did not run twice, but why --no-act shows the dh build
output runs twice?