Thank you Dan Ștefan Stroe (stroestefan) and Somberlain (somberlain218) for cleaning up my patch and giving more instructions. However, since this is a patch to a dkms module, I believe the proper way is to add it to dkms patches directory and modify dkms.conf.in. This way the original, proprietary code is distributed unchanged, and the patch is applied when the dkms module is built on install. I am not a dpkg expert, though...
You can use the attached patch thus: sudo apt-get build-dep fglrx-installer-updates apt-get source fglrx-installer-updates cd fglrx-installer-updates-15.200 patch -p1 < ../fglrx_ignore_hotplug.diff dpkg-buildpackage -rfakeroot -uc -us -b sudo dpkg -i ../fglrx-updates-core_15.200-0ubuntu0.3_amd64.deb This should generate a new fglrx-updates-core package in the parent directory. When installed, it will call dkms build, which will apply the patch and build the kernel module. You can check dkms with sudo dkms status and to rebuild (should have been done by the above install) sudo dkms remove fglrx-updates-core/15.200 -k 3.19.0-26-generic sudo dkms build fglrx-updates-core/15.200 -k 3.19.0-26-generic sudo dkms install fglrx-updates-core/15.200 -k 3.19.0-26-generic sudo update-initramfs -k 3.19.0-26-generic -u Disclaimer: This is patching kernel modules. Here Be Dragons. This may make your computer unbootable. This may blow up your computer and all your files. This may kill your cat. Make sure you have adequate backups, time, and access to a linux expert (yourself or friend) before attempting ** Patch added: "patch for fglrx-installer-updates debian source package" https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1479913/+attachment/4438431/+files/fglrx_ignore_hotplug.diff -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to fglrx-installer in Ubuntu. https://bugs.launchpad.net/bugs/1479913 Title: fglrx-core 2:15.200-0ubuntu4.1: fglrx-core kernel module failed to build [FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'pci_ignore_hotplug'] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1479913/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp