Summary
Description: Unnamed repository; edit this file 'description' to name the repository.
Last Change: Wed 4/10/13 13:00
Recent Commits
>
--git a/SuSE/CHANGELOG b/SuSE/CHANGELOG
index a96d4d1..07544b7 100644
--- a/SuSE/CHANGELOG
+++ b/SuSE/CHANGELOG
@@ -1,3 +1,9 @@
+Thu Jun 14 21:17:00 CEST 2012 - Sebastian Siebert <freespacer@gmx.de>
+-------------------------------------------------------------------
+
+- add patch for Kernel 3.4.0 and higher to prevent compile error
+- activate packaging for openSUSE 12.2
+
Thu May 03 20:15:03 CEST 2012 - Sebastian Siebert <freespacer@gmx.de>
-------------------------------------------------------------------
- add new file for /etc/ati/atiapfxx.blb
diff --git a/SuSE/amd-3.4.0-missing-functions.patch b/SuSE/amd-3.4.0-missing-functions.patch
new file mode 100644
index 0000000..932655a
--- /dev/null
+++ b/SuSE/amd-3.4.0-missing-functions.patch
@@ -0,0 +1,44 @@
+diff -rup fglrx.orig/firegl_public.c fglrx/firegl_public.c
+--- fglrx.orig/firegl_public.c 2012-05-25 14:22:07.218954103 +0200
++++ fglrx/firegl_public.c 2012-05-29 22:50:59.013254964 +0200
+@@ -188,6 +188,12 @@
+ #include <linux/swap.h>
+ #include "asm/i387.h"
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
++#ifdef CONFIG_X86_32
++#include "asm/fpu-internal.h"
++#endif
++#endif
++
+ #include "firegl_public.h"
+ #include "kcl_osconfig.h"
+ #include "kcl_io.h"
+@@ -4154,7 +4160,11 @@ static int kasInitExecutionLevels(unsign
+ {
+ unsigned int p;
+ KCL_DEBUG5(FN_FIREGL_KAS, "%d\n", level_init);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
++ for_each_possible_cpu(p)
++#else
+ for_each_cpu_mask(p, cpu_possible_map)
++#endif
+ {
+ KCL_DEBUG1(FN_FIREGL_KAS,"Setting initial execution level for CPU # %d\n", p);
+ preempt_disable();
+diff -rup fglrx.orig/kcl_ioctl.c fglrx/kcl_ioctl.c
+--- fglrx.orig/kcl_ioctl.c 2012-05-25 14:21:43.716077316 +0200
++++ fglrx/kcl_ioctl.c 2012-05-29 01:22:18.548377787 +0200
+@@ -213,6 +213,12 @@ void ATI_API_CALL KCL_IOCTL_UnregisterCo
+ #endif
+ }
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
++# ifdef CONFIG_COMPAT
++DEFINE_PER_CPU(unsigned long, old_rsp);
++# endif
++#endif
++
+ /** \brief Allocate user space for 32-bit app making 64-bit IOCTL
+ * \param size [in] Number of bytes to allocate
+ * \return Pointer to allocated memory
diff --git a/SuSE/fglrx.spec b/SuSE/fglrx.spec
index baf1679..5f7d84e 100644
--- a/SuSE/fglrx.spec
+++ b/SuSE/fglrx.spec
@@ -229,6 +229,14 @@ echo "Apply some patches ..."
echo "ati-2.6.36-compat_alloc_user_space.patch could not applied! Please report this bug to Sebastian Siebert <freespacer@gmx.de>. Thank you."
fi
%endif
+%if %suse_version > 1100
+ patch -p1 -s < /usr/share/doc/packages/fglrx/patches/amd-3.4.0-missing-functions.patch
+ if [ $? -eq 0 ]; then
+ echo "amd-3.4.0-missing-functions.patch applied successfully."
+ else
+ echo "amd-3.4.0-missing-functions.patch could not applied! Please report this bug to Sebastian Siebert <freespacer@gmx.de>. Thank you."
+ fi
+%endif
# placeholder_for_additional_patches_for_fglrx_sources
rm -f *.orig
# For openSUSE 12.1 and higher: we should add a dynamic library search path
diff --git a/SuSE/supportedOS.sh b/SuSE/supportedOS.sh
index 828d3fe..b471a35 100755
--- a/SuSE/supportedOS.sh
+++ b/SuSE/supportedOS.sh
@@ -35,11 +35,13 @@ SUSE114-IA32 \
SUSE114-AMD64 \
SUSE121-IA32 \
SUSE121-AMD64 \
+SUSE122-IA32 \
+SUSE122-AMD64 \
SUSE-autodetection"
# unsupported os (unofficial package list)
# unlock this list with, for example:
# UNSUPPORTED="yes" ./ati-driver-installer-<version>-<architecture>.run --buildpkg SuSE/SUSE114-AMD64
if [ "${UNSUPPORTED}" = "yes" -o "${UNSUPPORTED}" = "true" -o "${UNSUPPORTED}" = "1" ]; then
- SUSE_LIST="${SUSE_LIST} SUSE122-IA32 SUSE122-AMD64 SUSEFACTORY-IA32 SUSEFACTORY-AMD64"
+ SUSE_LIST="${SUSE_LIST} SUSEFACTORY-IA32 SUSEFACTORY
Copyright © 2013 by Phoronix Media