dev-embedded/raspberrypi-utils-0_p20240112 fails to emerge. It fails in the first compilation step with the following error message: /var/tmp/portage/dev-embedded/raspberrypi-utils-0_p20240112/work/utils-193e6e34b40807cbeedee2e4abc3ef5165e14ae2/dtmerge/dtoverlay.c:32:10: fatal error: libfdt.h: No such file or directory 32 | #include <libfdt.h> | ^~~~~~~~~~ Obviously the include file libfdt.h is missing. libfdt.h is not contained in the package distfile. It is part of the kernel source tree. In my case this is: /usr/src/linux-6.1.72-v8+/scripts/dtc/libfdt/libfdt.h It is not part of linux-headers as well. I do not believe, including files directly from the kernel source tree into any package is a good idea. Maybe raspberrypi-utils should be provided as bin-package. Unfortunately dev-embedded/raspberrypi-utils is now a dependency of dev-embedded/rpi-eeprom-21.0_p1.
Created attachment 882348 [details] emerge --info
Created attachment 882349 [details] emerge -pqv
Created attachment 882350 [details] build log
Haven't looked but, rather than the kernel, maybe it wants sys-apps/dtc? This installs libfdt.so and libfdt.h
(In reply to Ionen Wolkens from comment #4) > Haven't looked but, rather than the kernel, maybe it wants sys-apps/dtc? > This installs libfdt.so and libfdt.h Emerging sys-apps/dtc does the trick! It should be added as BDEP to dev-embedded/raspberrypi-utils
> It should be added as BDEP to dev-embedded/raspberrypi-utils RDEP
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d68f150f4fcafe60e3264ef62651e74d41f4067e commit d68f150f4fcafe60e3264ef62651e74d41f4067e Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2024-01-16 21:49:49 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2024-01-16 21:53:29 +0000 dev-embedded/raspberrypi-utils: Bump, add sys-apps/dtc dependency Closes: https://bugs.gentoo.org/922172 Signed-off-by: James Le Cuirot <chewi@gentoo.org> dev-embedded/raspberrypi-utils/Manifest | 2 +- ...ils-0_p20240112.ebuild => raspberrypi-utils-0_p20240115.ebuild} | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-)