From e4d35f8e05fb1d9cecdeebc01fe552aa03e77433 Mon Sep 17 00:00:00 2001 From: Thorsten Alteholz Date: Sat, 9 Feb 2013 14:35:39 -0800 Subject: [PATCH] Add dummy targets for module-assistant module-assistant may untar a new version of the source over top of the built source tree for a previous version. This overwrites the debian/control file, which causes dh to fail. Add some dummy rules so that the setup file will disappear after building, allowing another build. --- debian/module/rules | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/debian/module/rules b/debian/module/rules index 59d6548f1..38c823560 100755 --- a/debian/module/rules +++ b/debian/module/rules @@ -29,9 +29,23 @@ package = openafs modulepkg := openafs-modules-$(KVERS)${INT_SUBARCH} moduledir := debian/$(modulepkg)/lib/modules/$(KVERS)/fs +# After building the package m-a calls debian/rules with target +# 'echo-debfile'. As this triggers the setup:-target, the flag-file ' +# setup' will be created again. +# In following builds m-a might unpack the original tar-file again +# and thus overwrites the debian/control file. As the original file +# does not contain any binary package definition and due to the still +# available file 'setup', no rebuild happens and an error appears +# (dh: "No packages to build.") +# In case of changes to m-a more dummy target must be added here. +# (the target may not be empty!) +echo-debfile: + echo "dummy target: echo-debfile" + # make-kpkg tries to rebuild debian/rules first, so add a dummy target to # avoid our dh wildcard rule and a fatal error. debian/rules ./debian/rules: + echo "dummy target: debian/rules" # This setup must be done before running any other target if it hasn't # already been done. -- 2.39.5