Skip to content

Change the version of the library to 1.3 #1296

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

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

StefanPalashev
Copy link
Contributor

@StefanPalashev StefanPalashev commented Apr 10, 2025

Change the CMakeLists.txt to produce a symlink with a generic name that points to the latest major version.

The build output will now look like this:

libhiredis.so -> libhiredis.so.1*
libhiredis.so.1* -> libhiredis.so.1.3.0*
libhiredis.so.1.3.0*

This would allow for seamless minor version updates.

@StefanPalashev StefanPalashev requested a review from uglide April 10, 2025 12:49
@StefanPalashev StefanPalashev force-pushed the change-the-version-to-1.3 branch 2 times, most recently from b36e58a to 7cc7330 Compare April 14, 2025 10:09
Copy link
Collaborator

@michael-grunder michael-grunder left a comment

Choose a reason for hiding this comment

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

I did some searching around and it seems like very few libraries actually define the SONAME in their headers like we do in hiredis.

Maybe the way to go is to drop the soname define in hiredis.h and just use the major version to construct the SONAME in both CMakeLists.txt and Makefile?

That said, I pulled this change and built hiredis and it works well, so if we don't want to remove the SONAME this change is fine with me.

@StefanPalashev StefanPalashev changed the title [Draft] Change the version of the library to 1.3 Change the version of the library to 1.3 Apr 15, 2025
@StefanPalashev StefanPalashev marked this pull request as ready for review April 15, 2025 07:35
@StefanPalashev StefanPalashev force-pushed the change-the-version-to-1.3 branch from 7cc7330 to e634eb1 Compare April 22, 2025 12:21
Copy link
Collaborator

@michael-grunder michael-grunder left a comment

Choose a reason for hiding this comment

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

LGTM

Change the CMakeLists.txt to produce a symlink with
a generic name that points to the latest major version.

The build output will now look like this:
libhiredis.so -> libhiredis.so.1*
libhiredis.so.1* -> libhiredis.so.1.3.0*
libhiredis.so.1.3.0*

This would allow for seamless minor version updates.
@StefanPalashev
Copy link
Contributor Author

All of the comments have been resolved by applying the suggested changes.

@StefanPalashev StefanPalashev merged commit ccad7eb into master Apr 23, 2025
24 checks passed
@uglide uglide mentioned this pull request Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants