Source: libxi Version: 1.8-1 Severity: normal Tags: patch Hello,
libxi currently build-depends on w3m, which makes it part of a long build dependency through imlib and whatnot image libraries. The w3m dependency is actually only for building documentation. The attached patch adds a nodoc build profile. This makes bootstraping a new Debian port much easier. Note that chmod +x debian/libxi-dev.install needs to be done to complete the patch. Also, the patch is not working yet because the package has not been converted to the quilt source format yet, and thus the +x is lost in the .diff.gz format, but I guess there is no reason left for keeping using the native source format? Samuel -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldstable-proposed-updates'), (500, 'oldoldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386, arm64 Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
--- debian/control.original 2023-11-05 02:54:27.000000000 +0000 +++ debian/control 2023-11-05 16:55:42.000000000 +0000 @@ -4,6 +4,7 @@ Maintainer: Debian X Strike Force <debia...@lists.debian.org> Build-Depends: debhelper-compat (= 12), + dh-exec, quilt, x11proto-dev (>= 2021.5), libx11-dev (>= 2:1.4.99.1), @@ -15,10 +16,10 @@ quilt, xutils-dev (>= 1:7.6+2), # specs - xmlto, - xorg-sgml-doctools (>= 1:1.8), - xsltproc, - w3m, + xmlto <!nodoc>, + xorg-sgml-doctools (>= 1:1.8) <!nodoc>, + xsltproc <!nodoc>, + w3m <!nodoc>, Standards-Version: 4.5.0 Vcs-Git: https://salsa.debian.org/xorg-team/lib/libxi.git Vcs-Browser: https://salsa.debian.org/xorg-team/lib/libxi --- debian/rules.original 2023-11-05 02:54:35.000000000 +0000 +++ debian/rules 2023-11-05 16:53:05.000000000 +0000 @@ -10,12 +10,18 @@ # set this to the name of the main shlib's binary package PACKAGE = libxi6 +ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) +DOC = --with-xmlto +else +DOC = --disable-specs +endif + %: dh $@ --with quilt --builddirectory=build/ override_dh_auto_configure: dh_auto_configure -- \ - --with-xmlto \ + $(DOC) \ --without-fop override_dh_install: --- debian/libxi-dev.install.original 2023-11-05 16:54:25.000000000 +0000 +++ debian/libxi-dev.install 2023-11-05 16:57:28.000000000 +0000 @@ -1,7 +1,8 @@ +#! /usr/bin/dh-exec usr/lib/*/libXi.a usr/lib/*/libXi.so usr/lib/*/pkgconfig/xi.pc usr/include/X11/extensions/ -usr/share/doc/libXi/*.html usr/share/doc/libxi-dev -usr/share/doc/libXi/*.txt usr/share/doc/libxi-dev +<!nodoc> usr/share/doc/libXi/*.html usr/share/doc/libxi-dev +<!nodoc> usr/share/doc/libXi/*.txt usr/share/doc/libxi-dev usr/share/man/man3