]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
glibc: make glibc-dev depend on kernel headers
authorChen Qi <Qi.Chen@windriver.com>
Thu, 21 Jul 2022 02:52:31 +0000 (19:52 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Jul 2022 12:55:13 +0000 (13:55 +0100)
commitfdb16e1a78c2abcc8ac89678b1b250ca4fa9c0d9
tree3231b32f38be6c801b8fa0da65c41da1fd4d78df
parent6783c1e295e5afafd73a02fd986ca8956a89dda7
glibc: make glibc-dev depend on kernel headers

The linux kernel headers are necessary for glibc-dev, so
we need to use RDEPENDS instead of DEV_PKG_DEPENDENCY which
specifies RRECOMMENDS.

Currently, in case of NO_RECOMMENDATIONS set to "1", linux
kernel headers are not pulled in by glibc-dev, causing error
like below when compiling.

  fatal error: linux/errno.h: No such file or directory

The problem could be reproduced by setting NO_RECOMMENDATIONS
to "1" and then running:

  bitbake core-image-minimal -c populate_sdk
  bitbake core-image-minimal -c testsdk

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc-package.inc