sssd: disable build secrets
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · kai
From: Kai Kang <[email protected]>
It requires
http_parser.hto build secrets:| configure: error: | You must have the header file http_parser.h installed to build sssd | with secrets responder. If you want to build sssd without secret responder | then specify --without-secrets when running configure.
Quoted 6 lines
The header file is from package http-parser[1] rather than apache2. But there is no recipe http-parser in openembedded. So disable build secrets for sssd and remove related systemd service and socket files.
Reference:
1. https://github.com/nodejs/http-parser
Ping.
Quoted 47 lines
Signed-off-by Kai Kang <[email protected]>--- recipes-security/sssd/sssd_1.16.4.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)recipes-security/sssd/sssd_1.16.4.bb +3
-4@@ -39,8 +39,7 @@ PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', PACKAGECONFIG[autofs] = "--with-autofs, --with-autofs=no" PACKAGECONFIG[crypto] = "--with-crypto=libcrypto, , libcrypto" -PACKAGECONFIG[curl] = "--with-secrets --with-kcm, --without-secrets --without-kcm, curl jansson" -PACKAGECONFIG[http] = "--with-secrets, --without-secrets, apache2" +PACKAGECONFIG[curl] = "--with-kcm, --without-kcm, curl jansson" PACKAGECONFIG[infopipe] = "--with-infopipe, --with-infopipe=no, " PACKAGECONFIG[manpages] = "--with-manpages, --with-manpages=no" PACKAGECONFIG[nl] = "--with-libnl, --with-libnl=no, libnl"@@ -60,6 +59,7 @@ EXTRA_OECONF += " \ --without-python2-bindings \ --enable-pammoddir=${base_libdir}/security \ --without-python2-bindings \ + --without-secrets \ " do_configure_prepend() {@@ -85,6 +85,7 @@ do_install () { # Remove /var/run as it is created on startup rm -rf ${D}${localstatedir}/run + rm -f ${D}${systemd_system_unitdir}/sssd-secrets.* } pkg_postinst_ontarget_${PN} () {@@ -109,8 +110,6 @@ SYSTEMD_SERVICE_${PN} = " \ sssd-pam-priv.socket \ sssd-pam.service \ sssd-pam.socket \ - sssd-secrets.service \ - sssd-secrets.socket \ sssd.service \ " SYSTEMD_AUTO_ENABLE = "disable"
Signature · 2 lines
Kai Kang Wind River Linux
Quoted 10 lines · kai
Quoted 9 lines · kai
From: Kai Kang <[email protected]>
It requires
http_parser.hto build secrets:| configure: error: | You must have the header file http_parser.h installed to build sssd | with secrets responder. If you want to build sssd without secret responder | then specify --without-secrets when running configure.
Quoted 9 lines
Quoted 6 lines
The header file is from package http-parser[1] rather than apache2. But there is no recipe http-parser in openembedded. So disable build secrets for sssd and remove related systemd service and socket files.
Reference:
1. https://github.com/nodejs/http-parserPing.
Ah, yes thanks.
merged.
- armin
Quoted 52 lines
Quoted 46 lines
Signed-off-by Kai Kang <[email protected]>--- recipes-security/sssd/sssd_1.16.4.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)recipes-security/sssd/sssd_1.16.4.bb +0
-0@@ -39,8 +39,7 @@ PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd',PACKAGECONFIG[autofs] = "--with-autofs, --with-autofs=no"
PACKAGECONFIG[crypto] = "--with-crypto=libcrypto, , libcrypto"recipes-security/sssd/sssd_1.16.4.bb +3
-4-PACKAGECONFIG[curl] = "--with-secrets --with-kcm, --without-secrets --without-kcm, curl jansson" -PACKAGECONFIG[http] = "--with-secrets, --without-secrets, apache2" +PACKAGECONFIG[curl] = "--with-kcm, --without-kcm, curl jansson" PACKAGECONFIG[infopipe] = "--with-infopipe, --with-infopipe=no, " PACKAGECONFIG[manpages] = "--with-manpages, --with-manpages=no" PACKAGECONFIG[nl] = "--with-libnl, --with-libnl=no, libnl"@@ -60,6 +59,7 @@ EXTRA_OECONF += " \ --without-python2-bindings \ --enable-pammoddir=${base_libdir}/security \ --without-python2-bindings \ + --without-secrets \ " do_configure_prepend() {@@ -85,6 +85,7 @@ do_install () { # Remove /var/run as it is created on startup rm -rf ${D}${localstatedir}/run + rm -f ${D}${systemd_system_unitdir}/sssd-secrets.* } pkg_postinst_ontarget_${PN} () {@@ -109,8 +110,6 @@ SYSTEMD_SERVICE_${PN} = " \ sssd-pam-priv.socket \ sssd-pam.service \ sssd-pam.socket \ - sssd-secrets.service \ - sssd-secrets.socket \ sssd.service \ " SYSTEMD_AUTO_ENABLE = "disable"Signature · 2 lines
Kai Kang Wind River Linux