Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive_pkgs.git;a=commitdiff;h=21600bf965dc0f83ed8a56450faf9fbebbe04f2d

commit 21600bf965dc0f83ed8a56450faf9fbebbe04f2d
Author: Janos Kovacs <[EMAIL PROTECTED]>
Date:   Thu Mar 6 19:48:29 2008 +0100

fglrx-fwlive-8.42.3-10-i686
* version bump

diff --git a/source/x11-extra/fglrx-fwlive/FrugalBuild 
b/source/x11-extra/fglrx-fwlive/FrugalBuild
index 829aea0..1d55609 100644
--- a/source/x11-extra/fglrx-fwlive/FrugalBuild
+++ b/source/x11-extra/fglrx-fwlive/FrugalBuild
@@ -3,13 +3,15 @@
# Maintainer: voroskoi <[EMAIL PROTECTED]>

pkgname=fglrx-fwlive
+_F_archive_name=fglrx
pkgver=8.42.3
-pkgrel=7
+pkgrel=10
pkgdesc="Hardware Accelerated ATi driver for xorg"
url="http://www.ati.com/";
# libstdc++5: no hardware acceleration without it
+_F_kernelmod_scriptlet=fglrx_module.install
Finclude kernel-module
-kver=2.6.23-6
+kver=2.6.24-3
depends=("kernel-fwlive=$kver")
makedepends=("kernel-fwlive-source=$kver")
_F_kernelmod_uname=`echo $kver|sed 's/-/-fw/'`
@@ -20,7 +22,7 @@ subdescs=('fglrx kernel module')
subdepends=($depends)
subgroups=('x11-extra')
subarchs=('i686 x86_64')
-subinstall=fglrx_module-fwlive.install
+subinstall=fglrx_module.install

depends=()
rodepends=('fglrx_module-fwlive' 'xorg-server' 'libstdc++5')
@@ -28,15 +30,16 @@ conflicts=('libgl')
provides=('libgl')
groups=('x11-extra')
archs=('i686' 'x86_64')
-install=$pkgname.install
+install=$_F_archive_name.install
up2date=$pkgver
source=(https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-$pkgver-x86.x86_64.run
 \
-       README.Frugalware libGL.la fglrx-firegl_public.c-2.6.23.patch)
+       README.Frugalware libGL.la \
+       fglrx-firegl_public.c-2.6.24.patch)
options=([EMAIL PROTECTED] 'nodocs')
sha1sums=('b8e878e846e0971d49339ee5957acc6482329510' \
'b64a2303c77f84f5e5db13c9c8fd55f43fa9699b' \
'650973d708466f5c4c21e70c1f1f6c118b27e614' \
-          '57eab429062d6cf64b19e67f2097ef2ce525edeb')
+          '5c88075b135bbc6700301d29736a74177b6df860')

Xversion=x710

@@ -53,7 +56,8 @@ build() {
fi

cp -r $Fsrcdir/ATi/common/* $Fsrcdir/ || Fdie
-       patch -p0 < $Fsrcdir/fglrx-firegl_public.c-2.6.23.patch || Fdie
+
+       patch -p0 < $Fsrcdir/fglrx-firegl_public.c-2.6.24.patch || Fdie

# building kernel module
Fcd /lib/modules/fglrx/build_mod
@@ -62,7 +66,7 @@ build() {
Ffile lib/modules/fglrx/build_mod/fglrx.ko $_F_kernelmod_dir/video/fglrx.ko

# moving the intresting part to the package
-       mv $Fsrcdir/usr $Fdestdir || Fdie
+       mv $Fsrcdir/{usr,etc} $Fdestdir || Fdie

# Install into correct paths for Xorg7
Fmkdir /usr/{include,lib/xorg,bin}
@@ -99,13 +103,12 @@ build() {
Fln libGL.so.1.2 /usr/lib/libGL.so.1
cp -ar $Fsrcdir/libGL.la $Fdestdir/usr/lib || Fdie

-
(find $Fdestdir -type d |xargs chmod 755) || Fdie
# closes #2498
(find $Fdestdir -perm 744 |xargs chmod 755) || Fdie

Fdoc README.Frugalware

-       Fsplit fglrx_module-fwlive /lib
+       Fsplit fglrx_module /lib
Fbuild_kernelmod_scriptlet
}
diff --git a/source/x11-extra/fglrx-fwlive/fglrx-firegl_public.c-2.6.23.patch 
b/source/x11-extra/fglrx-fwlive/fglrx-firegl_public.c-2.6.23.patch
deleted file mode 100644
index 468f9c9..0000000
--- a/source/x11-extra/fglrx-fwlive/fglrx-firegl_public.c-2.6.23.patch
+++ /dev/null
@@ -1,86 +0,0 @@
---- lib/modules/fglrx/build_mod/firegl_public.c.orig   2007-08-10 
23:59:21.000000000 +0200
-+++ lib/modules/fglrx/build_mod/firegl_public.c        2007-08-13 
20:00:26.000000000 +0200
-@@ -214,6 +214,56 @@
- #define preempt_enable()
- #endif
-
-+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22)
-+#if defined(__i386__)
-+#define ptep_test_and_clear_dirty(vma, addr, ptep) ({                  \
-+       int __ret = 0;                                                  \
-+       if (pte_dirty(*(ptep)))                                         \
-+               __ret = test_and_clear_bit(_PAGE_BIT_DIRTY,             \
-+                                               &(ptep)->pte_low);      \
-+       if (__ret)                                                      \
-+               pte_update((vma)->vm_mm, addr, ptep);                   \
-+       __ret;                                                          \
-+})
-+
-+static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
-+static inline int pte_user(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
-+#ifdef CONFIG_X86_PAE
-+/*
-+ * Is the pte executable?
-+ */
-+static inline int pte_x(pte_t pte)
-+{
-+        return !(pte_val(pte) & _PAGE_NX);
-+}
-+
-+/*
-+ * All present user-pages with !NX bit are user-executable:
-+ */
-+static inline int pte_exec(pte_t pte)
-+{
-+        return pte_user(pte) && pte_x(pte);
-+}
-+#else
-+static inline int pte_exec(pte_t pte)
-+{
-+        return pte_user(pte);
-+}
-+#endif        /* PAE */
-+
-+#elif defined(__x86_64__)
-+static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma,
-+                                      unsigned long addr, pte_t *ptep)
-+{
-+      if (!pte_dirty(*ptep))
-+              return 0;
-+      return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte);
-+}
-+static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; }
-+static inline int pte_exec(pte_t pte) { return !(pte_val(pte) & _PAGE_NX); }
-+#endif
-+#endif
-+
- // ============================================================
- /* globals */
-
-@@ -2356,7 +2406,7 @@ void ATI_API_CALL __ke_put_vm_page_table
- #ifndef ptep_clear_flush_dirty
- #define ptep_clear_flush_dirty(__vma, __address, __ptep) \
- ({                                                     \
--    int __dirty = ptep_test_and_clear_dirty(__ptep);   \
-+    int __dirty = ptep_test_and_clear_dirty(__vma, __address, __ptep);        
 \
-     if (__dirty)                                       \
-         flush_tlb_page(__vma, __address);              \
-     __dirty;                                           \
-@@ -5303,7 +5353,7 @@ unsigned int ATI_API_CALL KAS_Spinlock_R
- /** \brief Type definition of the structure describing Slab Cache object */
- typedef struct tag_kasSlabCache_t
- {
--    kmem_cache_t* cache;        /* OS slab cache object */
-+    struct kmem_cache *cache; /* OS slab cache object */
-     spinlock_t lock;            /* OS spinlock object protecting the cache */
-     unsigned int routine_type;  /* Type of routine the cache might be 
accessed from */
-     char name[14];              /* Cache object name (kernel 2.4 restricts 
its length to 19 chars) */
-@@ -5349,7 +5399,7 @@ unsigned int ATI_API_CALL KAS_SlabCache_
-     DBG_TRACE("creating slab object '%s'", slabcache_obj->name);
-
-     if ((slabcache_obj->cache =
--            kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL, 
NULL)))
-+            kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL)))
-     {
-         ret = 1;
-     }
diff --git a/source/x11-extra/fglrx-fwlive/fglrx-firegl_public.c-2.6.24.patch 
b/source/x11-extra/fglrx-fwlive/fglrx-firegl_public.c-2.6.24.patch
new file mode 100644
index 0000000..740eb1f
--- /dev/null
+++ b/source/x11-extra/fglrx-fwlive/fglrx-firegl_public.c-2.6.24.patch
@@ -0,0 +1,104 @@
+--- lib/modules/fglrx/build_mod/firegl_public.c.orig   2007-08-10 
23:59:21.000000000 +0200
++++ lib/modules/fglrx/build_mod/firegl_public.c        2007-08-13 
20:00:26.000000000 +0200
+@@ -214,6 +214,56 @@
+ #define preempt_enable()
+ #endif
+
++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22)
++#if defined(__i386__)
++#define ptep_test_and_clear_dirty(vma, addr, ptep) ({                  \
++       int __ret = 0;                                                  \
++       if (pte_dirty(*(ptep)))                                         \
++               __ret = test_and_clear_bit(_PAGE_BIT_DIRTY,             \
++                                               &(ptep)->pte_low);      \
++       if (__ret)                                                      \
++               pte_update((vma)->vm_mm, addr, ptep);                   \
++       __ret;                                                          \
++})
++
++static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
++static inline int pte_user(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
++#ifdef CONFIG_X86_PAE
++/*
++ * Is the pte executable?
++ */
++static inline int pte_x(pte_t pte)
++{
++        return !(pte_val(pte) & _PAGE_NX);
++}
++
++/*
++ * All present user-pages with !NX bit are user-executable:
++ */
++static inline int pte_exec(pte_t pte)
++{
++        return pte_user(pte) && pte_x(pte);
++}
++#else
++static inline int pte_exec(pte_t pte)
++{
++        return pte_user(pte);
++}
++#endif        /* PAE */
++
++#elif defined(__x86_64__)
++static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma,
++                                      unsigned long addr, pte_t *ptep)
++{
++      if (!pte_dirty(*ptep))
++              return 0;
++      return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte);
++}
++static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; }
++static inline int pte_exec(pte_t pte) { return !(pte_val(pte) & _PAGE_NX); }
++#endif
++#endif
++
+ // ============================================================
+ /* globals */
+
+@@ -2356,7 +2406,7 @@ void ATI_API_CALL __ke_put_vm_page_table
+ #ifndef ptep_clear_flush_dirty
+ #define ptep_clear_flush_dirty(__vma, __address, __ptep) \
+ ({                                                     \
+-    int __dirty = ptep_test_and_clear_dirty(__ptep);   \
++    int __dirty = ptep_test_and_clear_dirty(__vma, __address, __ptep);        
 \
+     if (__dirty)                                       \
+         flush_tlb_page(__vma, __address);              \
+     __dirty;                                           \
+@@ -2986,7 +2986,7 @@
+ {
+     return request_irq(irq,
+         (void(*)(int, void *, struct pt_regs *))handler,
+-        SA_SHIRQ, dev_name, dev_id);
++        IRQF_SHARED, dev_name, dev_id);
+ }
+
+ void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id)
+@@ -3009,7 +3009,7 @@
+     irq_handler_func = handler;
+     return request_irq(irq,
+         ke_irq_handler_wrap,
+-        SA_SHIRQ, dev_name, dev_id);
++        IRQF_SHARED, dev_name, dev_id);
+ }
+
+ void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id)
+@@ -5303,7 +5353,7 @@ unsigned int ATI_API_CALL KAS_Spinlock_R
+ /** \brief Type definition of the structure describing Slab Cache object */
+ typedef struct tag_kasSlabCache_t
+ {
+-    kmem_cache_t* cache;        /* OS slab cache object */
++    struct kmem_cache *cache; /* OS slab cache object */
+     spinlock_t lock;            /* OS spinlock object protecting the cache */
+     unsigned int routine_type;  /* Type of routine the cache might be 
accessed from */
+     char name[14];              /* Cache object name (kernel 2.4 restricts 
its length to 19 chars) */
+@@ -5349,7 +5399,7 @@ unsigned int ATI_API_CALL KAS_SlabCache_
+     DBG_TRACE("creating slab object '%s'", slabcache_obj->name);
+
+     if ((slabcache_obj->cache =
+-            kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL, 
NULL)))
++            kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL)))
+     {
+         ret = 1;
+     }
diff --git a/source/x11-extra/fglrx-fwlive/fglrx-fwlive.install 
b/source/x11-extra/fglrx-fwlive/fglrx-fwlive.install
deleted file mode 100644
index 7c80936..0000000
--- a/source/x11-extra/fglrx-fwlive/fglrx-fwlive.install
+++ /dev/null
@@ -1,17 +0,0 @@
-post_install()
-{
-       echo 'You have successfully installed the ATi proprietary driver!'
-       echo 'To configure your xserver please run aticonfig!'
-       echo 'Before using X please restart your computer!'
-}
-
-post_upgrade()
-{
-       post_install $1
-}
-
-op=$1
-shift
-$op $*
-
-# vim: ft=sh
diff --git a/source/x11-extra/fglrx-fwlive/fglrx.install 
b/source/x11-extra/fglrx-fwlive/fglrx.install
new file mode 100644
index 0000000..7c80936
--- /dev/null
+++ b/source/x11-extra/fglrx-fwlive/fglrx.install
@@ -0,0 +1,17 @@
+post_install()
+{
+       echo 'You have successfully installed the ATi proprietary driver!'
+       echo 'To configure your xserver please run aticonfig!'
+       echo 'Before using X please restart your computer!'
+}
+
+post_upgrade()
+{
+       post_install $1
+}
+
+op=$1
+shift
+$op $*
+
+# vim: ft=sh
diff --git a/source/x11-extra/fglrx-fwlive/fglrx_module-fwlive.install 
b/source/x11-extra/fglrx-fwlive/fglrx_module-fwlive.install
deleted file mode 100644
index 92f6293..0000000
--- a/source/x11-extra/fglrx-fwlive/fglrx_module-fwlive.install
+++ /dev/null
@@ -1,23 +0,0 @@
-post_install()
-{
-       [ `grep fglrx < /etc/sysconfig/modules|wc -l` == 0 ] && \
-       echo 'fglrx' >> /etc/sysconfig/modules
-       /sbin/depmod -a $_F_kernelmod_uname
-}
-
-post_upgrade()
-{
-       post_install $1
-}
-
-pre_remove()
-{
-       [ ! `/sbin/lsmod|grep fglrx|wc -l` == 0 ] && /sbin/rmmod fglrx
-       sed -i 's|fglrx||g' /etc/sysconfig/modules
-}
-
-op=$1
-shift
-$op $*
-
-# vim: ft=sh
diff --git a/source/x11-extra/fglrx-fwlive/fglrx_module.install 
b/source/x11-extra/fglrx-fwlive/fglrx_module.install
new file mode 100644
index 0000000..92f6293
--- /dev/null
+++ b/source/x11-extra/fglrx-fwlive/fglrx_module.install
@@ -0,0 +1,23 @@
+post_install()
+{
+       [ `grep fglrx < /etc/sysconfig/modules|wc -l` == 0 ] && \
+       echo 'fglrx' >> /etc/sysconfig/modules
+       /sbin/depmod -a $_F_kernelmod_uname
+}
+
+post_upgrade()
+{
+       post_install $1
+}
+
+pre_remove()
+{
+       [ ! `/sbin/lsmod|grep fglrx|wc -l` == 0 ] && /sbin/rmmod fglrx
+       sed -i 's|fglrx||g' /etc/sysconfig/modules
+}
+
+op=$1
+shift
+$op $*
+
+# vim: ft=sh
diff --git a/source/x11-extra/fglrx-fwlive/libGL.la 
b/source/x11-extra/fglrx-fwlive/libGL.la
new file mode 100644
index 0000000..5739533
--- /dev/null
+++ b/source/x11-extra/fglrx-fwlive/libGL.la
@@ -0,0 +1,32 @@
+# libGL.la - a libtool library file
+# Generated by ltmain.sh - GNU libtool 1.4 (1.920 2001/04/24 23:26:18)
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='libGL.so.1'
+
+# Names of this library.
+library_names='libGL.so.1.2 libGL.so.1 libGL.so'
+
+# The name of the static archive.
+old_library=''
+
+# Libraries that this one depends upon.
+dependency_libs=' -L/usr/lib -lSM -lICE -lXmu -lXt -lXext -lXi -lX11 -ldl 
-lpthread        '
+
+# Version information for libGL.
+current=3
+age=2
+revision=0
+
+# Is this an already installed library?
+installed=yes
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='/usr/lib'
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to