[patch] debian/rules control: do not depend on unpacking or patching the sources
I've found that it is quite possible to regenerate debian/control
without unpacking, let alone patching, the upstream sources. The file
debian/rules.conf does not seem to refer to any file outside of the
debian/ subdirectory. This seems true even in the case of the SPU
target. Am I missing something? The patch below is for the gcc-4.6
branch; I'll wait for approval before I commit. I think the same
applies to the gcc-4.4 and gcc-4.5 branches too.
--
Ludovic Brenta.
--- debian/rules
+++ debian/rules
@@ -20,7 +20,7 @@ include debian/rules.patch
include debian/rules.unpack
include debian/rules.patch
-control: $(control_dependencies)
+control:
-mkdir -p $(stampdir)
$(MAKE) -f debian/rules.conf $@
============================================================
--- debian/rules.defs
+++ debian/rules.defs
@@ -1229,8 +1229,6 @@ install_spu_stamp := $(stampdir)/07-inst
build_spu_stamp := $(stampdir)/05-build-spu-stamp
install_spu_stamp := $(stampdir)/07-install-spu-stamp
-control_dependencies := $(patch_stamp)
-
ifeq ($(PKGSOURCE),gcc-snapshot)
configure_dependencies = $(configure_stamp)
build_dependencies = $(build_stamp)
@@ -1281,7 +1279,6 @@ ifeq ($(with_spu),yes)
endif
ifeq ($(with_spu),yes)
- control_dependencies += $(src_spu_stamp)
build_dependencies += $(build_spu_stamp)
ifneq ($(PKGSOURCE),gcc-snapshot)
install_dependencies += $(install_spu_stamp)
Reply to: