Skip to content

Commit 5c72f0a

Browse files
silverjamJason Mobarak
authored andcommitted
libsbp release 2.6.0
+ CMake build tweaks + Resolve javascript package vulnerability + Version bumps + Update haskell generator to template sbp.cabal: some kind of snafu broke the templating of sbp.cabal, restore this.
1 parent 0ef6a03 commit 5c72f0a

File tree

14 files changed

+48
-156
lines changed

14 files changed

+48
-156
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ matrix:
3131
- sudo apt-get install python3.5 python3.5-dev
3232
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
3333
- sudo pip install tox
34-
- git clone -b pmiettinen/esd-1156-numba-deployment https://github.com/swift-nav/piksi_tools.git ../piksi_tools
34+
- git clone -b master https://github.com/swift-nav/piksi_tools.git ../piksi_tools
3535
script: |
3636
pushd haskell
3737
docker build -t sbp2json .

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## [2.6.0](https://github.com/swift-nav/libsbp/tree/v2.6.0)
4+
5+
[Full Changelog](https://github.com/swift-nav/libsbp/compare/v2.5.5...v2.6.0)
6+
7+
**Merged pull requests:**
8+
9+
- Remove unused build\_test\_data.py \[ESD-1086\] [\#693](https://github.com/swift-nav/libsbp/pull/693)
10+
- Integrate numba into setuptools \[ESD-1156\] [\#687](https://github.com/swift-nav/libsbp/pull/687)
11+
- Added three new messages for gridded atmospheric SSR corrections. [\#686](https://github.com/swift-nav/libsbp/pull/686)
12+
313
## [2.5.5](https://github.com/swift-nav/libsbp/tree/v2.5.5) (2019-05-16)
414

515
[Full Changelog](https://github.com/swift-nav/libsbp/compare/v2.5.4...v2.5.5)

HOWTO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Ubuntu 16.04.
9797
2. This will bump versions in the following files:
9898
- `python/sbp/RELEASE-VERSION`
9999
- `docs/sbp.pdf`
100-
- `haskell/sbp.cabal.m4`
100+
- `haskell/sbp.cabal`
101101
- `package.json`
102102
- `c/include/libsbp/version.h`
103103
- `package-lock.json` -- you can typically revert all the changes in this

c/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.2)
1+
cmake_minimum_required(VERSION 3.12)
22
project(libsbp)
33

44
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
@@ -15,6 +15,7 @@ if(MSVC)
1515
set(LIBSBP_CFLAGS "/Wall" CACHE STRING "Compile flags for libsbp.")
1616
else()
1717
set(LIBSBP_CFLAGS "-Wall -Werror" CACHE STRING "Compile flags for libsbp.")
18+
link_directories("/usr/local/lib")
1819
endif()
1920

2021
add_subdirectory(src)

c/include/libsbp/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
/** Protocol major version. */
2424
#define SBP_MAJOR_VERSION 2
2525
/** Protocol minor version. */
26-
#define SBP_MINOR_VERSION 5
26+
#define SBP_MINOR_VERSION 6
2727
/** Protocol patch version. */
28-
#define SBP_PATCH_VERSION 5
28+
#define SBP_PATCH_VERSION 0
2929

3030
/** \} */
3131

c/test/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ else (CMAKE_CROSSCOMPILING)
2121
set_target_properties(test_libsbp PROPERTIES
2222
C_STANDARD 99
2323
C_STANDARD_REQUIRED ON)
24-
target_include_directories(test_libsbp PRIVATE ${PROJECT_SOURCE_DIR}/include/libsbp/)
24+
25+
if(MSVC)
26+
target_include_directories(test_libsbp PRIVATE ${PROJECT_SOURCE_DIR}/include/libsbp/)
27+
else()
28+
target_include_directories(test_libsbp PRIVATE ${PROJECT_SOURCE_DIR}/include/libsbp/ /usr/local/include/)
29+
endif()
2530

2631
add_custom_command(
2732
TARGET test_libsbp POST_BUILD

docs/sbp.pdf

-17 KB
Binary file not shown.

generator/sbpg/targets/haskell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def render_cabal(output_dir, package_specs, release):
190190
module_name = camel_case(name)
191191
full_module_name = ".".join([module_prefix, module_name])
192192
modules.append(full_module_name)
193-
destination_filename = "%s/sbp.cabal.m4" % output_dir
193+
destination_filename = "%s/sbp.cabal" % output_dir
194194
py_template = JENV.get_template(CABAL_TEMPLATE_NAME)
195195
with open(destination_filename, 'w') as f:
196196
f.write(py_template.render(modules=sorted(modules),

generator/sbpg/targets/resources/sbp-template.cabal

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ executable sbp2json
6363
, sbp
6464
default-language: Haskell2010
6565

66+
executable sbp2prettyjson
67+
hs-source-dirs: main
68+
main-is: SBP2PRETTYJSON.hs
69+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
70+
build-depends: aeson-pretty
71+
, base
72+
, basic-prelude
73+
, binary-conduit
74+
, bytestring
75+
, cmdargs
76+
, conduit
77+
, conduit-extra
78+
, resourcet
79+
, sbp
80+
default-language: Haskell2010
81+
6682
executable json2sbp
6783
hs-source-dirs: main
6884
main-is: JSON2SBP.hs

haskell/sbp.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sbp
2-
version: 2.4.7
2+
version: 2.6.0
33
synopsis: SwiftNav's SBP Library
44
homepage: https://github.com/swift-nav/libsbp
55
license: LGPL-3
@@ -153,4 +153,4 @@ test-suite test
153153
, tasty
154154
, tasty-hunit
155155
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
156-
default-language: Haskell2010
156+
default-language: Haskell2010

0 commit comments

Comments
 (0)