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.
Thanks. We've already initiated work on this.
https://github.com/gentoo/gentoo/pull/15154 (next push will link it since I've added Closes: onto it but I do need to still fix the proc_creat_data() issue.)
*** Bug 716468 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s):
Author: Jaco Kroon <firstname.lastname@example.org>
AuthorDate: 2020-03-28 19:56:25 +0000
Commit: Joonas Niilola <email@example.com>
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 <firstname.lastname@example.org>
Signed-off-by: Joonas Niilola <email@example.com>
net-misc/dahdi/Manifest | 2 +-
net-misc/dahdi/dahdi-3.1.0-r1.ebuild | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)