diff options
| author | gael.portay@rtone.fr <gael.portay@rtone.fr> | 2024-10-25 10:22:36 +0200 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2024-11-24 20:19:50 -0500 |
| commit | 6d3470db95393ac1241e0431797d821e08a96e01 (patch) | |
| tree | 87934c4619ba870e583f9e42b0e7f4f697fac4df | |
| parent | 660f9f1e7f2925fb30db4e420e4f1219431cb7da (diff) | |
| download | meta-security-6d3470db95393ac1241e0431797d821e08a96e01.tar.gz | |
sssd: fix issue if build machine is Debian
The configure script guesses the target system from the host if no
--with-os= is set[1]. It is untrue if cross-compiling.
The guessed host operating system is used then to do specific things
fort target build.
The commit[2] passes the downstream debian option --install-layout=deb
to setup.py[3] if the host system is debian based, and thus, it raises
the error attached below as that debian-specific option[4] is not part
of the openembedded[5] world.
This sets the Fedora operating system thanks to the existing configure
option --with-os=fedora, that is relatively sain operating system for
the needs of openembedded.
Fixes:
| (...)/build/tmp/work/aarch64-poky-linux/sssd/2.5.2-r0/build/src/config/setup.py:25: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
| from distutils.core import setup
| usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
| or: setup.py --help [cmd1 cmd2 ...]
| or: setup.py --help-commands
| or: setup.py cmd --help
|
| error: option --install-layout not recognized
| Traceback (most recent call last):
| File "/home/gportay/src/openembedded-tests/build/tmp/work/core2-64-poky-linux/sssd/2.9.2/build/src/config/setup.py", line 25, in <module>
| from distutils.core import setup
| ModuleNotFoundError: No module named 'distutils'
Note: Upstream has introduced the "unknown" operating systemd with the
upcoming version 2.10.0[6][7]. The change can be backported.
[1]: https://github.com/SSSD/sssd/blob/2.5.2/src/external/platform.m4#L1-L31
[2]: https://github.com/SSSD/sssd/commit/e6ae55d5423434d5dc6c236e8647b33610d30e2e
[3]: https://github.com/SSSD/sssd/blob/2.5.2/Makefile.am#L32-L35
[4]: https://sources.debian.org/patches/setuptools/68.1.2-2/install-layout.diff/#L7
[5]: https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb?h=kirkstone
[6]: https://github.com/SSSD/sssd/commit/7b32dc0ab877a9061b52868b8efe6866c3144b63
[7]: https://github.com/SSSD/sssd/pull/7398
Signed-off-by: Gaƫl PORTAY <gael.portay+rtone@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb b/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb index 16e1c24..6a74a51 100644 --- a/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb +++ b/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb | |||
| @@ -69,6 +69,7 @@ EXTRA_OECONF += " \ | |||
| 69 | --enable-pammoddir=${base_libdir}/security \ | 69 | --enable-pammoddir=${base_libdir}/security \ |
| 70 | --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \ | 70 | --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \ |
| 71 | --with-pid-path=/run \ | 71 | --with-pid-path=/run \ |
| 72 | --with-os=fedora \ | ||
| 72 | " | 73 | " |
| 73 | 74 | ||
| 74 | do_configure:prepend() { | 75 | do_configure:prepend() { |
