rtl8723bs: 6918e9b2ff29 -> 2016-04-11, fix build against 4.7

Upstream
e71a5fc58c
adds linux 4.7 support; all subsequent commits are error fixes so we
bump to current HEAD for good measure.

Built against linux and linux_latest.

Mark as broken on -grsec, seems incompatible with PaX
constification:
> 76fb2-src/hal/rtl8723b_hal_init.c:2186:26: error: assignment of member
'free_hal_data' in read-only object
  pHalFunc->free_hal_data = &rtl8723b_free_hal_data;

and so on.
This commit is contained in:
Joachim Fasting 2016-08-29 02:07:59 +02:00
parent f16d3800e1
commit e0ee5dc04f
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08
2 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{ stdenv, linuxPackages }:
with stdenv.lib;
stdenv.mkDerivation {
name = "rtl8723bs-firmware-${linuxPackages.rtl8723bs.rev}";
name = "rtl8723bs-firmware-${linuxPackages.rtl8723bs.version}";
inherit (linuxPackages.rtl8723bs) src;
phases = [ "unpackPhase" "installPhase" ];

View File

@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, nukeReferences, kernel }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "rtl8723bs-${kernel.version}-${rev}";
rev = "6918e9b2ff297b1cc7fde193e72452c33c10e1c8";
name = "rtl8723bs-${kernel.version}-${version}";
version = "2016-04-11";
src = fetchFromGitHub {
owner = "hadess";
repo = "rtl8723bs";
inherit rev;
sha256 = "07srd457wnz29nvvq02wz66s387bhjbydnmbs3qr7ljprabhsgmi";
rev = "11ab92d8ccd71c80f0102828366b14ef6b676fb2";
sha256 = "05q7mf12xcb00v6ba4wwvqi53q7ph5brfkj17xf6vkx4jr7xxnmm";
};
buildInputs = [ nukeReferences ];
@ -33,7 +33,8 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/hadess/rtl8723bs";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
broken = ! versionAtLeast kernel.version "3.19";
broken = (! versionAtLeast kernel.version "3.19")
|| (kernel.features.grsecurity or false);
maintainers = with maintainers; [ elitak ];
};
}