1

I am trying to build gcc-6 source package on Raspbian stretch; so I do:

apt source gcc-6
cd gcc-6-6.3.0/debian
debuild -b -uc -us

The debuild command starts the full build. Since the build crashes on my platform, what I'd like to run a command, that will unpack the sources and apply the Debian patches, but then stop before configuring (so I can apply my own patches) - and then I could continue afterwards with debuild -b -uc -us -nc.

Is there a command that would help me do that?

1 Answer 1

1

GCC’s packaging in Debian is somewhat unusual, and adds a number of targets that aren’t directly supported by general-purpose build tools. So you won’t find a debuild variant or anything like that to apply the patches.

Instead, invoke the patch target directly:

debian/rules patch

Once you’re ready to continue the build, do so by running

debian/rules build

followed by

fakeroot debian/rules binary

to actually build the packages.

Ultimately you’ll probably be better off adding your patches to those applied automatically during the build; to do so, add your patches to in debian/patches, and add their names to the appropriate variable in debian/rules.patch (debian_patches would be a good start).

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.