Summary: | net-misc/dahdi-3.1.0-r3 - /.../dahdi_echocan_oslec.c: fatal error: /.../oslec.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Distribution Kernel Project <dist-kernel> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | jaco, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.bz2 net-misc:dahdi-3.1.0-r3:20210404-191155.log temp.tar.bz2 |
Description
Toralf Förster
![]() Created attachment 697467 [details]
emerge-info.txt
Created attachment 697470 [details]
emerge-history.txt
Created attachment 697473 [details]
environment
Created attachment 697476 [details]
etc.portage.tar.bz2
Created attachment 697479 [details]
net-misc:dahdi-3.1.0-r3:20210404-191155.log
Created attachment 697482 [details]
temp.tar.bz2
gentoo-kernel isn't installing full kernel sources: jkroon@plastiekpoot /usr/src/linux-5.11.14-gentoo-dist/drivers/misc/echo $ ls -lah total 16K drwxr-xr-x 2 root root 4.0K Apr 17 04:20 . drwxr-xr-x 21 root root 4.0K Apr 17 04:20 .. -rw-r--r-- 1 root root 274 Feb 15 00:32 Kconfig -rw-r--r-- 1 root root 69 Feb 15 00:32 Makefile Compared to linux/master: jkroon@plastiekpoot ~/projects/linux/drivers/misc/echo (master) $ ls -lah total 52K drwxr-xr-x 2 jkroon jkroon 4.0K Jan 24 22:38 . drwxr-xr-x 23 jkroon jkroon 4.0K Apr 17 05:59 .. -rw-r--r-- 1 jkroon jkroon 17K Jan 24 22:38 echo.c -rw-r--r-- 1 jkroon jkroon 6.6K Jan 24 22:38 echo.h -rw-r--r-- 1 jkroon jkroon 3.6K Jan 24 22:38 fir.h -rw-r--r-- 1 jkroon jkroon 274 Jan 24 22:38 Kconfig -rw-r--r-- 1 jkroon jkroon 69 Jan 24 22:38 Makefile -rw-r--r-- 1 jkroon jkroon 2.3K Jan 24 22:38 oslec.h This is a bug in gentoo-kernel, not dahdi. I would say not installing source is a feature, not a bug. but if some files are legitemately missing then we can add, I think. I hear you re feature, to a degree it makes sense. net-misc/dahdi is a kernel module, so at the very least I require the ability to include the missing oslec.h (it has no further #include's) - which doesn't form part of the standard linux-headers since it's an internal only header. Is there some dependency that I need to depend on to indicate that I require the actual source including headers? Looking at the kernel-build eclass it seems that it's explicit to only install Makefile* and Kconfig* ... is this good enough to actually build any other kernel modules? In which case, can we possibly include oslec.h into that? Quite happy to hack the dahdi-source to be a little less specific about the full path and add additional -I arguments for the compiler. However, it seems kernel-2 (which controls linux-headers) use the kernel's on make headers_install in order to deal with the stuff that needs to be installed, afaik, this is primarily stuff that userspace needs, not kernel modules. This only affects USE=oslec ... which also requires kernel config to have CONFIG_ECHO set (Which I'm not sure gentoo-kernel has). Looking at the code here, the #include should be fixed up anyway, using a full path here is just wrong on so many levels, but even fixing it up, in the gentoo-kernel case, there is no oslec.h to fix things up to. |