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 Desktop Packages, 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'] Status in fglrx-installer package in Ubuntu: Confirmed Bug description: Have no idea what happened. Contact me if you need additional details. ProblemType: Package DistroRelease: Ubuntu 15.04 Package: fglrx-core 2:15.200-0ubuntu4.1 ProcVersionSignature: Ubuntu 3.19.0-25.26-generic 3.19.8-ckt2 Uname: Linux 3.19.0-25-generic x86_64 NonfreeKernelModules: fglrx .tmp.unity.support.test.0: ApportVersion: 2.17.2-0ubuntu1.2 Architecture: amd64 CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' CompositorRunning: compiz CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0' CompositorUnredirectFSW: true DKMSKernelVersion: 3.19.0-26-generic Date: Thu Jul 30 12:05:59 2015 DistUpgraded: Fresh install DistroCodename: vivid DistroVariant: ubuntu DkmsStatus: fglrx-core, 15.200, 3.19.0-25-generic, x86_64: installed vboxhost, 4.3.30, 3.19.0-25-generic, x86_64: installed vboxhost, 4.3.30, 3.19.0-26-generic, x86_64: installed GraphicsCard: Advanced Micro Devices, Inc. [AMD/ATI] Barts XT [Radeon HD 6870] [1002:6738] (prog-if 00 [VGA controller]) Subsystem: Hightech Information System Ltd. Device [1787:2010] InstallationDate: Installed on 2012-09-16 (1046 days ago) InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120905.2) MachineType: BIOSTAR Group A770E3 PackageVersion: 2:15.200-0ubuntu4.1 ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.19.0-25-generic root=/dev/mapper/ubuntu-root ro radeon.nomodeset=1 radeon.dpm=1 crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M RelatedPackageVersions: dpkg 1.17.25ubuntu1 apt 1.0.9.7ubuntu4.1 SourcePackage: fglrx-installer Title: fglrx-core 2:15.200-0ubuntu4.1: fglrx-core kernel module failed to build UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 04/21/2010 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 080014 dmi.board.asset.tag: To Be Filled By O.E.M. dmi.board.name: A770E3 dmi.board.vendor: BIOSTAR Group dmi.chassis.asset.tag: None dmi.chassis.type: 3 dmi.chassis.vendor: BIOSTAR Group dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr080014:bd04/21/2010:svnBIOSTARGroup:pnA770E3:pvr:rvnBIOSTARGroup:rnA770E3:rvr:cvnBIOSTARGroup:ct3:cvr: dmi.product.name: A770E3 dmi.sys.vendor: BIOSTAR Group version.compiz: compiz 1:0.9.12.1+15.04.20150410.1-0ubuntu1 version.fglrx-installer: fglrx-installer N/A version.ia32-libs: ia32-libs N/A version.libdrm2: libdrm2 2.4.62+git1507210630.293f8f~gd~u version.libgl1-mesa-dri: libgl1-mesa-dri 10.7~git1507230730.2ca1f7~gd~u version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A version.libgl1-mesa-glx: libgl1-mesa-glx 10.7~git1507230730.2ca1f7~gd~u version.xserver-xorg-core: xserver-xorg-core 2:1.17.1-0ubuntu3 version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.0-1ubuntu2 version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A xserver.bootTime: Thu Jul 30 09:44:01 2015 xserver.configfile: default xserver.logfile: /var/log/Xorg.0.log xserver.version: 2:1.17.1-0ubuntu3 xserver.video_driver: fglrx To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1479913/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp