Section: libs
Priority: optional
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
-Uploaders: Simon McVittie <smcv@debian.org>,
+Uploaders: Simon McVittie <smcv@debian.org>, Jeremy Bícha <jbicha@ubuntu.com>, Marco Trevisan (Treviño) <marco@ubuntu.com>
Build-Depends: adwaita-icon-theme <!nocheck>,
at-spi2-core <!nocheck>,
dbus-daemon <!nocheck>,
librsvg2-dev (>= 2.52.0) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
libswresample-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x],
libswscale-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x],
- libsysprof-capture-4-dev (>= 3.40.1) [linux-any],
libtiff-dev,
libvulkan-dev [linux-any],
libwayland-dev (>= 1.21.0) [linux-any],
weston [linux-any] <!nocheck>,
xauth <!nocheck>,
xvfb <!nocheck>,
+Build-Depends-Arch: libsysprof-capture-4-dev (>= 3.40.1) [linux-any],
Build-Depends-Indep: gi-docgen <!nodoc>,
libcairo2-doc <!nodoc>,
libglib2.0-doc <!nodoc>,
librsvg2-dev (>= 2.52.0) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
libswresample-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x],
libswscale-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x],
- libsysprof-capture-4-dev (>= 3.40.1) [linux-any],
libtiff-dev,
libvulkan-dev [linux-any],
libwayland-dev (>= 1.21.0) [linux-any],
weston [linux-any] <!nocheck>,
xauth <!nocheck>,
xvfb <!nocheck>,
+Build-Depends-Arch: libsysprof-capture-4-dev (>= 3.40.1) [linux-any],
Build-Depends-Indep: gi-docgen <!nodoc>,
libcairo2-doc <!nodoc>,
libglib2.0-doc <!nodoc>,
endif
ifeq (linux,$(DEB_HOST_ARCH_OS))
-configure_flags_deb += -Dsysprof=enabled
configure_flags_deb += -Dwayland-backend=true
else
-configure_flags_deb += -Dsysprof=disabled
configure_flags_deb += -Dvulkan=disabled
configure_flags_deb += -Dwayland-backend=false
endif
+# Only enable sysprof if we are actually going to package the shared library.
+# Otherwise, if the Architecture: amd64 buildd happens to build gtk4
+# before the Architecture: all buildd, the Architecture: all buildd
+# will find that there is an unsatisfiable build-dependency:
+# libsysprof-4-dev => libgtk-4-dev => libgtk-4-common (>= ${source:Version}),
+# which has not been built yet.
+ifeq (linux/$(SHARED_PKG),$(DEB_HOST_ARCH_OS)/$(filter $(SHARED_PKG),$(built_binaries)))
+configure_flags_deb += -Dsysprof=enabled
+else
+configure_flags_deb += -Dsysprof=disabled
+endif
+
ifeq ($(filter %-doc,$(built_binaries)),)
configure_flags_deb += -Dgtk_doc=false
else