[hamradio-commits] [limesuite] 05/08: Add patch fix-abs-overload taken from upstream git fixing compile error
Andreas E. Bombe
aeb at moszumanska.debian.org
Thu Jan 12 00:53:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
aeb pushed a commit to branch master
in repository limesuite.
commit 2e138c66bd9e725a73f60aa882bc9cf33dcfb8c2
Author: Andreas Bombe <aeb at debian.org>
Date: Thu Jan 12 01:36:20 2017 +0100
Add patch fix-abs-overload taken from upstream git fixing compile error
---
debian/changelog | 8 ++++++++
debian/patches/fix-abs-overload | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 34 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b663850..5b3d1fd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+limesuite (16.12.0+dfsg-1) UNRELEASED; urgency=medium
+
+ * New upstream release 16.12.0
+ * Add patch fix-abs-overload taken from upstream git fixing compile
+ error for the new version
+
+ -- Andreas Bombe <aeb at debian.org> Thu, 12 Jan 2017 01:33:57 +0100
+
limesuite (16.8.23.819+git20161221+dfsg-2) unstable; urgency=medium
* Link to libatomic (Closes: #849536)
diff --git a/debian/patches/fix-abs-overload b/debian/patches/fix-abs-overload
new file mode 100644
index 0000000..23d8ed3
--- /dev/null
+++ b/debian/patches/fix-abs-overload
@@ -0,0 +1,25 @@
+Description: Fix compile error
+ This patch comes from upstream git fixing a compile error. Original changelog:
+ .
+ "Subject: Fix abs() overload for mcu lms7002m calibrations
+ .
+ on ubuntu yakkety (gcc 6.2.0) abs(int8_t) had some resolution issue,
+ it was picking up a double type which it could not or with 0x40.
+ The fix was to force the integer version of abs with a cast."
+Author: Josh Blum <josh at joshknows.com>
+Origin: upstream, https://github.com/myriadrf/LimeSuite/commit/fd7b8c707859873c204509b12ae559b0cfb0c19c
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+diff --git a/mcu_program/common_src/lms7002m_calibrations.c b/mcu_program/common_src/lms7002m_calibrations.c
+index 10b1351..f2c3386 100644
+--- a/mcu_program/common_src/lms7002m_calibrations.c
++++ b/mcu_program/common_src/lms7002m_calibrations.c
+@@ -65,7 +65,7 @@ static uint8_t toDCOffset(const int8_t offset)
+ {
+ if(offset >= 0)
+ return offset;
+- return abs(offset) | 0x40;
++ return (uint8_t)(abs((int)offset) | 0x40);
+ }
+
+ static void FlipRisingEdge(const uint16_t addr, const uint8_t bits)
diff --git a/debian/patches/series b/debian/patches/series
index f633518..e9f11d6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ use-system-glew
link-libatomic
fix-icon-install
fix-libusb-include
+fix-abs-overload
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/limesuite.git
More information about the pkg-hamradio-commits
mailing list