-
Notifications
You must be signed in to change notification settings - Fork 19
Upgrade from messagepack 3.2.0 to 7.0.0 #333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pranavshridhar
wants to merge
7
commits into
multiscale:develop
Choose a base branch
from
pranavshridhar:msgpack-upgrade-pr
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7b33612
My big fat initial rebase
pranavshridhar 4557ce4
Switched values back to what they should originally be
pranavshridhar d452c91
Fix whitespace
pranavshridhar 60fd02b
This is the commit that upgrades messagepack 3.2.0 to 7.0.0
pranavshridhar d6ac1d4
Formally upgraded msgpack from 4 to 7
pranavshridhar 6bcfd36
Updated libmuscle.pc generator rule to stop listing msgpack and also …
pranavshridhar 1c3fc5b
Merge branch 'upgrade-msgpack' into msgpack-upgrade-pr
pranavshridhar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,8 @@ all: msgpack | |
|
|
||
| .PHONY: install | ||
| install: msgpack | ||
| mkdir -p $(PREFIX)/lib | ||
| cp -a msgpack/lib/* $(PREFIX)/lib/ | ||
| # mkdir -p $(PREFIX)/lib | ||
| # cp -a msgpack/lib/* $(PREFIX)/lib/ # Commented: MessagePack 7.0.0 is header-only | ||
| mkdir -p $(PREFIX)/include | ||
| cp -a msgpack/include/* $(PREFIX)/include/ | ||
|
|
||
|
|
@@ -17,28 +17,29 @@ distclean: clean | |
| rm -rf $$(find . -type d -name 'msgpack-*') | ||
| rm -rf msgpack | ||
|
|
||
| MSGPACK_LIB=$(CURDIR)/msgpack/lib/libmsgpackc.a | ||
| MSGPACK_SRC=$(CURDIR)/msgpack-$(msgpack_VERSION)/ChangeLog | ||
| # MSGPACK_LIB=$(CURDIR)/msgpack/lib/libmsgpackc.a # Commented: MessagePack 7.0.0 is header-only | ||
| MSGPACK_INCLUDE_DIR=$(CURDIR)/msgpack/include | ||
| MSGPACK_SRC=$(CURDIR)/msgpack-cxx-$(msgpack_VERSION)/ChangeLog | ||
|
|
||
| msgpack-$(msgpack_VERSION).tar.gz: | ||
| $(DOWNLOAD) https://github.com/msgpack/msgpack-c/releases/download/cpp-$(msgpack_VERSION)/msgpack-$(msgpack_VERSION).tar.gz | ||
| msgpack-cxx-$(msgpack_VERSION).tar.gz: | ||
| $(DOWNLOAD) https://github.com/msgpack/msgpack-c/releases/download/cpp-$(msgpack_VERSION)/msgpack-cxx-$(msgpack_VERSION).tar.gz | ||
|
|
||
| $(MSGPACK_SRC): msgpack-$(msgpack_VERSION).tar.gz | ||
| $(TAR) xf msgpack-$(msgpack_VERSION).tar.gz -m | ||
| $(MSGPACK_SRC): msgpack-cxx-$(msgpack_VERSION).tar.gz | ||
| $(TAR) xf msgpack-cxx-$(msgpack_VERSION).tar.gz -m | ||
|
|
||
| $(MSGPACK_LIB): $(MSGPACK_SRC) | ||
| cd msgpack-$(msgpack_VERSION) && rm -rf build && mkdir -p build && cd build && \ | ||
| $(MSGPACK_INCLUDE_DIR): $(MSGPACK_SRC) | ||
| cd msgpack-cxx-$(msgpack_VERSION) && rm -rf build && mkdir -p build && cd build && \ | ||
| export PKG_CONFIG_PATH=$(PKG_CONFIG_PATH):$(PKG_CONFIG_EXTRA_DIRS) && \ | ||
| cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_INSTALL_PREFIX=$(CURDIR)/msgpack -DMSGPACK_CXX11=ON -DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_TESTS=OFF .. && \ | ||
| cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DMSGPACK_USE_BOOST=OFF -DCMAKE_INSTALL_PREFIX=$(CURDIR)/msgpack -DMSGPACK_CXX11=ON -DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_TESTS=OFF .. && \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the CMAKE_POLICY_VERSION_MINIMUM still needed when building 7.0.0.?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CMake does NOT like when I do that, so my recommendation is to keep it for now. |
||
| $(MAKE) -j $(NCORES) && make install | ||
|
|
||
| ifdef MUSCLE_LINUX | ||
|
|
||
| msgpack: $(MSGPACK_LIB) | ||
| msgpack: $(MSGPACK_INCLUDE_DIR) | ||
|
|
||
| else ifdef MUSCLE_MACOS | ||
|
|
||
| msgpack: $(MSGPACK_LIB) | ||
| install_name_tool -id $(CURDIR)/msgpack/lib/libmsgpackc.dylib $(CURDIR)/msgpack/lib/libmsgpackc.dylib | ||
| msgpack: $(MSGPACK_INCLUDE_DIR) | ||
| # install_name_tool -id $(CURDIR)/msgpack/lib/libmsgpackc.dylib $(CURDIR)/msgpack/lib/libmsgpackc.dylib | ||
|
|
||
| endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,4 +109,3 @@ DataConstRef MPPMessage::as_dict_() const { | |
| } | ||
|
|
||
| } } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -385,4 +385,3 @@ TEST_F(libmuscle_communicator2, test_shutdown) { | |
|
|
||
| ASSERT_TRUE(expected_receivers.empty()); | ||
| } | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.