[pocl] 01/06: add Built-Using control field for linking against static clang libraries

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 27 14:50:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository pocl.

commit 768b5c1c619b9e8f2b4feb12d5fb6dca5b0ee582
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun Nov 26 14:11:54 2017 +0100

    add Built-Using control field for linking against static clang libraries
---
 debian/changelog | 6 ++++++
 debian/control   | 2 ++
 debian/rules     | 4 +++-
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2d71913..4de9301 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pocl (0.13-11) UNRELEASED; urgency=medium
+
+  * Add Built-Using control field for linking against static clang libraries.
+
+ -- Andreas Beckmann <anbe at debian.org>  Sun, 26 Nov 2017 14:08:48 +0100
+
 pocl (0.13-10) unstable; urgency=medium
 
   * Update symbols files.
diff --git a/debian/control b/debian/control
index c4a976f..e1fc817 100644
--- a/debian/control
+++ b/debian/control
@@ -75,6 +75,8 @@ Breaks:
  libpocl1-common (<< 0.13-9),
 Replaces:
  libpocl1-common (<< 0.13-9),
+Built-Using:
+ ${Built-Using:clang},
 Description: Portable Computing Language library
  Portable Computing Language is an open source implementation of the OpenCL
  standard which can be easily adapted for new targets. One of the goals of the
diff --git a/debian/rules b/debian/rules
index a7f9c66..bfc0474 100755
--- a/debian/rules
+++ b/debian/rules
@@ -114,7 +114,9 @@ delayed_check_dh_auto_test_result: run_dh_makeshlibs
 override_dh_makeshlibs: run_dh_makeshlibs delayed_check_dh_auto_test_result
 
 override_dh_gencontrol:
-	dh_gencontrol -- -V'LLVM:Version=$(LLVM_VERSION)'
+	dh_gencontrol -- \
+		-V'LLVM:Version=$(LLVM_VERSION)' \
+	        -V'Built-Using:clang=$(shell dpkg-query -f '$${source:Package} (= $${source:Version})' -W libclang-$(LLVM_VERSION)-dev)' \
 
 
 fix-symbols:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/pocl.git



More information about the Pkg-opencl-commits mailing list