-
Notifications
You must be signed in to change notification settings - Fork 185
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
Fixes for libntech without GPL code #5282
Conversation
f0f50c7
to
b60f2e5
Compare
3607096
to
c59864b
Compare
b756bc3
to
062ae93
Compare
Thank you for submitting a PR! Maybe @olehermanse can review this? |
062ae93
to
d4834dc
Compare
Because libntech uses our config.h.
045ead3
to
beffbb2
Compare
c4245ab
to
39017ac
Compare
With GPL-licensed code taken from libntech/libcompat. This also means that we have to leave all the function-replacing macros to libntech/configure, but that's the correct thing to do because libcompat is part of libntech and so libntech/configure actually determines which fuctions/code will be part of libcompat. The only exception are the *printf() functions because their replacements are handled by special macros (see m4/snprintf.m4 for gore details) and we need those bits to happen in this repo too.
So that we can make decisions based on it in our Makefile.am files.
We have a wrapper function that checks that memory allocation was successful. Plus our function is available in our header file and in our utility library for the linker so we don't have to bother (in this code) where it comes from.
It could be used to print data from the process' memory. Not really important in cf-testd, but we should stick to good and safe coding practices anyway.
39017ac
to
caa27a3
Compare
@cf-bottom jenkins with exotics, please |
Sure, I triggered a build: (with exotics) Jenkins: https://ci.cfengine.com/job/pr-pipeline/9632/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-9632/ |
@cf-bottom jenkins with exotics, please |
c518db0
to
b2c8966
Compare
b2c8966
to
a43e382
Compare
Our version may not be 100 % compatible or at least not 100 % optimal for the given system.
a43e382
to
76f1f02
Compare
Alright, I triggered a build: (with exotics) Jenkins: https://ci.cfengine.com/job/pr-pipeline/9651/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-9651/ |
Merge together:
#5282
NorthernTechHQ/libntech#186