Package: src:php7.0
Version: 7.0.6-1

Dear maintainer:

As in Bug #823954, the architecture-independent binary packages
generated by this source package do not really need any C source
compiling to be created.

The attached patch works for me, but it may need some tweaking.
I've only tested the "dpkg-buildpackage -A" part, but I'm confident
that either it will work with "dpkg-buildpackage -B" or it will be
very easy to fix.

This time the patch is a lot smaller because debian/rules is using dh.

On my i3 at home, "dpkg-buildpackage -A" takes 38 minutes to finish.
With this patch, only 20 seconds.

Note: The rationale for doing this is that source only uploads (which
are currently optional but will hopefully be the norm some day) are
handled by different autobuilders. There is one autobuilder which only
creates "Arch: all" packages, so this is not just a theoretical time
saving but a real one.


Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -306,12 +306,16 @@ override_dh_auto_clean: unprepared
        # remove shared config.cache
        rm -f $(CURDIR)/config.cache
 
-override_dh_auto_configure: prepared
+override_dh_auto_configure-indep:
+
+override_dh_auto_configure-arch: prepared
        for target in $(TARGETS); do \
          dh_auto_configure --builddirectory $${target}-build $(PARALLEL) -- 
$$(eval echo \$${$${target}_config}); \
        done
 
-override_dh_auto_build:
+override_dh_auto_build-indep:
+
+override_dh_auto_build-arch:
        for target in $(TARGETS); do \
          dh_auto_build --builddirectory $${target}-build $(PARALLEL); \
        done

Reply via email to