libtirpc: add support for configuring and building with --enable-gssapi
PATCH 1/2 libtirpc: add support for configuring and building with --enable-gssapi
nfs-utils with gss and svcgss has libtirpc configured with gssapi option as a dependency.
--- meta/recipes-extended/libtirpc/libtirpc_1.3.1.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-extended/libtirpc/libtirpc_1.3.1.bb +5 -1
@@ -18,7 +18,11 @@ SRC_URI[sha256sum] = "245895caf066bec5e3d4375942c8cb4366adad184c29c618d97f724ea3 inherit autotools pkgconfig -EXTRA_OECONF = "--disable-gssapi" +PACKAGECONFIG ??= "\ + ${@bb.utils.filter('DISTRO_FEATURES', 'krb5', d)} \ +" +# krb5 is available in meta-oe +PACKAGECONFIG[krb5] = "--enable-gssapi,--disable-gssapi,krb5" do_install_append() { chown root:root ${D}${sysconfdir}/netconfig
Signature · 1 line
2.42.0
PATCH 2/2 nfs-utils: add krb5 PACKAGECONFIG to allow building with gss and svcgss
When building nfs-utils with gss and svcgss if the Host OS has krb5 development package build works, but it looks like a host pollution.
--- ...with-enable-gss-enable-svcgss-option.patch | 52 +++++++++++++++++++ .../nfs-utils/nfs-utils_2.5.3.bb | 5 +- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Enable-building-with-enable-gss-enable-svcgss-option.patch
meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Enable-building-with-enable-gss-enable-svcgss-option.patch new file +52 -0
@@ -0,0 +1,52 @@ +From d4494617c98fdf4e956d74ce34b847a46ff36e0d Mon Sep 17 00:00:00 2001 +From: Stefan Ghinea <[email protected]> +Date: Wed, 11 Oct 2023 22:36:32 +0300 +Subject: [PATCH] Enable building with --enable-gss --enable-svcgss options in + Yocto + +With $dir being used as base search for both libgssapi and krb5-config, in +Yocto krb5-config is found in $dir/bin/crossscripts instead of $dir/bin so +add this to the search posibillities relative to $dir. +Remove check for needing to set -rpath in KRBLDFLAGS. + +Upstream-Status: Inappropriate [oe-core specific] + +Signed-off-by: Stefan Ghinea <[email protected]> +--- + aclocal/kerberos5.m4 | 13 ++----------- + 1 file changed, 2 insertions(+), 11 deletions(-) + +diff --git a/aclocal/kerberos5.m4 b/aclocal/kerberos5.m4 +index bf0e88b..ba683eb 100644 +--- a/aclocal/kerberos5.m4 ++++ b/aclocal/kerberos5.m4 +@@ -24,6 +24,8 @@ AC_DEFUN([AC_KERBEROS_V5],[ + K5CONFIG="" + if test -f $dir/bin/krb5-config; then + K5CONFIG=$dir/bin/krb5-config ++ elif test -f $dir/bin/crossscripts/krb5-config; then ++ K5CONFIG=$dir/bin/crossscripts/krb5-config + elif test -f "/usr/kerberos/bin/krb5-config"; then + K5CONFIG="/usr/kerberos/bin/krb5-config" + elif test -f "/usr/lib/mit/bin/krb5-config"; then +@@ -71,17 +73,6 @@ AC_DEFUN([AC_KERBEROS_V5],[ + fi + AC_MSG_RESULT($KRBDIR) + +- dnl Check if -rpath=$(KRBDIR)/lib is needed +- echo "The current KRBDIR is $KRBDIR" +- if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \ +- -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then +- KRBLDFLAGS=""; +- elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then +- KRBLDFLAGS=""; +- else +- KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib" +- fi +- + dnl Now check for functions within gssapi library + AC_CHECK_LIB($gssapi_lib, gss_krb5_export_lucid_sec_context, + AC_DEFINE(HAVE_LUCID_CONTEXT_SUPPORT, 1, [Define this if the Kerberos GSS library supports gss_krb5_export_lucid_sec_context]), ,$KRBLIBS) +-- +2.42.0 +
meta/recipes-connectivity/nfs-utils/nfs-utils_2.5.3.bb +4 -1
@@ -30,6 +30,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x file://bugfix-adjust-statd-service-name.patch \ file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ file://clang-warnings.patch \ + file://0001-Enable-building-with-enable-gss-enable-svcgss-option.patch \ " SRC_URI[sha256sum] = "b54d6d8ea2ee62d64111278301ba4631b7bb19174e7f717a724fe5d463900c80"
@@ -53,7 +54,6 @@ EXTRA_OECONF = "--with-statduser=rpcuser \ --enable-mountconfig \ --enable-libmount-mount \ --enable-uuid \ - --disable-gss \ --disable-nfsdcltrack \ --with-statdpath=/var/lib/nfs/statd \ --with-rpcgen=${HOSTTOOLS_DIR}/rpcgen \
@@ -61,6 +61,7 @@ EXTRA_OECONF = "--with-statduser=rpcuser \ PACKAGECONFIG ??= "tcp-wrappers \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'krb5', 'nfsv4 krb5', '', d)} \ " PACKAGECONFIG_remove_libc-musl = "tcp-wrappers" PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers,tcp-wrappers"
@@ -69,6 +70,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," PACKAGECONFIG[nfsv41] = "--enable-nfsv41,--disable-nfsv41,libdevmapper,libdevmapper" # keyutils is available in meta-oe PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils,python3-core" +# krb5 is available in meta-oe +PACKAGECONFIG[krb5] = "--enable-gss --enable-svcgss --with-krb5=${STAGING_DIR_HOST}/usr,--disable-gss,krb5" PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats"
Signature · 1 line
2.42.0
Patchtest results for [OE-core] [hardknott] [PATCH 2/2] nfs-utils: add krb5 PACKAGECONFIG to allow building with gss and svcgss
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/hardknott-2-2-nfs-utils-add-krb5-PACKAGECONFIG-to-allow-building-with-gss-and-svcgss.patch
FAIL: test shortlog length: Edit shortlog so that it is 90 characters or less (currently 95 characters) (test_mbox.TestMbox.test_shortlog_length)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
Patchtest results for [OE-core] [hardknott] [PATCH 1/2] libtirpc: add support for configuring and building with --enable-gssapi
In reply to Stefan GhineaThank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/hardknott-1-2-libtirpc-add-support-for-configuring-and-building-with---enable-gssapi.patch
FAIL: test shortlog length: Edit shortlog so that it is 90 characters or less (currently 95 characters) (test_mbox.TestMbox.test_shortlog_length)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
Is this for hardknott? That release isn't maintained anymore.
Thanks,
Anuj
Quoted 40 lines · Stefan Ghinea via lists.openembedded.org
nfs-utils with gss and svcgss has libtirpc configured with gssapi option
as a dependency.Signed-off-by Stefan Ghinea <[email protected]>---
meta/recipes-extended/libtirpc/libtirpc_1.3.1.bb | 6 +++++-1 file changed, 5 insertions(+), 1 deletion(-)meta/recipes-extended/libtirpc/libtirpc_1.3.1.bb +0
-0@@ -18,7 +18,11 @@ SRC_URI[sha256sum] ="
245895caf066bec5e3d4375942c8cb4366adad184c29c618d97f724ea3
inherit autotools pkgconfigmeta/recipes-extended/libtirpc/libtirpc_1.3.1.bb +5
-1-EXTRA_OECONF = "--disable-gssapi" +PACKAGECONFIG ??= "\ + ${@bb.utils.filter('DISTRO_FEATURES', 'krb5', d)} \ +" +# krb5 is available in meta-oe +PACKAGECONFIG[krb5] = "--enable-gssapi,--disable-gssapi,krb5"
do_install_append() {
chown root:root ${D}${sysconfdir}/netconfig-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#190931):
https://lists.openembedded.org/g/openembedded-core/message/190931
Mute This Topic: https://lists.openembedded.org/mt/102716185/3616702
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-core/unsub [
[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-