On Thu, 17 Sep 2026 at 08:29:11 +1200, Olly Betts wrote:
There may be a gotcha here if any of the arch=all package contents vary
when building without webview.  I'm particularly thinking that
wx3.2-headers and wx3.2-doc might.

For the headers, perhaps the webview-related header files could move to libwxgtk-webview3.2-dev, with an appropriate versioned Breaks/Replaces? That would match the more common practice of having headers in the -dev package (which I assume wxwidgets has only not done for size reasons).

For the documentation, I think it would be fine if the -doc package was effectively only buildable on little-endian architectures:

----8<----
Build-Depends:
 ...,
 libwebkit2gtk-4.1-dev [!s390x !hppa !m68k !powerpc !ppc64 !sparc64],
 ...
Build-Depends-Indep:
 ...,
 libwebkit2gtk-4.1-dev <!nodoc>,
 ...
----8<----

and in debian/rules something like this, so the web view is enabled if we are building documentation and/or the architecture is little-endian:

----8<----
built_binaries := $(shell dh_listpackages)
configure_options :=

ifneq ($(filter %-doc,$(built_binaries))$(filter 
little,$(DEB_HOST_ARCH_ENDIAN)),)
configure_options += --enable-webview --enable-webviewwebkit
else
configure_options += --disable-webview --disable-webviewwebkit
endif

override_dh_auto_configure:
        dh_auto_configure -- ... $(configure_options)
----8<----

Or if you would prefer the webview-related header files to stay in -headers, they could probably even use the same technique, with

    $(filter %-doc %-headers,$(built_binaries))

and removing the <!nodoc> annotation.

    smcv

Reply via email to