You are not logged in.

#1 2020-08-14 07:20:52

elParaguayo
Member
Registered: 2018-03-30
Posts: 49

[SOLVED] DKMS errors when building module after update

I recently updated my system and noticed that DKMS failed to build my DVB modules.

This is the first time that I've run into this issue so I'm not sure how to fix it.

The relevant module is tbs-linux_media-git (from the AUR) and the kernel I've just installed is 5.4.57-1-lts

The DKMS log file is here: http://ix.io/2u7m

There's a line in the log that says:

fatal: not a git repository: '../../media/.git'

but I don't know if that's the root cause of the issue here.

I've rebooted and tried running DKMS manually and get the same error.

Any tips on how to solve would be very welcome.

Last edited by elParaguayo (2020-08-14 18:39:42)

Offline

#2 2020-08-14 13:04:28

loqs
Member
Registered: 2014-03-06
Posts: 17,502

Re: [SOLVED] DKMS errors when building module after update

Try adding

    sed -i 's|include/linux/random.h|include/linux/prandom.h|' media_build/v4l/scripts/make_config_compat.pl

to prepare so it becomes

prepare() {
    if [ -d "${srcdir}/media" ]; then
        cd "${srcdir}/media" && \
        git fetch --depth=1 origin && \
        git reset --hard origin/latest
    else
        git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest "$srcdir/media"
    fi
    sed -i 's|include/linux/random.h|include/linux/prandom.h|' media_build/v4l/scripts/make_config_compat.pl
}

Rebuild the package and see if it then builds.

Offline

#3 2020-08-14 14:07:29

elParaguayo
Member
Registered: 2018-03-30
Posts: 49

Re: [SOLVED] DKMS errors when building module after update

Thanks loqs.

Based on this recent commit to the kernel, I suspect you're absolutely correct.

I'll test later today and report back.


EDIT: Yes. That was it. Thank you so much. Not sure I'd have worked that one out on my own.

Last edited by elParaguayo (2020-08-14 18:39:29)

Offline

Board footer

Powered by FluxBB