commit c2800a0115be2aaba585a09b6d05e70a97b92ea5
Author: Jan RÄ™korajski <[email protected]>
Date:   Thu Dec 11 21:43:32 2014 +0100

    - fix build on kernels using gcc 4.9 features
    - rel 4

 gcc-4.9.patch  | 18 ++++++++++++++++++
 rtl8812au.spec |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index c613e3a..4dc3ae7 100644
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -19,7 +19,7 @@ exit 1
 %define                kpkg    %(echo %{_build_kernels} | tr , '\\n' | while 
read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define 
alt_kernel $n ; echo %%kernel_pkg ; done)
 %define                bkpkg   %(echo %{_build_kernels} | tr , '\\n' | while 
read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define 
alt_kernel $n ; echo %%build_kernel_pkg ; done)
 
-%define                rel     3
+%define                rel     4
 %define                snap    20140901
 %define                pname   rtl8812au
 Summary:       Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter
@@ -39,6 +39,7 @@ Patch1:               disable-debug.patch
 Patch2:                enable-cfg80211-support.patch
 Patch3:                update-cfg80211-support.patch
 Patch4:                warnings.patch
+Patch5:                gcc-4.9.patch
 BuildRequires: rpmbuild(macros) >= 1.678
 %{?with_dist_kernel:%{expand:%kbrs}}
 BuildRoot:     %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
@@ -87,6 +88,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %{expand:%bkpkg}
diff --git a/gcc-4.9.patch b/gcc-4.9.patch
new file mode 100644
index 0000000..19dfc2c
--- /dev/null
+++ b/gcc-4.9.patch
@@ -0,0 +1,18 @@
+--- rtl8812au_linux-master/core/rtw_debug.c~   2014-07-21 15:06:45.000000000 
+0200
++++ rtl8812au_linux-master/core/rtw_debug.c    2014-12-11 21:38:17.142784499 
+0100
+@@ -62,8 +62,15 @@
+ 
+ void dump_drv_version(void *sel)
+ {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wdate-time"
++#endif
+       DBG_871X_SEL_NL(sel, "%s %s\n", DRV_NAME, DRIVERVERSION);
+       DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
++#pragma GCC diagnostic pop
++#endif
+ }
+ 
+ void dump_log_level(void *sel)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/c2800a0115be2aaba585a09b6d05e70a97b92ea5

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to