-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
build: fix test for subid 4 #12655
build: fix test for subid 4 #12655
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c84a2c4
to
2539d91
Compare
hack/libsubid_tag.sh
Outdated
@@ -9,7 +9,11 @@ cc -o "$tmpdir"/libsubid_tag -l subid -x c - > /dev/null 2> /dev/null << EOF | |||
#include <shadow/subid.h> | |||
int main() { | |||
struct subid_range *ranges = NULL; | |||
#if SUBID_ABI_MAJOR >= 4j |
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.
a typo? the j
character looks like vi
artifact =)
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.
how have you installed libsubid? I see the need for
Prog
but I don't seeshadow_logfd
defined
nevermind my last comment, I was looking at the wrong version
I still can't get it to link to
here's what works for me: #include <shadow/subid.h>
#include <stdlib.h>
const char *Prog;
FILE *shadow_logfd = NULL;
int main() {
struct subid_range *ranges = NULL;
#if SUBID_ABI_MAJOR >= 4
subid_get_uid_ranges("root", &ranges);
#else
get_subuid_ranges("root", &ranges);
#endif
free(ranges);
return 0;
} |
how have you installed libsubid? I see the need for |
libsubid changes its ABI in version 4. Account for the different name in the configure script. Closes: https://github.com/containers/podman/issues/12654 [NO NEW TESTS NEEDED] it is a change in the build script Signed-off-by: Giuseppe Scrivano <[email protected]>
Signed-off-by: Giuseppe Scrivano <[email protected]>
yeah it's here:
include too:
|
52908a8
to
3570c38
Compare
some dumps, might be helpful
|
could you please give a try to the latest version? |
sorry I missed "how" question shadow is installed via package manager (portage on gentoo linux) |
getting this, seems to be coming from storage
|
yes, this is fixed with: containers/storage#1089 |
LGTM |
/lgtm |
libsubid changes its ABI in version 4. Account for the different name
in the configure script.
Closes: https://github.com/containers/podman/issues/12654
Signed-off-by: Giuseppe Scrivano [email protected]