Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909284 - app-laptop/tuxedo-keyboard-* fails to compile on gentoo-sources-6.4.0
Summary: app-laptop/tuxedo-keyboard-* fails to compile on gentoo-sources-6.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-27 07:33 UTC by Søren Dalby Larsen
Modified: 2023-08-18 08:17 UTC (History)
1 user (show)

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


Attachments
0001-tuxedo_io-Adjust-class_create-call-for-kernel-6.4-co.patch (0001-tuxedo_io-Adjust-class_create-call-for-kernel-6.4-co.patch,983 bytes, patch)
2023-06-27 07:34 UTC, Søren Dalby Larsen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Søren Dalby Larsen 2023-06-27 07:33:22 UTC
create_class changed for linux-6.4.0. The change is already in master as this commit: https://github.com/tuxedocomputers/tuxedo-keyboard/commit/04112f65ec4099d43bca8c00acc61f3a2c0e185f, but no release is out yet.

Just supplied a patch from the fixing commit to stuff in /etc/portage/patches/app-laptop/tuxedo-keyboard until a release is out

Reproducible: Always

Steps to Reproduce:
1.emerge -1 tuxedo-keyboard
2.
3.
Actual Results:  
...
In file included from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:17,
                 from /var/tmp/portage/app-laptop/tuxedo-keyboard-3.2.6/work/tuxedo-keyboard-3.2.6/./src/tuxedo_io/tuxedo_io.c:20:
/var/tmp/portage/app-laptop/tuxedo-keyboard-3.2.6/work/tuxedo-keyboard-3.2.6/./src/tuxedo_io/tuxedo_io.c: In function ‘tuxedo_io_init’:
./include/linux/export.h:27:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   27 | #define THIS_MODULE (&__this_module)
      |                     ~^~~~~~~~~~~~~~~
      |                      |

Expected Results:  
It should install just fine
Comment 1 Søren Dalby Larsen 2023-06-27 07:34:37 UTC
Created attachment 864689 [details, diff]
0001-tuxedo_io-Adjust-class_create-call-for-kernel-6.4-co.patch
Comment 2 Sebastián Magrí 2023-07-11 19:28:22 UTC
this fix is included in upstream version version 3.2.7
Comment 3 Mathy Vanvoorden 2023-07-31 10:02:59 UTC
I manually bumped to version 3.2.8 and removed the patch that was in 3.2.3 since that also seems to be fixed. After that it built fine.
Comment 4 Marc Schiffbauer gentoo-dev 2023-08-18 08:17:44 UTC
3.2.10 is in the tree now, so this should be fixed. Thanks for reporting!