Skip to content
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

Use release version instead of libtool version in Makefile #10355

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

deannagarcia
Copy link
Member

Fixes #10323

@@ -18,7 +18,7 @@ else
PTHREAD_DEF =
endif

PROTOBUF_VERSION = 32:4:0
PROTOBUF_VERSION = 3.21.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to udpate the update_version.py to hit this line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep but needs to happen internally, I have filed a bug and CL will come soon.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use -release ${PACKAGE_VERSION} at which point only configure.ac needs updating.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is PACKAGE_VERSION set?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either of the two answers should help:

AC_INIT([Protocol Buffers],[3.21.4],[protobuf@googlegroups.com],[protobuf])
                            ^^^^^^

or

grep -r PACKAGE_VERSION /usr/share/aut*
/usr/share/autoconf/autoconf/general.m4:AC_SUBST([PACKAGE_VERSION],

it's implied.

@acozzette
Copy link
Member

I think we also need to make the corresponding change for CMake. libprotobuf.cmake, libprotobuf-lite.cmake, and libprotoc.cmake all set SOVERSION and it looks like we could probably update them to set VERSION instead: https://cmake.org/cmake/help/latest/prop_tgt/VERSION.html

@deannagarcia
Copy link
Member Author

I think we also need to make the corresponding change for CMake. libprotobuf.cmake, libprotobuf-lite.cmake, and libprotoc.cmake all set SOVERSION and it looks like we could probably update them to set VERSION instead: https://cmake.org/cmake/help/latest/prop_tgt/VERSION.html

I made this change but I'm going to hold on submitting until we talk about whether protoc should share cpp's major version or have its own.

@deannagarcia deannagarcia merged commit 08265df into protocolbuffers:main Aug 9, 2022
bithium pushed a commit to bithium/protobuf that referenced this pull request Sep 4, 2023
…rsion

Use release version instead of libtool version in Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release 21.3 broke ABI, ironically because of #10271
4 participants