Solved - solution based on many pages like:

http://cs-people.bu.edu/doucette/xia/guides/debian-patch.txt
https://wiki.debian.org/UsingQuilt
(and many more I forgot ... sorry)

So, I will try to write some quick steps so you can build your own
fglrx-installer-updates package until properly released:

1. Get needed tools installed:
sudo apt-get install quilt
sudo apt-get install devscripts

2. Get the sources and build dependencies:
apt-get source fglrx-updates-core
apt-get build-dep fglrx-updates-core

3. Start patching:
Change into src dir (or whatever it is named):
cd fglrx-installer-updates-15.200
Push all existing patches:
quilt push -a
Create a new patch (or import MatthewHawn (steamraven) 's one - see quilt 
reference above).
So you took the edit way - here it is:
quilt new kcl_acpi.diff
Add a new file to modify:
quilt add lib/modules/fglrx/build_mod/kcl_acpi.c
Edit the file and apply MatthewHawn (steamraven) 's patch (or use the diff - 
any way you're confortable with):
nano lib/modules/fglrx/build_mod/kcl_acpi.c
Refresh quilt:
quilt refresh
Unapply all patches:
quilt pop -a
Give it a version and txt:
dch -i
Now you need to edit some more (I coulden't package it without editing - and 
quilt could not help me anymore):
nano debian/rules

line 435:
-  done \
+ done; \

line 440:
-  execstack -q $$i && execstack -c $$i || true; done; \
+ execstack -q $$i && execstack -c $$i || true; \

line 445:
-  execstack -q $$i && execstack -c $$i; done; \
+ execstack -q $$i && execstack -c $$i; \

line 450:
-  execstack -q $$i && execstack -c $$i; done; \
+ execstack -q $$i && execstack -c $$i; \

Save it and run:
debuild -us -uc

4. Install:
cd ..
dpkg -i fglrx-updates-core fglrx-updates fglrx-amdcccle-updates

Sorry for the brevity - I write on the run atm. and kinda retracing from memory 
- I hope I didn't skip / barf something :)
I am running the modified version and I can confirm that it works for me :)
Thank you MatthewHawn (steamraven) for providing the proper patch - I missed 
graphical interface :D
Regards

-- 
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

Reply via email to