Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922172 - dev-embedded/raspberrypi-utils-0_p20240112 fails to emerge
Summary: dev-embedded/raspberrypi-utils-0_p20240112 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-15 16:26 UTC by Stefan Trenker
Modified: 2024-01-16 21:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info-dev-embedded-raspberrypi-utils,8.42 KB, text/plain)
2024-01-15 16:27 UTC, Stefan Trenker
Details
emerge -pqv (emerge-pqv-dev-embedded-raspberrypi-utils,60 bytes, text/plain)
2024-01-15 16:28 UTC, Stefan Trenker
Details
build log (build.log.gz,2.94 KB, application/gzip)
2024-01-15 16:28 UTC, Stefan Trenker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Trenker 2024-01-15 16:26:01 UTC
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.
Comment 1 Stefan Trenker 2024-01-15 16:27:46 UTC
Created attachment 882348 [details]
emerge --info
Comment 2 Stefan Trenker 2024-01-15 16:28:10 UTC
Created attachment 882349 [details]
emerge -pqv
Comment 3 Stefan Trenker 2024-01-15 16:28:45 UTC
Created attachment 882350 [details]
build log
Comment 4 Ionen Wolkens gentoo-dev 2024-01-15 16:43:26 UTC
Haven't looked but, rather than the kernel, maybe it wants sys-apps/dtc? This installs libfdt.so and libfdt.h
Comment 5 Stefan Trenker 2024-01-15 16:52:25 UTC
(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
Comment 6 Stefan Trenker 2024-01-15 17:43:35 UTC
> It should be added as BDEP to dev-embedded/raspberrypi-utils

RDEP
Comment 7 Larry the Git Cow gentoo-dev 2024-01-16 21:54:13 UTC
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(-)