diff --git a/srcpkgs/catalyst/files/linux-4.0.patch b/srcpkgs/catalyst/files/linux-4.0.patch new file mode 100644 index 00000000000..2b77927b860 --- /dev/null +++ b/srcpkgs/catalyst/files/linux-4.0.patch @@ -0,0 +1,15 @@ +--- 14.12/common/lib/modules/fglrx/build_mod/kcl_str.c 2014-11-28 21:02:10.000000000 +0100 ++++ 14.12_2/common/lib/modules/fglrx/build_mod/kcl_str.c 2015-03-08 13:25:11.568396701 +0100 +@@ -169,7 +169,11 @@ + const char* s2, + KCL_TYPE_SizeSigned count) + { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0) + return strnicmp(s1, s2, count); ++#else ++ return strncasecmp(s1, s2, count); ++#endif + } + + /** \brief Locate character in string + diff --git a/srcpkgs/catalyst/template b/srcpkgs/catalyst/template index f807e4c4f22..618ec408ff8 100644 --- a/srcpkgs/catalyst/template +++ b/srcpkgs/catalyst/template @@ -4,7 +4,7 @@ _release="15.9" pkgname=catalyst version=15.201.1151 -revision=1 +revision=2 maintainer="Juan RP " license="Proprietary AMD license" homepage="http://www.amd.com" @@ -35,6 +35,7 @@ do_build() { /bin/sh ./*.run --extract fglrx-${version} cd fglrx-${version} + patch -Np1 -i ${FILESDIR}/linux-4.0.patch patch -Np1 -i ${FILESDIR}/kolasa_4.1_remove-IRQF_DISABLED.patch patch -Np1 -i ${FILESDIR}/fglrx_gpl_symbol.patch }