Commit Graph

28 Commits

Author SHA1 Message Date
Etienne Cordonnier c5a8eddd99 uutils-coreutils: fix selinux PACKAGECONFIG option
This does not compile any more after https://git.openembedded.org/openembedded-core/commit/?id=16745b20452de60ae2474433cc1a2fb1ed9f6a64
which appends the contents of PACKAGECONFIG_CONFARGS to the cargo build command.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-15 12:52:17 -07:00
Richard Purdie eac1f5b9c0 recipes: Fix variable assignment whitespace
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-20 08:46:56 -07:00
Etienne Cordonnier 468e751adb uutils-coreutils: upgrade 0.0.29 -> 0.0.30
See https://github.com/uutils/coreutils/releases/tag/0.0.30

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-10 09:41:46 -07:00
Etienne Cordonnier 1d43511321 uutils-coreutils: disable stdbuf compilation
There is a bug in uutils-coreutils causing stdbuf to include the HOST version of libstdbuf.so, even when cross-compiled.
As a side-effect, the uutils-coreutils binary was containing the buildpath, because RPATH was set on libstdbuf.so.
Thus the buildpath error can be re-enabled.

This is tracked upstream by https://github.com/uutils/coreutils/issues/6591

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Co-authored-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-08 15:04:57 -08:00
Martin Jansa 9b4dfdb14f uutils-coreutils: remove LIBCLANG_PATH, SELINUX_LIB_DIR, SELINUX_INCLUDE_DIR variables
* don't seem to be needed, I don't see any failures or changes after removing them

* they were needed before in older version as explained by Etienne in:
  https://lists.openembedded.org/g/openembedded-devel/message/115756

regarding SELINUX_INCLUDE_DIR, it was definitely needed as I implemented the recipe. During implementation I submitted this patch to selinux-sys ( https://github.com/koutheir/selinux-sys/commit/a6667c404ecc33266f66e9516bb8e30150c41ec2 ) to correctly use this variable, and was getting a build error without this fix because the rust crate selinux-sys was not finding the selinux header-file (specifically, the bindgen tool).

However, this was in 2022, and since then there has been this patch in selinux-sys: https://github.com/koutheir/selinux-sys/commit/d3ea4674e18c5240918348bea4ec6248e50516e5 , and it seems that the variable is not needed any more.
At least I'm not able to reproduce the build error which I was getting, even with commenting out SELINUX_LIB_DIR and SELINUX_INCLUDE_DIR.

The header-file is used for generating rust code from the C header-file using bindgen, so I don't think it makes a difference whether the native version or the target version is used.

This is the old build error I was getting:
  process didn't exit successfully: `/workdir/build/tmp-glibc/work/armv8a-linux/uutils-coreutils/0.0.14.AUTOINC+43a5b8c7d7-r0/build/target/release/build/selinux-sys-0849198bc1fef4a4/build-script-build` (exit status: 101)
  --- stdout
  cargo:root=/workdir/build/tmp-glibc/work/armv8a-linux/uutils-coreutils/0.0.14.AUTOINC+43a5b8c7d7-r0/build/target/aarch64-snap-linux/release/build/selinux-sys-d96748d49908959f/out
  cargo:rerun-if-env-changed=SELINUX_STATIC_aarch64-snap-linux
  cargo:rerun-if-env-changed=SELINUX_STATIC_aarch64_snap_linux
  cargo:rerun-if-env-changed=TARGET_SELINUX_STATIC

|   --- stderr
|   src/selinux-sys.h:1:10: fatal error: 'selinux/selinux.h' file not found
|   src/selinux-sys.h:1:10: fatal error: 'selinux/selinux.h' file not found, err: true

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-06 06:58:00 -08:00
Martin Jansa e35b6e146b uutils-coreutils: use correct variables
* use STAGING_LIBDIR_NATIVE variable for LIBCLANG_PATH and SELINUX_LIB_DIR
  and STAGING_INCDIR_NATIVE variable for SELINUX_INCLUDE_DIR
  not sure why it uses native version and not target, but at least use
  correct variable

* hardcoding:
  ${WORKDIR}/recipe-sysroot-native${libdir}
  is just wrong when there is a better variable

* This path won't be correct for multilib builds where target ${libdir}
  might be e.g. /usr/lib32 while native libdir is /usr/lib.

* even with meta-selinux added to my builds I don't see any failure
  maybe these variables aren't really used?

* use STAGING_LIBDIR_NATIVE variable which uses correct ${libdir_native}

OE qemuarm64-multilib@ /OE/build/oe-core $ bitbake-getvar LIBCLANG_PATH -r uutils-coreutils
  #
  # $LIBCLANG_PATH [2 operations]
  #   exported /OE/build/oe-core/meta-openembedded/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.29.bb:33
  #     [export] "1"
  #   set /OE/build/oe-core/meta-openembedded/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.29.bb:33
  #     "${WORKDIR}/recipe-sysroot-native${libdir}"
  # pre-expansion value:
  #   "${WORKDIR}/recipe-sysroot-native${libdir}"
export LIBCLANG_PATH="/OE/build/oe-core/tmp/work/cortexa57-oe-linux/uutils-coreutils/0.0.29/recipe-sysroot-native/usr/lib64"

OE qemuarm64-multilib@ /OE/build/oe-core $ bitbake-getvar STAGING_LIBDIR_NATIVE -r uutils-coreutils
  #
  # $STAGING_LIBDIR_NATIVE
  #   set /OE/build/oe-core/openembedded-core/meta/conf/bitbake.conf:425
  #     "${STAGING_DIR_NATIVE}${libdir_native}"
STAGING_LIBDIR_NATIVE="/OE/build/oe-core/tmp/work/cortexa57-oe-linux/uutils-coreutils/0.0.29/recipe-sysroot-native/usr/lib"

OE qemuarm64-multilib@ /OE/build/oe-core $ bitbake-getvar LIBCLANG_PATH -r lib32-uutils-coreutils
  #
  # $LIBCLANG_PATH [2 operations]
  #   exported /OE/build/oe-core/meta-openembedded/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.29.bb:33
  #     [export] "1"
  #   set /OE/build/oe-core/meta-openembedded/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.29.bb:33
  #     "${WORKDIR}/recipe-sysroot-native${libdir}"
  # pre-expansion value:
  #   "${WORKDIR}/recipe-sysroot-native${libdir}"
export LIBCLANG_PATH="/OE/build/oe-core/tmp/work/armv7at2-neon-oemllib32-linux-gnueabi/lib32-uutils-coreutils/0.0.29/recipe-sysroot-native/usr/lib32"

OE qemuarm64-multilib@ /OE/build/oe-core $ bitbake-getvar STAGING_LIBDIR_NATIVE -r lib32-uutils-coreutils
  #
  # $STAGING_LIBDIR_NATIVE
  #   set /OE/build/oe-core/openembedded-core/meta/conf/bitbake.conf:425
  #     "${STAGING_DIR_NATIVE}${libdir_native}"
STAGING_LIBDIR_NATIVE="/OE/build/oe-core/tmp/work/armv7at2-neon-oemllib32-linux-gnueabi/lib32-uutils-coreutils/0.0.29/recipe-sysroot-native/usr/lib"

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-06 06:58:00 -08:00
Etienne Cordonnier b704ebe7ed uutils-coreutils: upgrade 0.0.28 -> 0.0.29
See https://github.com/uutils/coreutils/releases/tag/0.0.29

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-01-30 07:40:38 -08:00
Wang Mingyu 2866036261 uutils-coreutils: upgrade 0.0.27 -> 0.0.28
Changelog:
 https://github.com/uutils/coreutils/releases/tag/0.0.28

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-19 16:59:15 -08:00
Etienne Cordonnier deca9342ab uutils-coreutils: disable buildpaths error
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-29 20:59:15 -07:00
Etienne Cordonnier a98c30b012 uutils-coreutils: upgrade 0.0.26 -> 0.0.27
See https://github.com/uutils/coreutils/releases/tag/0.0.27

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-27 09:18:47 -07:00
Etienne Cordonnier 88f2955e38 uutils-coreutils: upgrade 0.0.25 -> 0.0.26
See https://github.com/uutils/coreutils/releases/tag/0.0.26

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-02 07:32:55 -07:00
Etienne Cordonnier 2a73de83bf uutils-coreutils: upgrade 0.0.24 -> 0.0.25
See https://github.com/uutils/coreutils/releases/tag/0.0.25

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-02 17:54:03 -07:00
Etienne Cordonnier 0bea9feffc uutils_coreutils: merge .inc and .bb
I initially created a separated .inc file to follow poky's convention, but according to
https://lists.openembedded.org/g/openembedded-core/message/193940 the presence
of unneeded .inc files is only due to historical reasons and there is no need to
follow this convention any more.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-27 09:48:33 -08:00
Etienne Cordonnier 1d125e1779 uutils-coreutils: upgrade 0.0.23 -> 0.0.24
See https://github.com/uutils/coreutils/releases/tag/0.0.24

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-27 09:48:32 -08:00
alperak 3282b78470 uutils-coreutils: upgrade 0.0.22 -> 0.0.23
Changelog:

https://github.com/uutils/coreutils/releases/tag/0.0.23

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-17 11:38:25 -08:00
Etienne Cordonnier b3f085e6a2 uutils-coreutils: upgrade 0.0.21 -> 0.0.22
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-24 09:08:45 -07:00
Etienne Cordonnier 074fb0411d uutils-coreutils: upgrade 0.0.20 -> 0.0.21
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-11 08:25:05 -07:00
Sourav Kumar Pramanik 3da59b8a8a meta-oe-components: Avoid usage of nobranch=1
The usage of nobranch=1 in SRC_URI allows using unprotected branches.

This change updates the real branch name in place of nobranch=1 for these components.

Signed-off-by: Sourav Kumar Pramanik <pramanik.souravkumar@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-07 08:22:43 -07:00
Etienne Cordonnier c5df8a7772 uutils-coreutils: upgrade 0.0.19 -> 0.0.20
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-20 19:08:56 -07:00
Etienne Cordonnier 8d38aec39c uutils-coreutils: upgrade 0.0.18 -> 0.0.19
Note: the removal of "name=XXX" in the crates.inc file is normal
and due to a change in cargo-update-recipe-crates.bbclass in poky.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-07 09:31:32 -07:00
Etienne Cordonnier 6b197f009d uutils-coreutils: disable musl support
musl is not supported because the libc crate does not support functions like "endutxent" at the moment,
so src/uucore/src/lib/features.rs disables utmpx when targetting musl.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-06 13:45:10 -07:00
Etienne Cordonnier 4ee5e2badb uutils-coreutils: upgrade 0.0.17 -> 0.0.18
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-06 13:45:10 -07:00
Etienne Cordonnier 1854b495bb uutils-coreutils: remove obsolete comment
This comment does not make sense any more, now that the auto-generated
recipe has been removed.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-06 13:45:10 -07:00
Etienne Cordonnier 55074903fe uutils-coreutils: Add crates checksum
Commit 93d691d58c did not add the crates checksum (even though the commit message
says it did), and the crates fetcher is now failing with "No checksum
specified".

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-06 13:45:10 -07:00
Frederic Martinsons 93d691d58c uutils-coreutils: Add crates checksum and use cargo-update-recipes-crates
This is related to checksum verification introduction in bitbake
crate fetcher:
https://patchwork.yoctoproject.org/project/bitbake/patch/20230315131513.50635-1-frederic.martinsons@gmail.com/

Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-17 07:06:56 -07:00
Etienne Cordonnier eec98799a2 uutils-coreutils: upgrade 0.0.16 -> 0.0.17
Signed-off-by: Etienne Cordonnier <ecordonnier@snapchat.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-23 07:31:54 -08:00
Etienne Cordonnier 19963d1f5f uutils-coreutils: upgrade 0.0.15 -> 0.0.16
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-18 15:06:37 -07:00
Etienne Cordonnier a9bb79e1b9 uutils-coreutils: add recipe
uutils-coreutils is a rewrite of GNU coreutils in Rust.
It is licensed under MIT license.

To use this recipe add this line to your distro configuration:
PREFERRED_PROVIDER_coreutils = "uutils-coreutils"

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-24 08:26:55 -07:00