Alex Myczko:
Hello Maria On 8/16/2025 9:38 AM, maria.shrivinski wrote:When compiling the kernel with make -j `getconf _NPROCESSORS_ONLN` deb- pkg the resulting .deb packages are generated in the parent directory.Is there a way to choose a specific directory where those packages will be placed?I have researched this issue and found partial answers about modifying scripts/package/debian/rules or various makefiles, but nothing has worked so far.Using environment variables like DESTDIR=/path/to/dir or OUTPUT_DIRECTORY=/path/to/dir with the make command also did not work.Starting to think that this might be impossible. Anyone have an idea?Take a look at package/debian/rules, there's a call of dh_builddeb which accepts --destdirThanks for your time!Best, Alex
As the debhelper maintainer: Honestly, I think we should come up with a better solution than `dh_builddeb --destdir` if this is something we want to support in general.
First and foremost, a builder cannot choose the build artifact dir without patching `d/rules`. Secondly, it only affects dh_builddeb "built" artifacts (and not other artifacts like .changes). Thirdly, it clashes with the `--dest-dir` option of `dh_auto_install` which has an entirely different meaning, so "cleaver tricks" like passing `--destdir` to `dh` will cause "hilarious" outcomes.
But I am aware that some tools rely on this option at some point, so it remains for now.
Anyhow, if you want this feature, please consider reaching out to debian-dpkg with me CC and ask if we can get a generalized version of this feature.
Best regards, Niels