-
Notifications
You must be signed in to change notification settings - Fork 186
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
CFE-4274: Have protocol_test
depend explicitly on libsystemd
#5075
Conversation
I think the issue is that you have Our github action "unit_test" is failing because we don't install Can you try out this diff instead of your fix?
|
Yes-- that works for me, @craigcomstock; want me to cut a new PR/update this one? |
Yes, please do update this PR. I expect the checks will pass and we can merge. Thanks! |
ede8a30
to
12c2e44
Compare
Updated, @craigcomstock -- thanks for the help. |
Goodness @sp1ff looks like we let this one get rather stale. How's it going? I will try and re-run the github checks and see where we are at by looking at the current change set. |
@cf-bottom jenkins please :) @sp1ff this will cause a pretty thorough run on our internal CI system and should give us an idea where we are at. I suppose you could push an empty commit here to bump github actions into re-running. |
Sure, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/9633/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-9633/ |
looks like our canaries: rhel7 hub and agent and ubuntu 20 all failed with the current PR
I'll take a look when I can and see if I can fix this up. |
198e653
to
f26807c
Compare
Apologies, @craigcomstock ... life got busy. I rebased this PR & pushed it up-- let's see what happens now. |
No worries! Thanks so much for coming back and trying some more. |
f26807c
to
f3f05e7
Compare
protocol_test
depend explicitly on libsystemdprotocol_test
depend explicitly on libsystemd
@sp1ff looks like the push 5 days ago still doesn't pass tests. I have created a ticket: https://northerntech.atlassian.net/browse/CFE-4274 and assigned it to myself so we can get this done. Thanks for the continued attention here. Appreciate it. |
installed; thanks @craigcomstock for the proper fix. `protocol_test` needs `sd_notify()` regardless of the `--with-systemd-service` configuration option.
f3f05e7
to
6a26442
Compare
@sp1ff I looked at this for a bit today. I started at the beginning and it seems like the "easiest" workaround is to use
It seems our configure.ac doesn't coordinate things quite enough. I will research wether it makes sense to assume --with-systemd-socket=no if --with-systemd-service=no. Seems reasonable but want to make sure. Thanks for your patience and hope you are well. |
Looking at this a bit more I think we have two separate items, from
and
I could see wanting systemd service and not the systemd socket. I can't think of a reason we would want systemd socket support without systemd services. I will make this dependency in configure.ac and hopefully this will make it easier to handle. if --with-systemd-socket=yes then force --with-systemd-service=yes Of course this also assumes that libsystemd-dev package or similar is available if you choose systemd stuff. The problem for you was that the --with-systemd-socket defaults to yes regardless of presence of libsystemd-dev or --with-system-service=no. |
didn't want to squash your work here or our conversation so created a new PR with my idea. Will see if it sticks. :) |
@craigcomstock thanks for taking a look! |
Sure-- will give it a try this evening.
Craig Comstock ***@***.***> writes:
… @sp1ff can you try out the changes I made in #5425 ? They are
passing CI and I think they should "work" in
your case. If so we can merge that one and close this one. :)
Thanks again for the contribution.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
--
Michael ***@***.***>
|
@craigcomstock wfm! Thank you very much. |
Awesome. The fix is merged in master and our maintenance branches: 3.18.x and 3.21.x. Be well and thanks again for the notice and contribution. |
On Debian, when I configure with argument
--with-systemd-service=no
, the unit testprotocol_test
fails to build with a link-time error:This change makes
protocol_test
depend unconditionally onlibsystemd
. TBH I'm not sure this is the proper way to fix this; submitting my local fix for posterity's sake as much as anything else.