The case is this: There exists a package on the official Debian repositories. This package won't build on my system because it requires configure flags that it was not packaged with.
To solve my issue, I need the same process as running
sudo apt-get install, the only difference being that some extra set of flags are added in the
sudo apt-get build-depto install dependencies.
apt-get sourceto download source code
- Edit the
export DEB_CONFIGURE_EXTRA_FLAGS = --some-flag --some-other-flag=optionimmediately below the shebang line(the first line in the document)
debuild -b -uc -usto build the package
- Check the output to make sure that configure has the correct flags (the package is installed but not built at this point)
When I check the output in step 5, I don't see the flags that I want so I think I did something wrong.
Possible errors: maybe I am making a syntax mistake that I am not aware of or I am misunderstanding how the build process works.
(In my specific case I am trying to the spl-dkms and I am trying to point it to the right kernel headers, so if anyone knows an easier way I would appreciate it)