From b96773f15f1e8aadacb12182a019bdb73b101951 Mon Sep 17 00:00:00 2001 From: avilla Date: Tue, 14 Jun 2011 09:23:49 +0000 Subject: The FreeBSD KDE Team is pleased to announce KDE SC 4.6.4. Read full announcement here: http://kde.org/announcements/announce-4.6.4.php --- ...lugins-positionprovider-gpsd-GpsdConnection.cpp | 64 ---------------------- astro/marble/files/patch-marble__CMakeLists.txt | 10 ---- ...lugins-positionprovider-gpsd-GpsdConnection.cpp | 64 ++++++++++++++++++++++ 3 files changed, 64 insertions(+), 74 deletions(-) delete mode 100644 astro/marble/files/patch-marble-src-plugins-positionprovider-gpsd-GpsdConnection.cpp delete mode 100644 astro/marble/files/patch-marble__CMakeLists.txt create mode 100644 astro/marble/files/patch-src-plugins-positionprovider-gpsd-GpsdConnection.cpp (limited to 'astro/marble/files') diff --git a/astro/marble/files/patch-marble-src-plugins-positionprovider-gpsd-GpsdConnection.cpp b/astro/marble/files/patch-marble-src-plugins-positionprovider-gpsd-GpsdConnection.cpp deleted file mode 100644 index 68a5b9dea204..000000000000 --- a/astro/marble/files/patch-marble-src-plugins-positionprovider-gpsd-GpsdConnection.cpp +++ /dev/null @@ -1,64 +0,0 @@ ---- ./marble/src/plugins/positionprovider/gpsd/GpsdConnection.cpp.orig 2011-03-22 18:32:49.000000000 +0300 -+++ ./marble/src/plugins/positionprovider/gpsd/GpsdConnection.cpp 2011-03-22 19:24:18.000000000 +0300 -@@ -18,7 +18,8 @@ - - GpsdConnection::GpsdConnection( QObject* parent ) - : QObject( parent ), -- m_timer( 0 ) -+ m_timer( 0 ), -+ m_gpsd("localhost", DEFAULT_GPSD_PORT) - { - connect( &m_timer, SIGNAL( timeout() ), this, SLOT( update() ) ); - } -@@ -26,15 +27,15 @@ - void GpsdConnection::initialize() - { - m_timer.stop(); -- gps_data_t* data = m_gpsd.open(); -- if ( data ) { -+#if 0 /* I don't see error handling in the new libgpsmm API */ -+ if ( m_gpsd.to_user != NULL ) { -+#endif - m_status = PositionProviderStatusAcquiring; - emit statusChanged( m_status ); - --#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 3 ) && defined( WATCH_ENABLE ) - m_gpsd.stream( WATCH_ENABLE ); --#endif - m_timer.start( 1000 ); -+#if 0 - } - else { - // There is also gps_errstr() for libgps version >= 2.90, -@@ -68,28 +69,17 @@ - - mDebug() << "Connection to gpsd failed, no position info available: " << m_error; - } -+#endif - } - - void GpsdConnection::update() - { --#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 3 ) && defined( PACKET_SET ) -- if ( m_gpsd.waiting() ) { -- gps_data_t* data = m_gpsd.poll(); -+ if ( m_gpsd.waiting(5000000) ) { -+ gps_data_t* data = m_gpsd.read(); - if ( data && data->set & PACKET_SET ) { - emit gpsdInfo( *data ); - } - } --#else -- gps_data_t* data = m_gpsd.query( "o" ); -- -- if ( data ) { -- emit gpsdInfo( *data ); -- } -- else if ( m_status != PositionProviderStatusAcquiring ) { -- mDebug() << "Lost connection to gpsd, trying to re-open."; -- initialize(); -- } --#endif - } - - QString GpsdConnection::error() const diff --git a/astro/marble/files/patch-marble__CMakeLists.txt b/astro/marble/files/patch-marble__CMakeLists.txt deleted file mode 100644 index 97bee45da168..000000000000 --- a/astro/marble/files/patch-marble__CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ ---- ./marble/CMakeLists.txt.orig 2009-12-05 02:09:36.000000000 +0300 -+++ ./marble/CMakeLists.txt 2010-06-01 01:15:13.928157277 +0400 -@@ -283,6 +283,7 @@ - # Descend into subdirectories - add_subdirectory(src) - add_subdirectory(data) -+add_subdirectory(marble) - - include(DistTarget) - diff --git a/astro/marble/files/patch-src-plugins-positionprovider-gpsd-GpsdConnection.cpp b/astro/marble/files/patch-src-plugins-positionprovider-gpsd-GpsdConnection.cpp new file mode 100644 index 000000000000..58546cdcdd21 --- /dev/null +++ b/astro/marble/files/patch-src-plugins-positionprovider-gpsd-GpsdConnection.cpp @@ -0,0 +1,64 @@ +--- ./src/plugins/positionprovider/gpsd/GpsdConnection.cpp.orig 2011-03-22 18:32:49.000000000 +0300 ++++ ./src/plugins/positionprovider/gpsd/GpsdConnection.cpp 2011-03-22 19:24:18.000000000 +0300 +@@ -18,7 +18,8 @@ + + GpsdConnection::GpsdConnection( QObject* parent ) + : QObject( parent ), +- m_timer( 0 ) ++ m_timer( 0 ), ++ m_gpsd("localhost", DEFAULT_GPSD_PORT) + { + connect( &m_timer, SIGNAL( timeout() ), this, SLOT( update() ) ); + } +@@ -26,15 +27,15 @@ + void GpsdConnection::initialize() + { + m_timer.stop(); +- gps_data_t* data = m_gpsd.open(); +- if ( data ) { ++#if 0 /* I don't see error handling in the new libgpsmm API */ ++ if ( m_gpsd.to_user != NULL ) { ++#endif + m_status = PositionProviderStatusAcquiring; + emit statusChanged( m_status ); + +-#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 3 ) && defined( WATCH_ENABLE ) + m_gpsd.stream( WATCH_ENABLE ); +-#endif + m_timer.start( 1000 ); ++#if 0 + } + else { + // There is also gps_errstr() for libgps version >= 2.90, +@@ -68,28 +69,17 @@ + + mDebug() << "Connection to gpsd failed, no position info available: " << m_error; + } ++#endif + } + + void GpsdConnection::update() + { +-#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 3 ) && defined( PACKET_SET ) +- if ( m_gpsd.waiting() ) { +- gps_data_t* data = m_gpsd.poll(); ++ if ( m_gpsd.waiting(5000000) ) { ++ gps_data_t* data = m_gpsd.read(); + if ( data && data->set & PACKET_SET ) { + emit gpsdInfo( *data ); + } + } +-#else +- gps_data_t* data = m_gpsd.query( "o" ); +- +- if ( data ) { +- emit gpsdInfo( *data ); +- } +- else if ( m_status != PositionProviderStatusAcquiring ) { +- mDebug() << "Lost connection to gpsd, trying to re-open."; +- initialize(); +- } +-#endif + } + + QString GpsdConnection::error() const -- cgit