Source: libxfont
Version: 1:2.0.6-1
Severity: normal
Tags: patch

Hello,

libxfont 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.

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

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
--- debian/control.original     2023-11-05 02:28:23.000000000 +0000
+++ debian/control      2023-11-05 02:28:30.000000000 +0000
@@ -15,7 +15,7 @@
  libbz2-dev,
  xutils-dev (>= 1:7.5+4),
 # devel-docs
- xmlto, xorg-sgml-doctools (>= 1:1.7), w3m,
+ xmlto <!nodoc>, xorg-sgml-doctools (>= 1:1.7) <!nodoc>, w3m <!nodoc>,
 Standards-Version: 4.5.0
 Vcs-Git: https://salsa.debian.org/xorg-team/lib/libxfont
 Vcs-Browser: https://salsa.debian.org/xorg-team/lib/libxfont
--- debian/rules.original       2023-11-05 02:31:39.000000000 +0000
+++ debian/rules        2023-11-05 02:33:48.000000000 +0000
@@ -11,12 +11,17 @@
 # Strip -Bsymbolic-functions (set by default on Ubuntu) to avoid breakages:
 LDFLAGS := $(LDFLAGS:-Wl,-Bsymbolic-functions=)
 
+ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
+DOC = --enable-devel-docs --with-xmlto
+else
+DOC = --disable-devel-docs --without-xmlto
+endif
+
 CONFFLAGS += \
        --disable-fc \
        --enable-builtins \
        --enable-pcfformat \
        --enable-bdfformat \
-       --enable-devel-docs \
        --without-fop \
        --disable-silent-rules \
        CFLAGS="$(CFLAGS)" \
@@ -30,8 +35,8 @@
        rm -rf build-udeb/ debian/tmp-udeb/
 
 override_dh_auto_configure:
-       dh_auto_configure $(OOT)-main/ -- --with-bzip2    --with-xmlto    
$(CONFFLAGS)
-       dh_auto_configure $(OOT)-udeb/ -- --without-bzip2 --without-xmlto 
$(CONFFLAGS)
+       dh_auto_configure $(OOT)-main/ -- --with-bzip2    $(CONFFLAGS) $(DOC)
+       dh_auto_configure $(OOT)-udeb/ -- --without-bzip2 $(CONFFLAGS)
 
 override_dh_auto_build:
        $(MAKE) -C build-main/

Reply via email to