Le lun. 8 déc. 2025 à 11:50, Giovanni Mascellani <
gio@debian.org> a écrit :
Hi,
I am packaging vulkan-caps-viewer[1], a GUI utility that allows querying
the features offered by Vulkan drivers. Like vulkaninfo, but with a GUI
and the ability to submit data to a crowdsourced online database.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947407
The program can be compiled to use Wayland or X11. It's a build time
choice, unfortunately, it can't dynamically switch at runtime depending
on what's available. But I'd like to have support for both in the Debian
package, because X11 is still pretty common. My plan is to have two
different binary packages, likely called vulkan-caps-viewer-wayland and
vulkan-caps-viewer-x11.
For context, the program uses Qt for the GUI, so in that sense it's
independent of the underlying graphics system. But to query the Vulkan
capabilities related to WSI (Window System Integration, i.e. surfaces,
swapchains and presentation) it has to be aware of which graphics system
is in use.
To do all of that I'd need to configure, compile and install the source
code twice when building the package, with different configuration
options. Is there a reasonably simple way to do that, possibly with
debhelper? Are there other packages doing this I can take as an example?
Hi, you should contact debian-mentors mailing list for that kind of question.
That being said,
searching for
let me find this example:
which is not perfect for your need, but very close to what you need to do in debian/rules
Thanks, Gio.