If the patch is working, please give a respond.
If the patch is not working, hmm - I think I can't help you. But, please give a respond. ;)
If you know it better, feel free to edit.

cu rich

orinoco

Post subject:Posted: 28.03.2011, 21:01

Joined: 2011-01-28
Posts: 30

Status: Offline

Hello,

I'm interested to test your patch but I ran into a problem applying this patch. I have no experience in doing such a task. I created a text-file from your patch and copied it to /usr/src/fglrx-11-2/patch.txt and run it with patch < patch.txt.

That's not my patch, if it would my patch, it would work, because i would build a deb, which has the patch in.

??? Yes, I know that this is not your patch. I just wanted to give Rich.Rat a positive feedback for his work and asked him for some further help. If somebody tells me where I have to copy the module I would be happy for today.

How to build a deb - Hmm, I dont know, but I can manipulate an existing thats all.
This means the package Version stays same.

You must have the package

Quote:

fglrx-modules-dkms_1%3a11-2-2_amd64.deb

Copy the package in a separat folder;
navigate to the folder;
if necessary, change the owner rights of the package from ROOT to USER;
extraxt the package files and the related DEBIAN files with with dpkg-deb;

Attention to the correct writing !! /DEBIAN !! and not /debian or what ...

After this you have extracted the complete package in one folder fglrx-modules-dkms_1%3a11-2-2-NEW_amd64
If you have this sub folders and some other files under the folder fglrx-modules-dkms_1%3a11-2-2-NEW_amd64 everything should be all right.
/usr/...
/DEBIAN/...

Now you can patch the files. You find the related files under
§/fglrx-modules-dkms_1%3a11-2-2-NEW_amd64/usr/src/fglrx-11-2/
the related files are
drmP.h
firegl_public.c
apply the patch with

Check the files, search for 2.6.38 - the related area should look nearly like my patch (without the first characters # - @ )
Delete or move the patchfile to an other folder.
navigate back above the folder fglrx-modules-dkms_1%3a11-2-2-NEW_amd64
Build the package with dpkg-deb

Code:

$dpkg-deb -b fglrx-modules-dkms_1%3a11-2-2-NEW_amd64

EDIT: ]$dpkg-deb -b .... Rich
Now you should have a package fglrx-modules-dkms_1%3a11-2-2-NEW_amd64.deb.

But like I sayd ...-NEW... is no Version or Subversion!
Both packages are version 1:11.2.2
How to change the versions? Sorry I don't know.