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

Description: Unnamed repository; edit this file 'description' to name the repository.
Last Change: Mon 7/7/14 17:19

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 7/7/14 17:19
Sebastian Siebert  
SUSE: Add... 
Fri 6/13/14 9:58
Alberto Milone  
Ubuntu: run execstack... 
Fri 6/13/14 6:20
Alberto Milone  
Ubunutu: refresh... 
Fri 6/13/14 5:09
Alberto Milone  
Ubuntu: add support for... 
Tue 1/14/14 9:17
Alberto Milone  
Ubuntu: refresh... 
Tue 1/14/14 9:05
Alberto Milone  
Ubuntu: make it possible... 
 
> --git a/SuSE/CHANGELOG b/SuSE/CHANGELOG
index 0acbfea
..3366d9f 100644
--- a/SuSE/CHANGELOG
+++ b/SuSE/CHANGELOG
@@ -1,+1,17 @@
 -------------------------------------------------------------------
+
Thu Dec 16 23:37:56 CET 2010 Sebastian Siebert <freespacer@gmx.de>
+
+- 
retrofit the fglrx-kernel-build.sh:
+  - 
fixed an issue with a build failure and exit too earlyThe successive
+    kernels was not builded the fglrx kernel module.
+  - 
improve a summary report of the build and installation of the
+    fglrx kernel module to all kernel versions and flavors.
+- 
add a patch for kernel >= 2.6.36 with the issue of the function with
+  compat_alloc_user_space(). The make flag "-DCOMPAT_ALLOC_USER_SPACE=..."
+  does not work.
+- 
remove obsolete patchati-opensuse-11.4.patch
+
+-------------------------------------------------------------------
 
Mon Dec 13 07:42:31 CET 2010 Sebastian Siebert <freespacer@gmx.de>

 - 
packaging script and spec file were completely rewritten
diff 
--git a/SuSE/ati-2.6.36-compat_alloc_user_space.patch b/SuSE/ati-2.6.36-compat_alloc_user_space.patch
new file mode 100644
index 0000000..7abfe2c
--- /dev/null
+++ b/SuSE/ati-2.6.36-compat_alloc_user_space.patch
@@ -0,+1,14 @@
+--- 
kcl_ioctl.c.orig    2010-12-02 22:28:43.000000000 +0100
++++ kcl_ioctl.c    2010-12-15 17:46:29.911077419 +0100
+@@ -193,+193,11 @@ void ATI_API_CALL KCL_IOCTL_UnregisterCo
+  */
voidATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size)
+ {
++
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
++    void __user *ret arch_compat_alloc_user_space(size);
++
#else
+     void __user *ret COMPAT_ALLOC_USER_SPACE(size);
++
#endif
+
+     
/* prevent stack overflow */
+     if (!access_ok(VERIFY_WRITEretsize))
diff --git a/SuSE/ati-opensuse-11.4.patch b/SuSE/ati-opensuse-11.4.patch
deleted file mode 100644
index a93364b
..0000000
--- a/SuSE/ati-opensuse-11.4.patch
+++ /dev/null
@@ -1,11 +0,@@
---- 
kcl_ioctl.c.orig    2010-12-01 23:35:09.000000000 +0100
-+++ kcl_ioctl.c    2010-12-04 01:25:32.989178694 +0100
-@@ -193,+193,@@ void ATI_API_CALL KCL_IOCTL_UnregisterCo
-  */
voidATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size)
- {
--    
void __user *ret COMPAT_ALLOC_USER_SPACE(size);
-+    
void __user *ret arch_compat_alloc_user_space(size);
-
-     
/* prevent stack overflow */
-     if (!access_ok(VERIFY_WRITEretsize))
diff --git a/SuSE/fglrx-kernel-build.sh b/SuSE/fglrx-kernel-build.sh
index a55be20
..f942258 100755
--- a/SuSE/fglrx-kernel-build.sh
+++ b/SuSE/fglrx-kernel-build.sh
@@ -27,+27,@@
 
# compile only supported kernels

 
KERNEL_LIST="`rpm -q kernel kernel-desktop kernel-default kernel-pae | grep -v 'not installed' | sort`"
+SUMMARY_REPORT=""
+ERROR_CODE=0

 
for KERNEL in ${KERNEL_LIST}
 do
@@ -
62,+64,@@ do
         echo 
"file ${SOURCE_FILE} says: COMPAT_ALLOC_USER_SPACE=${COMPAT_ALLOC_USER_SPACE}"
     
fi
     pushd 
/usr/src/kernel-modules/fglrx
+        SUMMARY_REPORT="${SUMMARY_REPORT}\n   Kernel   => ${KERNEL}\n"
         
make -${LINUX_SOURCEM=${PWDMODFLAGS="-DMODULE -DATI -DFGL -DCOMPAT_ALLOC_USER_SPACE=${COMPAT_ALLOC_USER_SPACE}"
         
if [ $? -ne 0 ]; then
             
echo --"\n"
@@ -69,19 +72,32 @@ do
             echo 
"Build of kernel module failed!"
             
echo "******************************"
             
echo --"\n"
-            exit 1
-        fi
-        make -${LINUX_SOURCEM=${PWDmodules_install
-        if [ $? -ne 0 ]; then
-            echo --"\n"
-            echo "*************************************"
-            echo "Installation of kernel module failed!"
-            echo "*************************************"
-            echo --"\n"
+            SUMMARY_REPORT="${SUMMARY_REPORT}   Build    => [\e[1;31m FAILURE \e[0m]\n"
+            SUMMARY_REPORT="${SUMMARY_REPORT}   Install  => [\e[1;31m FAILURE \e[0m]\n"
+            ERROR_CODE=1
+        else
+            
SUMMARY_REPORT="${SUMMARY_REPORT}   Build    => [\e[1;32m OK \e[0m]\n"
+            make -${LINUX_SOURCEM=${PWDmodules_install
+            if [ $? -ne 0 ]; then
+                echo --"\n"
+                echo "*************************************"
+                echo "Installation of kernel module failed!"
+                echo "*************************************"
+                echo --"\n"
+                SUMMARY_REPORT="${SUMMARY_REPORT}   Install  => [\e[1;31m FAILURE \e[0m]\n"
+                ERROR_CODE=1
+            else
+                
SUMMARY_REPORT="${SUMMARY_REPORT}   Install  => [\e[1;32m OK \e[0m]\n"
+            fi
         fi
         make 
-${LINUX_SOURCEM=${PWDclean
     popd
 done

 depmod 
-a
-exit 0
+
+echo -
"\n\nSummary report:"
+printf '=%.0s' $(seq 1 80) && echo --"\n"
+echo -"${SUMMARY_REPORT}"
+
+exit ${
ERROR_CODE}
diff --git a/SuSE/fglrx.spec b/SuSE/fglrx.spec
index 13744c3
..7f75191 100644
--- a/SuSE/fglrx.spec
+++ b/SuSE/fglrx.spec
@@ -227,12 +227,12 @@ echo "Apply some patches ..."
         
echo "ati-2.6.27-build-fix-1.patch could not applied! Please report this bug to Sebastian Siebert <freespacer@gmx.de>. Thank you."
     
fi
 
%endif
-%if %
suse_version 1130
-    patch -p0 -< /usr/share/doc/packages/fglrx/patches/ati-opensuse-11.4.patch
+%if %suse_version 1100
+    patch -p0 -< /usr/share/doc/packages/fglrx/patches/ati-2.6.36-compat_alloc_user_space.patch
     
if [ $? -eq 0 ]; then
-        echo "ati-opensuse-11.4.patch applied successfully."
+        echo "ati-2.6.36-compat_alloc_user_space.patch applied successfully."
     
else
-        echo 
"ati-opensuse-11.4.patch could not applied! Please report this bug to Sebastian Siebert <freespacer@gmx.de>. Thank you."
+        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
 
# placeholder_for_additional_patches_for_fglrx_sources
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media