Received: by mail.netbsd.org (Postfix, from userid 605) id CF89284E1B; Thu, 14 May 2020 19:21:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2A7CC84E1B for ; Thu, 14 May 2020 19:21:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id iHbkAXfM-jIM for ; Thu, 14 May 2020 19:21:35 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 0BE4B84D2A for ; Thu, 14 May 2020 19:21:35 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 077C4FB27; Thu, 14 May 2020 19:21:35 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_158948409543260" MIME-Version: 1.0 Date: Thu, 14 May 2020 19:21:35 +0000 From: "Joerg Sonnenberger" Subject: CVS commit: pkgsrc/ham/gr-osmosdr To: pkgsrc-changes@NetBSD.org Reply-To: joerg@netbsd.org X-Mailer: log_accum Message-Id: <20200514192135.077C4FB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_158948409543260 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: joerg Date: Thu May 14 19:21:34 UTC 2020 Modified Files: pkgsrc/ham/gr-osmosdr: distinfo Added Files: pkgsrc/ham/gr-osmosdr/patches: patch-lib_airspy_airspy__source__c.cc patch-lib_hackrf_hackrf__sink__c.cc patch-lib_hackrf_hackrf__source__c.cc patch-lib_rtl_rtl__source__c.cc Log Message: Fix boost endian fallout To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 pkgsrc/ham/gr-osmosdr/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/ham/gr-osmosdr/patches/patch-lib_airspy_airspy__source__c.cc \ pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__sink__c.cc \ pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__source__c.cc \ pkgsrc/ham/gr-osmosdr/patches/patch-lib_rtl_rtl__source__c.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_158948409543260 Content-Disposition: inline Content-Length: 5211 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/ham/gr-osmosdr/distinfo diff -u pkgsrc/ham/gr-osmosdr/distinfo:1.3 pkgsrc/ham/gr-osmosdr/distinfo:1.4 --- pkgsrc/ham/gr-osmosdr/distinfo:1.3 Mon Nov 2 23:57:23 2015 +++ pkgsrc/ham/gr-osmosdr/distinfo Thu May 14 19:21:34 2020 @@ -1,6 +1,10 @@ -$NetBSD: distinfo,v 1.3 2015/11/02 23:57:23 agc Exp $ +$NetBSD: distinfo,v 1.4 2020/05/14 19:21:34 joerg Exp $ SHA1 (gr-osmosdr-0.1.4.tar.gz) = 672041a6ffa767d39ffad2432e2a13c11e3ec984 RMD160 (gr-osmosdr-0.1.4.tar.gz) = 30f97d10655e5a88fdf2bf43a323ea9d9aba0479 SHA512 (gr-osmosdr-0.1.4.tar.gz) = b364f95c140ba61ab1fc51c49fd01cf4d0db4ce3c3a7680f34ea13bc646820d9b2b860bc0438df83df942249fa959cb90f83c5d117737cd0818db35c27253e65 Size (gr-osmosdr-0.1.4.tar.gz) = 222961 bytes +SHA1 (patch-lib_airspy_airspy__source__c.cc) = 40e6aedace7fb1754c9dd0096d463c8c8a2799da +SHA1 (patch-lib_hackrf_hackrf__sink__c.cc) = 659d8a5746babf23f8b08504c4584375ef38d5e4 +SHA1 (patch-lib_hackrf_hackrf__source__c.cc) = f67d6e4ff2de59e2131d39415a337e19f836135d +SHA1 (patch-lib_rtl_rtl__source__c.cc) = 927868f6320a94cc94a7134d20913644acfc356d Added files: Index: pkgsrc/ham/gr-osmosdr/patches/patch-lib_airspy_airspy__source__c.cc diff -u /dev/null pkgsrc/ham/gr-osmosdr/patches/patch-lib_airspy_airspy__source__c.cc:1.1 --- /dev/null Thu May 14 19:21:34 2020 +++ pkgsrc/ham/gr-osmosdr/patches/patch-lib_airspy_airspy__source__c.cc Thu May 14 19:21:34 2020 @@ -0,0 +1,12 @@ +$NetBSD: patch-lib_airspy_airspy__source__c.cc,v 1.1 2020/05/14 19:21:34 joerg Exp $ + +--- lib/airspy/airspy_source_c.cc.orig 2020-05-10 20:51:56.395303506 +0000 ++++ lib/airspy/airspy_source_c.cc +@@ -32,7 +32,6 @@ + + #include + #include +-#include + #include + #include + Index: pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__sink__c.cc diff -u /dev/null pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__sink__c.cc:1.1 --- /dev/null Thu May 14 19:21:34 2020 +++ pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__sink__c.cc Thu May 14 19:21:34 2020 @@ -0,0 +1,12 @@ +$NetBSD: patch-lib_hackrf_hackrf__sink__c.cc,v 1.1 2020/05/14 19:21:34 joerg Exp $ + +--- lib/hackrf/hackrf_sink_c.cc.orig 2020-05-10 20:51:58.688391524 +0000 ++++ lib/hackrf/hackrf_sink_c.cc +@@ -39,7 +39,6 @@ + + #include + #include +-#include + #include + #include + Index: pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__source__c.cc diff -u /dev/null pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__source__c.cc:1.1 --- /dev/null Thu May 14 19:21:34 2020 +++ pkgsrc/ham/gr-osmosdr/patches/patch-lib_hackrf_hackrf__source__c.cc Thu May 14 19:21:34 2020 @@ -0,0 +1,26 @@ +$NetBSD: patch-lib_hackrf_hackrf__source__c.cc,v 1.1 2020/05/14 19:21:34 joerg Exp $ + +--- lib/hackrf/hackrf_source_c.cc.orig 2020-05-10 20:52:00.651452193 +0000 ++++ lib/hackrf/hackrf_source_c.cc +@@ -32,7 +32,7 @@ + + #include + #include +-#include ++#include + #include + #include + +@@ -119,10 +119,10 @@ hackrf_source_c::hackrf_source_c (const + + // create a lookup table for gr_complex values + for (unsigned int i = 0; i <= 0xffff; i++) { +-#ifdef BOOST_LITTLE_ENDIAN ++#if BOOST_ENDIAN_BIG_BYTE + _lut.push_back( gr_complex( (float(char(i & 0xff))) * (1.0f/128.0f), + (float(char(i >> 8))) * (1.0f/128.0f) ) ); +-#else // BOOST_BIG_ENDIAN ++#else // BOOST_ENDIAN_BIG_BYTE + _lut.push_back( gr_complex( (float(char(i >> 8))) * (1.0f/128.0f), + (float(char(i & 0xff))) * (1.0f/128.0f) ) ); + #endif Index: pkgsrc/ham/gr-osmosdr/patches/patch-lib_rtl_rtl__source__c.cc diff -u /dev/null pkgsrc/ham/gr-osmosdr/patches/patch-lib_rtl_rtl__source__c.cc:1.1 --- /dev/null Thu May 14 19:21:34 2020 +++ pkgsrc/ham/gr-osmosdr/patches/patch-lib_rtl_rtl__source__c.cc Thu May 14 19:21:34 2020 @@ -0,0 +1,26 @@ +$NetBSD: patch-lib_rtl_rtl__source__c.cc,v 1.1 2020/05/14 19:21:34 joerg Exp $ + +--- lib/rtl/rtl_source_c.cc.orig 2020-05-10 20:52:02.745101595 +0000 ++++ lib/rtl/rtl_source_c.cc +@@ -32,7 +32,7 @@ + + #include + #include +-#include ++#include + #include + + #include +@@ -173,10 +173,10 @@ rtl_source_c::rtl_source_c (const std::s + + // create a lookup table for gr_complex values + for (unsigned int i = 0; i <= 0xffff; i++) { +-#ifdef BOOST_LITTLE_ENDIAN ++#if BOOST_ENDIAN_LITTLE_BYTE + _lut.push_back( gr_complex( (float(i & 0xff) - 127.4f) * (1.0f/128.0f), + (float(i >> 8) - 127.4f) * (1.0f/128.0f) ) ); +-#else // BOOST_BIG_ENDIAN ++#else // BOOST_ENDIAN_BIG_BYTE + _lut.push_back( gr_complex( (float(i >> 8) - 127.4f) * (1.0f/128.0f), + (float(i & 0xff) - 127.4f) * (1.0f/128.0f) ) ); + #endif --_----------=_158948409543260--