-
Notifications
You must be signed in to change notification settings - Fork 61
Give better names to shared libraries #1564
Conversation
Note: it will require an update on meta-updater |
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.
Does this change the linking at all, or is cmake smart enough to sort it out automatically?
What do you mean by "change the linking"? We now have:
So:
|
Use set_target_properties so that we don't confuse the name of library and executable targets. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
b582978
to
35fe41a
Compare
Can we use |
You actually answered exactly what I was looking for in your comment ("Note: it will require an update on meta-updater") but I didn't see it somehow. :) I assume https://github.com/advancedtelematic/libaktualizr-demo-app will also need an update. |
Codecov Report
@@ Coverage Diff @@
## master #1564 +/- ##
=========================================
- Coverage 82.14% 82.1% -0.05%
=========================================
Files 189 189
Lines 11840 11840
=========================================
- Hits 9726 9721 -5
- Misses 2114 2119 +5
Continue to review full report at Codecov.
|
Yes, agree, I think it will be the correct way to do it in the formula and I'll try to do it. In any case feel free to merge this change since it won't impact the formula anyway since it builds & installs 2020.2 version. |
Ok great, then I think it's close to be ready. Just one question remains IMO is whether we should also care about versions in .so names, like what is done on a typical distribution (ie: As a system typically contains only one application (or two including aktualizr-info) linking with these .so, I would say it's probably fine in the current state? |
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.
Just one question remains IMO is whether we should also care about versions in .so names, like what is done on a typical distribution (ie:
libaktualizr.so.0
,libaktualizr.so.2019.2
...).As a system typically contains only one application (or two including aktualizr-info) linking with these .so, I would say it's probably fine in the current state?
Interesting idea. I think I agree that for now it shouldn't be necessary, though.
Effectively, customers do not have a mean to update just aktualizr/libaktualizr, they are updated via updating an overall ostree-based rootfs, so the packaging unit is at an ostree revision which means that this library versioning does not bring much value. On a flip side, versioning of libaktualizr could clearly designate what version it is actually is. BTW, perhaps it makes sense to consider updating of aktualizr without a need in bitbaking an overall rootfs for each device, so customers will have much simpler way to update it. |
Use set_target_properties so that we don't confuse the name of library
and executable targets.