[Pkg-giraffe-discuss] [PATCH 3/3] debian/rules: adjust the targets after dh version change
Guido Günther
agx at sigxcpu.org
Sun Dec 18 11:41:15 UTC 2016
Hi Carsten,
comments inline.
On Sun, Dec 18, 2016 at 12:28:17PM +0100, c.schoenert at t-online.de wrote:
> From: Carsten Schoenert <c.schoenert at t-online.de>
>
> ---
> debian/rules | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
>
> diff --git a/debian/rules b/debian/rules
> index 73aeaf3..383909c 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -13,12 +13,13 @@ else
> CFLAGS += -O2
> endif
>
> +PACKAGE_BASE = "libvmime"
> CONFFLAG = "--enable-debug"
>
> -CFLAGS = "-Wall -g -Wl,-z,defs"
> +CFLAGS += -Wall -g -Wl,-z,defs
>
> DEB_CONFIGURE_EXTRA_ARGS := \
> - CFLAGS=$(CFLAGS) \
> + CFLAGS="$(CFLAGS)" \
Separate fix.
> --host=$(DEB_HOST_GNU_TYPE) \
> --build=$(DEB_BUILD_GNU_TYPE) \
> --prefix=/usr \
> @@ -31,16 +32,22 @@ DEB_CONFIGURE_EXTRA_ARGS := \
> dh $@ --parallel
>
> override_dh_auto_clean:
> - [ ! -f Makefile ] || $(MAKE) clean
Why is that removed?
> rm -f Makefile src/Makefile vmime/Makefile vmime/config.hpp build-stamp libtool config.guess config.log config.sub config.status config.h vmime.pc stamp-h1
> cd src ; rm -f `find . -type l`
> dh_auto_clean
>
> +override_dh_autoreconf:
> + touch autotools/config.rpath
> + dh_autoreconf
> +
> override_dh_auto_configure:
> - [ -f ./bootstrap ] && ./bootstrap
> dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_ARGS)
>
> override_dh_install:
> + sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@ \
> + debian/$(PACKAGE_BASE)-dev.install.in > debian/$(PACKAGE_BASE)-dev.install
> + sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@ \
> + debian/$(PACKAGE_BASE)0.install.in > debian/$(PACKAGE_BASE)0.install
Shouldn't this be in the same patch as the move to .in files since it
otherwise makes previous commits unbuildable?
You used dh-exec in other packages, why not here?
Cheers,
-- Guido
> $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
> dh_install
>
> --
> 2.10.2
>
>
> _______________________________________________
> Pkg-giraffe-discuss mailing list
> Pkg-giraffe-discuss at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-giraffe-discuss
>
More information about the Pkg-giraffe-discuss
mailing list