[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#872808: [debian-policy] nocheck DEB_BUILD_OPTIONS DEB_BUILD_PROFILES



Package: debian-policy
Version: 4.0.1.0
Severity: normal

I think the following patch is needed even if profiles are not fully specified. 
Maybe an example about nodoc and help2man will also help. The nocheck should 
check both BUILD_OPTIONS and BUILD_PROFILES. It will help when implementing as 
policy profiles

diff --git a/policy/ch-source.rst b/policy/ch-source.rst
index f706a13..d3d868c 100644
--- a/policy/ch-source.rst
+++ b/policy/ch-source.rst
@@ -465,7 +465,8 @@ The meaning of the following tags has been standardized:
 
 ``nocheck``
     This tag says to not run any build-time test suite provided by the
-    package.
+    package. This tag could be also specified using 
+   ``DEB_BUILD_PROFILES`` variable with nocheck flag
 
 ``nodoc``
     This tag says to skip any build steps that only generate package
@@ -531,7 +532,7 @@ order to make it work for your package.
 
     build:
             # ...
-    ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+    ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS $DEB_BUILD_PROFILES)))
             # Code to run the package test suite.
     endif
 

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: