0

I need a full featured ps command that accepts the -a option in my Yocto linux OS.

I've checked this question and so, I've been trying to install procps alongside busybox in my image, by including in my workspace's conf/local.conf the following line:

#~ From openembedded-core
IMAGE_INSTALL_append = " procps"

and, I had already included in my bblayers.conf file the openembedded layer:

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /usr/local/dey-3.0/sources/poky/meta \
  /usr/local/dey-3.0/sources/poky/meta-poky \
  /usr/local/dey-3.0/sources/poky/meta-yocto-bsp \
  /usr/local/dey-3.0/sources/meta-openembedded/meta-oe \
  /usr/local/dey-3.0/sources/meta-openembedded/meta-python \
  /usr/local/dey-3.0/sources/meta-openembedded/meta-networking \
  /usr/local/dey-3.0/sources/meta-openembedded/meta-webserver \
  /usr/local/dey-3.0/sources/meta-qt5 \
  /usr/local/dey-3.0/sources/meta-swupdate \
  /usr/local/dey-3.0/sources/meta-freescale \
  /usr/local/dey-3.0/sources/meta-fsl-demos \
  /usr/local/dey-3.0/sources/meta-python2 \
  /usr/local/dey-3.0/sources/meta-webkit \
  /usr/local/dey-3.0/sources/meta-imx/meta-ml \
  /usr/local/dey-3.0/sources/meta-digi/meta-digi-arm \
  /usr/local/dey-3.0/sources/meta-digi/meta-digi-dey \
  ./meta-overture \
  /usr/local/dey-3.0/sources/meta-aws \
  /usr/local/dey-3.0/sources/meta-davitri \ 
  "

However bitbake gives me a conflict error:

Total size: 335 M
Installed size: 1.1 G
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
  file /etc/sysctl.conf conflicts between attempted installs of procps-3.3.15-r0.1.aarch64 and base-files-3.0.14-r89.1.ccimx8mn_dvk

There must be a way for specifying that we want to use all busybox tools except for the 'ps' command, which we want to take from procps. Does anyone know how?

SergioMP
  • 81
  • 3
  • Try to remove `ps` from your distribution by a `rm` command in busybox recipe. Honestly now I don't know exactly how you can do this. Ideally remove the `ps` link can remove the `ps` command depends on busybox. – frankfalse Oct 27 '22 at 21:42

0 Answers0