-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
@patriotyk Do you remember, why you've changed it to static? |
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.
As far as I can tell from the history, it was done out of necessity for the Debian build. It probably did not need to be applied everywhere.
That said, we should test this in meta-updater before merging just to be sure there aren't any unexpected consequences.
@@ -42,8 +42,8 @@ configure_file(CTestCustom.cmake CTestCustom.cmake) | |||
|
|||
unset(AKTUALIZR_CHECKED_SRCS CACHE) | |||
|
|||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) |
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.
That isn't the default?
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 property is True by default for SHARED and MODULE library targets and False otherwise.
I would like to avoid compiling differently depending on If we really need special compilation options for a particular target, it could be done through |
@lbonn Good point, I agree that this compilation option shouldn't change how the whole project is built. |
Probably not. Let's see how far we can get without it. |
c5adb40
to
c4c66d0
Compare
Codecov Report
@@ Coverage Diff @@
## master #1067 +/- ##
==========================================
+ Coverage 75.21% 75.23% +0.02%
==========================================
Files 154 154
Lines 8901 8901
==========================================
+ Hits 6695 6697 +2
+ Misses 2206 2204 -2
Continue to review full report at Codecov.
|
c4c66d0
to
139d472
Compare
@patrickvacek I've built a rocko qemu image with this aktualizr version and it works, the device was provisioned successfully. |
libboost-regex1.65.1 \ | ||
libboost-system1.65.1 \ | ||
libboost-test1.65.1 \ | ||
libboost-thread1.65.1 \ |
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.
Why random and regex? I thought we didn't use those anymore.
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.
@patrickvacek I simply took it from the Dockerfile.ubuntu.bionic
. If we don't use it, then it should be also deleted there, I guess.
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.
We still use random
in Utils.Base64RoundTrip test, but looks like regex could be deleted.
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.
The is no point in using boost::random
over std::random
there, so I'll try to remove it as well.
Signed-off-by: Eugene Smirnov <[email protected]>
Signed-off-by: Eugene Smirnov <[email protected]>
139d472
to
e7d4546
Compare
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.
I'm happy to get rid of statically linking boost too.
By the way, do we still have users on debian? Our debian support seems quite rudimental TBH.
Not to my knowledge. It's mostly just useful for testing and demonstration these days. We could consider getting rid of it if the maintenance burden is too high, but it hasn't seemed too bad so far. To be clear, the debian releases of garage-deploy are in use, it's just the debian package manager in libaktualizr that is unused. |
I'm not sure if we should keep linking with static libraries for the debian case, or make it dynamic everywhere.
This might also break meta-updater due to changed run-time dependencies.
Otherwise, I see no benefits in linking boost statically.