Comment 3 for bug 1022898

Revision history for this message
Clemens Fuchslocher (clemens-fuchslocher) wrote : Re: fglrx-installer-updates 2:8.960 needs update to 8.982

I tried fglrx-updates_8.982-0ubuntu0.1_amd64.deb from precise-proposed today and the installation failed with: "Error! Application of patch fix-build-issue-on-i386-where-TS_USEDFPU-is-no-longe.patch failed". No fglrx_updates.ko was build:

| $ uname -srvmpio
| Linux 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012
| x86_64 x86_64 x86_64 GNU/Linux
|
| $ vim /etc/apt/sources.list
| ...
| deb http://archive.ubuntu.com/ubuntu/ precise-proposed restricted
| main multiverse universe
| ...
|
| $ apt-get update
|
| $ apt-get install fglrx-updates
| ...
| Building only for 3.2.0-30-generic
| Building for architecture x86_64
| Building initial module for 3.2.0-30-generic
| Error! Application of patch
| fix-build-issue-on-i386-where-TS_USEDFPU-is-no-longe.patch failed.
| Check /var/lib/dkms/fglrx-updates/8.982/build/ for more information.
| update-initramfs: deferring update (trigger activated)
| Processing triggers for bamfdaemon ...
| Rebuilding /usr/share/applications/bamf.index...
| Setting up fglrx-amdcccle-updates (2:8.982-0ubuntu0.1) ...
| Processing triggers for initramfs-tools ...
| update-initramfs: Generating /boot/initrd.img-3.2.0-30-generic
| Processing triggers for libc-bin ...
| ldconfig deferred processing now taking place
|
| $ ls -1 /lib/modules/3.2.0-30-generic/updates/dkms
|
| $ ls -1 /var/lib/dkms/fglrx-updates/8.982/build
| ...
| firegl_public.c
| firegl_public.c.rej
| ...
|
| $ ls -1 /var/lib/dkms/fglrx-updates/8.982/build/patches
| fix-build-issue-on-i386-where-TS_USEDFPU-is-no-longe.patch
| replace-do_mmap-and-do_munmap-with-vm_mmap-and-vm_mu.patch
| replace-for_each_cpu_mask-with-for_each_possible_cpu.patch
| replace-global-lock-with-a-driver-specific-mutex.patch

Removing the patch from the archive solves the problem:

| $ dpkg-deb -x fglrx-updates_8.982-0ubuntu0.1_amd64.deb fglrx-updates
|
| $ dpkg-deb -e fglrx-updates_8.982-0ubuntu0.1_amd64.deb
| fglrx-updates/DEBIAN
|
| $ rm fglrx-updates/usr/src/fglrx-updates-8.982/patches/fix-build-
| issue-on-i386-where-TS_USEDFPU-is-no-longe.patch
|
| $ vim fglrx-updates/usr/src/fglrx-updates-8.982/dkms.conf
| ...
| #PATCH[0]="fix-build-issue-on-i386-where-TS_USEDFPU-is-no-longe.patch"
| ...
|
| $ dpkg-deb -b fglrx-updates fglrx-updates_8.982-0ubuntu0.1.1_amd64
| .deb
|
| $ dpkg --install fglrx-updates_8.982-0ubuntu0.1.1_amd64.deb
|
| $ ls -1 /lib/modules/3.2.0-30-generic/updates/dkms
| fglrx_updates.ko