[libclc] 01/01: release 0.2.0+git20150813-2

Michael Gilbert mgilbert at moszumanska.debian.org
Wed Feb 24 03:49:07 UTC 2016


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

mgilbert pushed a commit to branch master
in repository libclc.

commit 71f04e72113fc6004f7302e42b6beffe6f4a5094
Author: Michael Gilbert <mgilbert at debian.org>
Date:   Wed Feb 24 03:47:35 2016 +0000

    release 0.2.0+git20150813-2
---
 debian/changelog               |  7 +++++++
 debian/control                 | 13 +++++++++++++
 debian/libclc-amdgcn.docs      |  1 +
 debian/libclc-amdgcn.install   |  1 +
 debian/patches/hardening.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series          |  2 +-
 debian/rules                   |  5 ++++-
 7 files changed, 69 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7cf2e44..6665a24 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libclc (0.2.0+git20150813-2) unstable; urgency=medium
+
+  * Enable build hardening flags.
+  * Add a package supporting the radeon amdgcn architecture (closes: #788219).
+
+ -- Michael Gilbert <mgilbert at debian.org>  Sun, 27 Sep 2015 18:39:13 +0000
+
 libclc (0.2.0+git20150813-1) unstable; urgency=medium
 
   [ Timo Aaltonen ]
diff --git a/debian/control b/debian/control
index c211780..3335bee 100644
--- a/debian/control
+++ b/debian/control
@@ -28,6 +28,19 @@ Description: OpenCL C language implementation - ptx support
  .
  This package contains support for the PTX platform.
 
+Package: libclc-amdgcn
+Architecture: all
+Depends:
+ ${misc:Depends},
+ libclc-dev (= ${binary:Version}),
+ libclang-common-3.7-dev,
+Description: OpenCL C language implementation - amdgcn support
+ libclc is an open implementation of the OpenCL C programming language,
+ as specified by the OpenCL 1.1 Specification.
+ .
+ This package contains support for the amdgcn (AMD GPU) platform.
+ Supported GPU families: Southern Islands and newer.
+
 Package: libclc-r600
 Architecture: all
 Depends:
diff --git a/debian/libclc-amdgcn.docs b/debian/libclc-amdgcn.docs
new file mode 120000
index 0000000..472a9fc
--- /dev/null
+++ b/debian/libclc-amdgcn.docs
@@ -0,0 +1 @@
+libclc-dev.docs
\ No newline at end of file
diff --git a/debian/libclc-amdgcn.install b/debian/libclc-amdgcn.install
new file mode 100644
index 0000000..e9de2d8
--- /dev/null
+++ b/debian/libclc-amdgcn.install
@@ -0,0 +1 @@
+usr/lib/clc/*amdgcn*.bc
diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..0a1b378
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,42 @@
+description: enable build hardening flags
+author: Michael Gilbert <mgilbert at debian.org>
+
+--- a/configure.py
++++ b/configure.py
+@@ -81,6 +81,13 @@ llvm_core_libs = llvm_config(['--libs',
+ llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti'
+ llvm_libdir = llvm_config(['--libdir'])
+ 
++# add in debian buildflags
++proc_ldflags = Popen(("dpkg-buildflags","--get","LDFLAGS"), stdout=PIPE)
++proc_cxxflags = Popen(("dpkg-buildflags","--get","CXXFLAGS"), stdout=PIPE)
++llvm_core_libs += " " + proc_ldflags.communicate()[0].strip("\n")
++llvm_cxxflags = llvm_cxxflags.replace(" -fPIC","")
++llvm_cxxflags += " " + proc_cxxflags.communicate()[0].strip("\n")
++
+ llvm_clang = os.path.join(llvm_bindir, 'clang')
+ llvm_link = os.path.join(llvm_bindir, 'llvm-link')
+ llvm_opt = os.path.join(llvm_bindir, 'opt')
+@@ -187,6 +194,11 @@ for target in targets:
+                      "-emit-llvm" % (target, clang_cl_includes)
+     if device['gpu'] != '':
+       clang_bc_flags += ' -mcpu=' + device['gpu']
++
++    # add in debian build flags
++    proc_cflags = Popen(("dpkg-buildflags","--get","CFLAGS"), stdout=PIPE)
++    clang_bc_flags += " " + proc_cflags.communicate()[0].strip("\n")
++
+     clang_bc_rule = "CLANG_CL_BC_" + target + "_" + device['gpu']
+     c_compiler_rule(b, clang_bc_rule, "LLVM-CC", llvm_clang, clang_bc_flags)
+ 
+--- a/build/metabuild.py
++++ b/build/metabuild.py
+@@ -48,7 +48,7 @@ endif
+ 
+     r = self.rules[rule]
+     command = subst(r['command'])
+-    if r['description']:
++    if False:
+       desc = subst(r['description'])
+       self.output.write('\t at echo %s\n\t$(Verb) %s\n' % (desc, command))
+     else:
diff --git a/debian/patches/series b/debian/patches/series
index 1bb8bf6..814900f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-# empty
+hardening.patch
diff --git a/debian/rules b/debian/rules
index f73f6c9..13ecd87 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,11 @@
 #!/usr/bin/make -f
 
-export DH_VERBOSE=1
 export VERBOSE=1
 
+export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
 confflags=--prefix=/usr \
           --with-llvm-config=/usr/bin/llvm-config-3.7 \
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git



More information about the Pkg-opencl-commits mailing list