-
Notifications
You must be signed in to change notification settings - Fork 42
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
Rework libintern #1312
Rework libintern #1312
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable!
problem: the cmake-provided boost finder is deprecated in favor of the one upstream in boost starting in 1.70 solution: since we support 1.66 and up, attempt to use the upstream config (use the CONFIG flag on the find_package call), and only if that fails use the one included with cmake
problem: on my OpenSUSE dev vm, the install directory is forced pretty hard to use lib64 solution: allow lib64 as a valid path for libraries, packageconfigs and modules
problem: the libintern so wasn't being versioned, causing problems on upgrades, see flux-framework#1308 solution: the real dependency should be on libfluxion-data anyway, which was closer to how we wanted it. The libintern library is now built static, linked into libfluxion-data, and provided that way. Additionally, the libfluxion-data library is installed as `libfluxion-data.so.{version without git suffix}` and linked as `libfluxion-data.so.{version major}.{version minor}` with no unsuffixed link installed.
ee59d71
to
58458db
Compare
@grondo, I think this covers the issue, but want to run it by you before we finalize it. |
This is what I get when I build it:
That seems OK to me? |
That's what I was shooting for, so we could update on patch if we want to but will multi-version on possibly breaking changes (which right now means minor versions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks good to me.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1312 +/- ##
======================================
Coverage 75.2% 75.2%
======================================
Files 111 111
Lines 15983 15983
======================================
Hits 12032 12032
Misses 3951 3951 |
intern: fold into fluxion-data and version the so
problem: the libintern so wasn't being versioned, causing problems on
upgrades, see #1308
solution: the real dependency should be on libfluxion-data anyway, which
was closer to how we wanted it. The libintern library is now built
static, linked into libfluxion-data, and provided that way.
Additionally, the libfluxion-data library is installed as
libfluxion-data.so.{version without git suffix}
and linked aslibfluxion-data.so.{version major}.{version minor}
with no unsuffixedlink installed.
The other two commits here are small fixes that I ran into needing to fix warnings in the cmake build and load properly on my tumbleweed vm.
fixes #1308