Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716226 - net-misc/dahdi-3.1.0-r1 fails to compile on kernels >= 5.6.0
Summary: net-misc/dahdi-3.1.0-r1 fails to compile on kernels >= 5.6.0
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jaco Kroon
Keywords: PullRequest
Depends on:
Reported: 2020-04-04 20:19 UTC by Florian Evers
Modified: 2020-04-09 12:37 UTC (History)
2 users (show)

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

The patch file to make net-misc/dahdi-3.1.0-r1 compile again on Linux kernels >= 5.6.0 (94-fixes-ioremap-and-proc_create_data.patch,13.00 KB, patch)
2020-04-04 20:19 UTC, Florian Evers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Evers 2020-04-04 20:19:30 UTC
Created attachment 630132 [details, diff]
The patch file to make net-misc/dahdi-3.1.0-r1 compile again on Linux kernels >= 5.6.0

The package net-misc/dahdi-3.1.0-r1 fails to compile on kernels >= 5.6.0. This failure is caused by two issues:

- The interface of "proc_create_data()" changed from using "struct proc_ops" instead of "struct file_operations"
- "ioremap_nocache" is obsolete and was removed. "ioremap" shall be used instead,

I created a patch file "94-fixes-ioremap-and-proc_create_data.patch" that fixes these issues if placed into "/etc/portage/patches/net-misc/dahdi-3.1.0-r1". Please add this file to the Gentoo patch set file.

Comment 1 Jaco Kroon 2020-04-06 08:39:03 UTC
Thanks.  We've already initiated work on this.  (next push will link it since I've added Closes: onto it but I do need to still fix the proc_creat_data() issue.)
Comment 2 Jaco Kroon 2020-04-06 16:32:59 UTC
*** Bug 716468 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2020-04-09 12:37:57 UTC
The bug has been closed via the following commit(s):

commit 597ea5a7c16cb7b3ead096d54f78c9369cd41e7b
Author:     Jaco Kroon <>
AuthorDate: 2020-03-28 19:56:25 +0000
Commit:     Joonas Niilola <>
CommitDate: 2020-04-09 12:37:45 +0000

    net-misc/dahdi: build fixes.
    There were still some cases where specific kernel versions wouldn't
    compile.  This now compiles on all versions that I've got.
    Consolidated the patches for non-digium hardware (which is where most of
    the issues were).
    Added a patch for dealing with 64-bit division on PPC (works on amd64),
    untested on ppc where it's required.  Will also affect ARM now - as per
    newest keyword request.
    Fix for systems without CONFIG_PCI.
    Nuke empty RDEPEND= and DEPEND= lines.
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Jaco Kroon <>
    Signed-off-by: Joonas Niilola <>

 net-misc/dahdi/Manifest              | 2 +-
 net-misc/dahdi/dahdi-3.1.0-r1.ebuild | 5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)