On 17/11/2020 12:47, Ian Abbott wrote:
> On 16/11/2020 15:31, Anders Blomdell wrote:
>> # ../../comedi/configure --disable-rtai --disable-pcmcia
>> --disable-usb --with-kernel-release=5.8.18-200.fc32.x86_64
>> .... Lots of config output omitted ...
>> checking for Linux build in
>> /lib/modules/5.8.18-200.fc32.x86_64/build... yes
>> checking for separate Linux source and build directory... yes
>> checking for Linux source in $(abs_objtree)... not found
>> configure: error: Linux source directory not found
>> #
>>
>> The problem seems to be:
>>
>> if test -z "$dir"; then
>> # 4.20
>> dir=`sed -n -e '/^__sub-make:$/,/^$/s/.* -C
>> *\([^[:space:]]*\).*/\1/p' "$LINUX_DIR/Makefile"`
>> fi
>>
>> which triggers for 5.8.18 (but not for 5.7.14).
>>
>> Regards
>>
>> Anders
>
> Hi Anders,
>
> I'll try and reproduce it. (I need to install Fedora 32 in VirtualBox
> first.)
I've added a workaround. It looks like the source and build directories
are not actually separate for Fedora's kernels. The code in Fedora's
/lib/modules/${kernelversion}/build/Makefile is a bit tricky to parse,
so I bodged it by checking for the "include/sound" directory (I could
have chosen various other directories) that would not be expected to be
in a separate build directory.
It seems to work for now. It will probably break if Fedora do start
splitting the source and build directories in their kernel-devel packages.
After the git pull, you will need to run ./autogen.sh to update the
configure script.