9

I am running debian stretch and following this guide for building package from source for debian.

Sometimes building process takes hours , when I run dpkg-buildpackage -rfakeroot again , it starts building from scratch.

dpkg-buildpackage --help does not show any option to resume.

How can I resume package building ?

GAD3R
  • 63,407
  • 31
  • 131
  • 192
jonny789
  • 489
  • 4
  • 19

2 Answers2

10

To continue a build that was interrupted for some reason, you can call the appropriate targets of debian/rules directly:

debian/rules build

will compile the sources, then

fakeroot debian/rules binary

will run the installation and prepare the packages.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
5

I have been using the -nc switch for this. According to the man page:

-nc, --no-pre-clean
    Do not clean the source tree before building (long option since
    dpkg 1.18.8). Implies -b if nothing else has been selected among
    -F, -g, -G, -B, -A or -S. Implies -d with -S (since dpkg 1.18.0).
user414912
  • 51
  • 1
  • 1