summaryrefslogtreecommitdiffstats
path: root/tags/d/debian-rules-sets-dpkg-architecture-variable.tag
diff options
context:
space:
mode:
Diffstat (limited to 'tags/d/debian-rules-sets-dpkg-architecture-variable.tag')
-rw-r--r--tags/d/debian-rules-sets-dpkg-architecture-variable.tag16
1 files changed, 16 insertions, 0 deletions
diff --git a/tags/d/debian-rules-sets-dpkg-architecture-variable.tag b/tags/d/debian-rules-sets-dpkg-architecture-variable.tag
new file mode 100644
index 0000000..b95718a
--- /dev/null
+++ b/tags/d/debian-rules-sets-dpkg-architecture-variable.tag
@@ -0,0 +1,16 @@
+Tag: debian-rules-sets-dpkg-architecture-variable
+Severity: warning
+Check: debian/rules
+See-Also: dpkg-architecture(1)
+Explanation: The <code>debian/rules</code> file sets one or more
+ <code>dpkg-architecture</code> variables such as <code>DEB&lowbar;BUILD&lowbar;ARCH</code>.
+ .
+ These variables are pre-initialized in the environment when running under
+ <code>dpkg-buildpackage</code> - avoiding these assignments can reduce package
+ build time.
+ .
+ Please use:
+ .
+ include /usr/share/dpkg/architecture.mk
+ .
+ instead, or replace the assignment operator with <code>?=</code>.