summaryrefslogtreecommitdiff
path: root/x11-misc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-03-07 18:33:35 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-03-07 18:33:35 +0000
commit06ed2d7d2e127f80b97ec707c00b3c7ac66b1980 (patch)
tree6f4b75651fa3d59550664ca64e7540abc487e931 /x11-misc
parent4aea7c138416af7293bf8f36ace192ff23f520a0 (diff)
nvidia legacy drivers 390xx : add kernel 5.5 compat
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/nvidia-legacy-settings/files/nvidia-legacy-settings-fno-common.patch22
-rw-r--r--x11-misc/nvidia-legacy-settings/nvidia-legacy-settings-390.132-r2.ebuild (renamed from x11-misc/nvidia-legacy-settings/nvidia-legacy-settings-390.132-r1.ebuild)3
2 files changed, 24 insertions, 1 deletions
diff --git a/x11-misc/nvidia-legacy-settings/files/nvidia-legacy-settings-fno-common.patch b/x11-misc/nvidia-legacy-settings/files/nvidia-legacy-settings-fno-common.patch
new file mode 100644
index 00000000..be03fa27
--- /dev/null
+++ b/x11-misc/nvidia-legacy-settings/files/nvidia-legacy-settings-fno-common.patch
@@ -0,0 +1,22 @@
+--- a/src/gtk+-2.x/ctkvdpau.c
++++ b/src/gtk+-2.x/ctkvdpau.c
+@@ -103,6 +103,8 @@
+ const gchar* __video_mixer_attribute_help =
+ "This shows the video mixer attributes and any applicable ranges.";
+
++struct VDPAUDeviceImpl VDPAUDeviceFunctions;
++
+ static int queryOutputSurface(CtkVDPAU *ctk_vdpau, VdpDevice device,
+ VdpGetProcAddress *getProcAddress);
+
+--- a/src/gtk+-2.x/ctkvdpau.h
++++ b/src/gtk+-2.x/ctkvdpau.h
+@@ -46,7 +46,7 @@
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_VDPAU, CtkVDPAUClass))
+
+
+-struct VDPAUDeviceImpl {
++extern struct VDPAUDeviceImpl {
+
+ VdpGetErrorString *GetErrorString;
+ VdpGetProcAddress *GetProcAddress;
diff --git a/x11-misc/nvidia-legacy-settings/nvidia-legacy-settings-390.132-r1.ebuild b/x11-misc/nvidia-legacy-settings/nvidia-legacy-settings-390.132-r2.ebuild
index 96053387..e5c660a1 100644
--- a/x11-misc/nvidia-legacy-settings/nvidia-legacy-settings-390.132-r1.ebuild
+++ b/x11-misc/nvidia-legacy-settings/nvidia-legacy-settings-390.132-r2.ebuild
@@ -43,7 +43,8 @@ S=${WORKDIR}/nvidia-settings-${PV}
src_prepare() {
default
- eapply "${FILESDIR}"/nvidia-legacy-settings-linker.patch
+ eapply "${FILESDIR}"/"${PN}"-linker.patch
+ eapply "${FILESDIR}"/"${PN}"-fno-common.patch
}
src_compile() {