projects / fglrx-packaging.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file 'description' to name the repository.
Last Change: Tue 10/14/14 4:44

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 10/13/14 11:22
Alberto Milone  
Ubuntu: avoid... 
Thu 9/11/14 5:59
Alberto Milone  
Ubuntu: drop link to... 
Fri 9/5/14 9:45
Alberto Milone  
Ubuntu: make sure it's... 
Mon 9/1/14 8:07
Alberto Milone  
Ubuntu: create a symlink... 
Mon 8/25/14 9:09
Alberto Milone  
Ubuntu: do not generate... 
Thu 8/21/14 3:56
Alberto Milone  
Ubuntu:... 
 
> --git a/SuSE/CHANGELOG b/SuSE/CHANGELOG
index a96d4d1
..07544b7 100644
--- a/SuSE/CHANGELOG
+++ b/SuSE/CHANGELOG
@@ -1,+1,@@
+
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,+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,+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,+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(pcpu_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,+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 longold_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
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media