Bug#891873: libidn2: help bootstrapping by reducing Build-Depends

2018-06-25 Thread Andreas Beckmann
On Thu, 1 Mar 2018 22:34:45 +0100 Helmut Grohne  wrote:
> I'd like to ask you for another favour. Can we remove the whole gtkdoc
> stack from Build-Depends? e.g. dblatex is presently unsatisfiable for
> cross and it won't be any easier for native bootstraps.
> 
> The good thing is that we can do entirely without build profiles. Just
> move the whole caboodle to Build-Depends-Indep! Of course we must be
> careful then. We must configure without --enable-gtk-doc and notably, we
> must not run gtkdocize. The attached patch does all of that and thus
> speeds up arch-only builds. Please consider applying it.

Hi Helmut,

nobody answered so far :-(
I just tracked down a long chain of uninstallable B-D on kfreebsd-* to
this bug ... ending with a bootstrap failure for libidn2 due to a
dependency cycle between gnupg2 and libidn2 (gnupg2 needs libidn2-dev,
libidn2-doc needs (transitively) gnupg).
Maybe you just want to NMU it. Your patch looks sensible, but I haven't
tried it.


Andreas



Bug#891873: libidn2: help bootstrapping by reducing Build-Depends

2018-03-16 Thread Manuel A. Fernandez Montecelo

user debian-ri...@lists.debian.org
usertag 891873 + riscv64
stop


Hi,

2018-03-01 22:34 Helmut Grohne:

Source: libidn2
Version: 2.0.4-1.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi libidn2 maintainers,

I'd like to ask you for another favour. Can we remove the whole gtkdoc
stack from Build-Depends? e.g. dblatex is presently unsatisfiable for
cross and it won't be any easier for native bootstraps.

The good thing is that we can do entirely without build profiles. Just
move the whole caboodle to Build-Depends-Indep! Of course we must be
careful then. We must configure without --enable-gtk-doc and notably, we
must not run gtkdocize. The attached patch does all of that and thus
speeds up arch-only builds. Please consider applying it.


I built with this patch applied and it passes the test suite correctly.

It would be nice to be able to build this package without texlive or
dblatex, which are heavyweights for architectures which are
bootstrapping.

It's a great patch in its own right IMO (thanks Helmut!), since moving
to -Indep has multiple benefits, for example having to download and
install less packages in the buildds.


Cheers.
--
Manuel A. Fernandez Montecelo 



Bug#891873: libidn2: help bootstrapping by reducing Build-Depends

2018-03-01 Thread Helmut Grohne
Source: libidn2
Version: 2.0.4-1.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi libidn2 maintainers,

I'd like to ask you for another favour. Can we remove the whole gtkdoc
stack from Build-Depends? e.g. dblatex is presently unsatisfiable for
cross and it won't be any easier for native bootstraps.

The good thing is that we can do entirely without build profiles. Just
move the whole caboodle to Build-Depends-Indep! Of course we must be
careful then. We must configure without --enable-gtk-doc and notably, we
must not run gtkdocize. The attached patch does all of that and thus
speeds up arch-only builds. Please consider applying it.

Helmut
diff --minimal -Nru libidn2-2.0.4/debian/changelog 
libidn2-2.0.4/debian/changelog
--- libidn2-2.0.4/debian/changelog  2017-11-23 12:11:41.0 +0100
+++ libidn2-2.0.4/debian/changelog  2018-03-01 22:12:01.0 +0100
@@ -1,3 +1,10 @@
+libidn2 (2.0.4-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move some Build-Depends to Build-Depends-Indep. (Closes: #-1)
+
+ -- Helmut Grohne   Thu, 01 Mar 2018 22:12:01 +0100
+
 libidn2 (2.0.4-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru libidn2-2.0.4/debian/control libidn2-2.0.4/debian/control
--- libidn2-2.0.4/debian/control2017-11-23 12:11:41.0 +0100
+++ libidn2-2.0.4/debian/control2018-03-01 22:08:40.0 +0100
@@ -10,6 +10,7 @@
libunistring-dev,
pkg-config,
ruby-ronn,
+Build-Depends-Indep:
texinfo,
texlive,
gtk-doc-tools,
diff --minimal -Nru libidn2-2.0.4/debian/rules libidn2-2.0.4/debian/rules
--- libidn2-2.0.4/debian/rules  2017-11-23 12:11:41.0 +0100
+++ libidn2-2.0.4/debian/rules  2018-03-01 22:11:58.0 +0100
@@ -1,21 +1,31 @@
 #! /usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DOPACKAGES = $(shell dh_listpackages)
 
 %:
dh $@ --parallel --with autoreconf --fail-missing 
-O--dbgsym-migration="libidn2-0-dbg (<< 2.0.2-1~)" -X.la
 
+ifneq ($(filter libidn2-doc,$(DOPACKAGES)),)
+# run gtkdocize in addition to autoreconf
 override_dh_autoreconf:
dh_autoreconf debian/autogen.sh
+endif
+
+CONFIGURE_FLAGS = \
+   --enable-ld-version-script \
+   --disable-rpath \
+   --with-packager=Debian \
+   --with-packager-bug-reports=https://bugs.debian.org/ \
+   --with-packager-version="$(DEB_VERSION)"
+ifneq ($(filter libidn2-doc,$(DOPACKAGES)),)
+CONFIGURE_FLAGS += --enable-gtk-doc --enable-gtk-doc-pdf
+else
+CONFIGURE_FLAGS += --disable-gtk-doc --disable-gtk-doc-pdf
+endif
 
 override_dh_auto_configure:
-   dh_auto_configure -- \
-   --enable-ld-version-script \
-   --disable-rpath \
-   --enable-gtk-doc --enable-gtk-doc-pdf \
-   --with-packager=Debian \
-   --with-packager-bug-reports=https://bugs.debian.org/ \
-   --with-packager-version="$(DEB_VERSION)"
+   dh_auto_configure -- $(CONFIGURE_FLAGS)
 
 # Texinfo PDF manual is not built by 'make' but removed by 'make clean'.
 override_dh_auto_build: