Name qt6-base
Description
Version 6.8.2+dfsg-9+deb13u1
Package Base
Homepage
Maintainers ['Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>']
Contributors ['Patrick Franz <deltaone@debian.org>,']
Distro-repo https://salsa.debian.org/qt-kde-team/qt6/qt6-base
Sources ['https://sources.debian.org/data/main/q/qt6-base/6.8.2+dfsg-9+deb13u1/debian/watch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/Add-SH-detection.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/armv4.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/build_path_embedded_qtbuildinternalsextra_cmake.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/cross.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/enable_skip_plugins.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/forkfd_grow_stack_upwards_on_hppa.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/remove_privacy_breaches.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/remove_rpath_from_examples.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/series', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_IPC-add-PATH_MAX-less-fallback-definition-for-MAX_PA.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_QColorTransferGeneric_fix_BT2100PQEOTF.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_QStorageInfo-Unix-fix-declaration-of-mnt-on-Hurd.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_cups_for_multiple_page_ranges.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_cve-2025-3512_fix_heap_buffer_overflow.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_cve-2025-5455_fix_data_assertion_error.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_cve-2025-5992_input_range_qcolortransformation.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_fix_high_cpu_load_kwin_x11.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_prevent_recursion_in_qsortfilterproxymodel.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_prevent_unregistering_input_device.diff', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_qlibraryinfo_speedup.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_qlocale_shutdown.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_qsystemlocale_post_destruction_access.patch', 'https://sources.debian.org/src/qt6-base/6.8.2+dfsg-9+deb13u1/debian/patches/upstream_unset_current_openglcontext.diff']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['cmake', 'debhelper-compat', 'default-libmysqlclient-dev', 'dh-exec', 'dpkg-dev', 'firebird-dev [linux-any]', 'libatspi2.0-dev', 'libb2-dev', 'libcups2-dev', 'libdbus-1-dev', 'libdouble-conversion-dev', 'libdrm-dev [linux-any]', 'libfontconfig-dev', 'libfreetype-dev', 'libgbm-dev [linux-any]', 'libgl-dev', 'libgles-dev', 'libglib2.0-dev', 'libglu1-mesa-dev | libglu-dev', 'libgtk-3-dev', 'libharfbuzz-dev', 'libicu-dev', 'libinput-dev [linux-any]', 'libjpeg-dev', 'libkrb5-dev', 'liblttng-ust-dev [linux-any]', 'libmd4c-dev', 'libmd4c-html0-dev', 'libmtdev-dev [linux-any]', 'libpcre2-dev', 'libpng-dev', 'libpq-dev', 'libproxy-dev', 'libsctp-dev [linux-any]', 'libsqlite3-dev', 'libssl-dev', 'libsystemd-dev [linux-any]', 'libts-dev', 'libudev-dev [linux-any]', 'libvulkan-dev', 'libwayland-dev [linux-any]', 'libx11-dev', 'libx11-xcb-dev', 'libxcb-composite0-dev', 'libxcb-cursor-dev', 'libxcb-damage0-dev', 'libxcb-dpms0-dev', 'libxcb-dri2-0-dev', 'libxcb-dri3-dev', 'libxcb-ewmh-dev', 'libxcb-glx0-dev', 'libxcb-icccm4-dev', 'libxcb-image0-dev', 'libxcb-keysyms1-dev', 'libxcb-present-dev', 'libxcb-randr0-dev', 'libxcb-record0-dev', 'libxcb-render-util0-dev', 'libxcb-render0-dev', 'libxcb-res0-dev', 'libxcb-screensaver0-dev', 'libxcb-shape0-dev', 'libxcb-shm0-dev', 'libxcb-sync-dev', 'libxcb-util-dev', 'libxcb-xf86dri0-dev', 'libxcb-xfixes0-dev', 'libxcb-xinerama0-dev', 'libxcb-xinput-dev', 'libxcb-xkb-dev', 'libxcb-xtest0-dev', 'libxcb-xv0-dev', 'libxcb-xvmc0-dev', 'libxcb1-dev', 'libxext-dev', 'libxfixes-dev', 'libxi-dev', 'libxkbcommon-dev', 'libxkbcommon-x11-dev', 'libxrender-dev', 'libzstd-dev', 'ninja-build', 'pkg-kde-tools', 'pkgconf', 'qt6-base-dev', 'unixodbc-dev', 'zlib1g-dev']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash
#!/usr/bin/make -f
#export DH_VERBOSE = 1

# Use already defined DEB_HOST_* variables.
include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
sslpkgname := $(shell dpkg-query --show '--showformat=$${Depends}' libssl-dev | cut -d ' ' -f1)

ifneq (,$(filter libqt6sql6-ibase,$(shell dh_listpackages)))
        extra_cmake_args += -DFEATURE_sql_ibase=ON
else
        extra_cmake_args += -DFEATURE_sql_ibase=OFF
endif

ifeq ($(DEB_HOST_ARCH_OS),linux)
        extra_cmake_args += -DFEATURE_sctp=ON
else
        extra_cmake_args += -DFEATURE_sctp=OFF
endif

# cross-builds
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	extra_cmake_args += \
		-DQT_HOST_PATH=/usr \
		-DQT_HOST_PATH_CMAKE_DIR=/usr/lib/${DEB_BUILD_MULTIARCH}/cmake \
		-DQT_FORCE_BUILD_TOOLS=ON
endif

%:
	dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja


override_dh_auto_configure:
	dh_auto_configure -- \
		--log-level=STATUS \
		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DINSTALL_BINDIR=lib/qt6/bin \
		-DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
		-DINSTALL_LIBEXECDIR=lib/qt6/libexec \
		-DINSTALL_ARCHDATADIR=lib/$(DEB_HOST_MULTIARCH)/qt6 \
		-DINSTALL_EXAMPLESDIR=lib/$(DEB_HOST_MULTIARCH)/qt6/examples \
		-DINSTALL_DATADIR=share/qt6 \
		-DINSTALL_DOCDIR=share/qt6/doc \
		-DINSTALL_SYSCONFDIR=/etc/xdg \
		-DINSTALL_INCLUDEDIR=include/$(DEB_HOST_MULTIARCH)/qt6 \
		-DINSTALL_TRANSLATIONSDIR=share/qt6/translations \
		-DINSTALL_MKSPECSDIR=lib/$(DEB_HOST_MULTIARCH)/qt6/mkspecs \
		-DINSTALL_PUBLICBINDIR=bin \
		-DQT_BUILD_EXAMPLES=ON \
		-DQT_INSTALL_EXAMPLES_SOURCES=ON \
		-DFEATURE_accessibility=ON \
		-DFEATURE_cups=ON \
		-DFEATURE_dbus_linked=ON \
		-DFEATURE_directfb=OFF \
		-DFEATURE_doubleconversion=ON \
		-DFEATURE_fontconfig=ON \
		-DFEATURE_freetype=ON \
		-DFEATURE_glib=ON \
		-DFEATURE_gtk3=ON \
		-DFEATURE_harfbuzz=ON \
		-DFEATURE_icu=ON \
		-DFEATURE_jpeg=ON \
		-DFEATURE_libproxy=ON \
		-DFEATURE_mimetype_database=OFF \
		-DFEATURE_pcre2=ON \
		-DFEATURE_png=ON \
		-DFEATURE_reduce_relocations=OFF \
		-DFEATURE_relocatable=OFF \
		-DFEATURE_rpath=OFF \
		-DFEATURE_sql_mysql=ON \
		-DFEATURE_sql_odbc=ON \
		-DFEATURE_sql_psql=ON \
		-DFEATURE_sql_sqlite=ON \
		-DFEATURE_ssl=ON \
		-DFEATURE_system_jpeg=ON \
		-DFEATURE_system_libb2=ON \
		-DFEATURE_system_pcre2=ON \
		-DFEATURE_system_png=ON \
		-DFEATURE_system_proxies=ON \
		-DFEATURE_system_sqlite=ON \
		-DFEATURE_system_xcb_xinput=ON \
		-DFEATURE_system_zlib=ON \
		$(extra_cmake_args)


execute_after_dh_auto_install-arch:
	# Reproducible builds: remove build paths from .prl files
	sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt6*.prl

	# Specifies parameters to pass to the platform plugin.
	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/qt6
	sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/' debian/qt.conf.in \
		> debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/qt6/qt6.conf

	# Inject cross-wrapper for qmake6 and qtpaths
	mkdir -p debian/tmp/usr/bin
	sed -e 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' \
		-e 's/@DEB_HOST_GNU_TYPE@/$(DEB_HOST_GNU_TYPE)/g' \
		< debian/qmake-cross-wrapper.in > debian/tmp/usr/bin/$(DEB_HOST_GNU_TYPE)-qmake6
	sed -e 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' \
		< debian/qtpaths-cross-wrapper.in > debian/tmp/usr/bin/$(DEB_HOST_GNU_TYPE)-qtpaths6
	chmod +x debian/tmp/usr/bin/$(DEB_HOST_GNU_TYPE)-qmake6 debian/tmp/usr/bin/$(DEB_HOST_GNU_TYPE)-qtpaths6

	# Fix Qt6::qmake IMPORTED_LOCATION, see https://bugs.debian.org/1030980
	sed -i 's,lib/qt6/bin/qmake,bin/$(DEB_HOST_GNU_TYPE)-qmake6,' \
		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Qt6CoreTools/Qt6CoreToolsTargets-none.cmake

	# Fix Qt6::qtpaths IMPORTED_LOCATION
	sed -i 's,lib/qt6/bin/qtpaths,bin/$(DEB_HOST_GNU_TYPE)-qtpaths6,' \
		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Qt6CoreTools/Qt6CoreToolsTargets-none.cmake

override_dh_auto_build-indep:
	dh_auto_build -- docs

override_dh_auto_install-indep:
	DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install_docs
	# Remove build path from index files.
	find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
		sed -i 's@$(CURDIR)/@@g' {} \;

override_dh_makeshlibs:
	dh_makeshlibs -XlibQt6EglFSDeviceIntegration -XlibQt6EglFsKmsGbmSupport -XlibQt6EglFsKmsSupport -XlibQt6XcbQpa

execute_after_dh_shlibdeps-arch:
	echo libssl:Depends=$(sslpkgname) >> debian/libqt6network6.substvars

# Do not run tests when building the documentation
override_dh_auto_test-indep: