[beignet] 01/04: Fix FTBFS on kfreebsd-*

Rebecca Palmer rnpalmer-guest at moszumanska.debian.org
Wed Sep 28 20:27:09 UTC 2016


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

rnpalmer-guest pushed a commit to branch master
in repository beignet.

commit 41b69622e19ce7f101ca8486601f7f77d58deea5
Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
Date:   Sun Sep 25 22:00:59 2016 +0100

    Fix FTBFS on kfreebsd-*
---
 debian/changelog                      | 6 ++++++
 debian/patches/support-kfreebsd.patch | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5a2f004..f95ffae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+beignet (1.2.0-2) UNRELEASED; urgency=medium
+
+  * Fix FTBFS on kfreebsd-*.
+
+ -- Rebecca N. Palmer <rebecca_palmer at zoho.com>  Sun, 25 Sep 2016 21:58:07 +0100
+
 beignet (1.2.0-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/patches/support-kfreebsd.patch b/debian/patches/support-kfreebsd.patch
index 712bb20..f1a925e 100644
--- a/debian/patches/support-kfreebsd.patch
+++ b/debian/patches/support-kfreebsd.patch
@@ -29,8 +29,8 @@ Author: Koop Mast, Rebecca Palmer
 +#if defined(linux) || defined(__linux__) || defined(__LINUX__)
    struct sysinfo info;
    if (sysinfo(&info) == 0) {
-     uint64_t totalgpumem = ret->global_mem_size;
- 	uint64_t maxallocmem = ret->max_mem_alloc_size;
+-    uint64_t totalgpumem = ret->global_mem_size;
+-	uint64_t maxallocmem = ret->max_mem_alloc_size;
      uint64_t totalram = info.totalram * info.mem_unit;
 +#else
 +  {
@@ -44,6 +44,8 @@ Author: Koop Mast, Rebecca Palmer
 +  len = sizeof(totalram);
 +  sysctl(mib, 2, &totalram, &len, NULL, 0);
 +#endif
++    uint64_t totalgpumem = ret->global_mem_size;
++	uint64_t maxallocmem = ret->max_mem_alloc_size;
  	/* In case to keep system stable we just use half
  	 * of the raw as global mem */
      ret->global_mem_size = toMB((totalram / 2 > totalgpumem) ?

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



More information about the Pkg-opencl-commits mailing list