[nvidia-340xx-kmod] patch for kernel-4.14
by Leigh Scott
commit cbbfd45432f253015ba2ad2d6ad277760c082302
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Thu Dec 7 18:12:32 2017 +0000
patch for kernel-4.14
4.14_kernel.patch | 27 +++++++++++++++++++++++++++
nvidia-340xx-kmod.spec | 7 ++++++-
2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/4.14_kernel.patch b/4.14_kernel.patch
new file mode 100644
index 0000000..6c7fb6a
--- /dev/null
+++ b/4.14_kernel.patch
@@ -0,0 +1,27 @@
+--- a/kernel/nv-drm.c
++++ b/kernel/nv-drm.c
+@@ -173,7 +173,11 @@
+ {
+ int ret = 0;
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
++ ret = drm_legacy_pci_init(&nv_drm_driver, pci_driver);
++#else
+ ret = drm_pci_init(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ return ret;
+ }
+@@ -183,7 +187,11 @@
+ )
+ {
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
++ drm_legacy_pci_exit(&nv_drm_driver, pci_driver);
++#else
+ drm_pci_exit(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ }
+
+
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index 3ea231c..59cc418 100644
--- a/nvidia-340xx-kmod.spec
+++ b/nvidia-340xx-kmod.spec
@@ -10,7 +10,7 @@ Name: nvidia-340xx-kmod
Epoch: 1
Version: 340.104
# Taken over by kmodtool
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -19,6 +19,7 @@ URL: http://www.nvidia.com/
Source11: nvidia-kmodtool-excludekernel-filterfile
Patch0: nv-linux-arm.patch
Patch1: 4.11_kernel.patch
+Patch2: 4.14_kernel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -48,6 +49,7 @@ tar --use-compress-program xz -xf %{_datadir}/%{name}-%{version}/%{name}-%{versi
# patch loop
%patch0 -p1
%patch1 -p1
+%patch2 -p1
for kernel_version in %{?kernel_versions} ; do
cp -a kernel _kmod_build_${kernel_version%%___*}
@@ -95,6 +97,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Dec 07 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 1:340.104-2
+- patch for kernel-4.14
+
* Tue Sep 19 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 1:340.104-1
- Update to 340.104
- Drop obsolete kernel patches
6 years, 11 months
[phonon-backend-vlc/f27] Rebuilt
by Nicolas Chauvet
Summary of changes:
b913ee9... Rebuilt (*)
(*) This commit already existed in another branch; no separate mail sent
6 years, 11 months
[phonon-backend-vlc] Rebuilt
by Nicolas Chauvet
commit b913ee9efd47f167db95949ea21e3937c9012578
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Dec 7 18:31:41 2017 +0100
Rebuilt
phonon-backend-vlc.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/phonon-backend-vlc.spec b/phonon-backend-vlc.spec
index 555091a..18168e0 100644
--- a/phonon-backend-vlc.spec
+++ b/phonon-backend-vlc.spec
@@ -1,7 +1,7 @@
Name: phonon-backend-vlc
Summary: VLC phonon backend
Version: 0.9.1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: LGPLv2+
URL: http://phonon.kde.org/
@@ -84,6 +84,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog
+* Thu Dec 07 2017 Nicolas Chauvet <kwizart(a)gmail.com> - 0.9.1-3
+- Rebuilt for libvlc
+
* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 0.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6 years, 11 months
[openshot/el7] Revert scm back to the state of the last good build of openshot on el7.
by Richard Shaw
commit d10299781aa4fc4bc46d95811302bb03fcac8fc5
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Thu Dec 7 08:05:08 2017 -0600
Revert scm back to the state of the last good build of openshot on el7.
openshot.spec | 260 ++++++++++++++++++++++++++--------------------------------
sources | 2 +-
2 files changed, 118 insertions(+), 144 deletions(-)
---
diff --git a/openshot.spec b/openshot.spec
index cb3816b..1688bd4 100644
--- a/openshot.spec
+++ b/openshot.spec
@@ -1,85 +1,79 @@
-# Redirect find_lang to our patched version
-%global find_lang %{_sourcedir}/openshot-find-lang.sh %{buildroot}
-
Name: openshot
-Version: 2.4.0
+Version: 1.4.3
Release: 3%{?dist}
-Summary: Create and edit videos and movies
+Summary: A GTK based non-linear video editor
Group: Applications/Multimedia
-License: GPLv3+
-URL: http://www.openshot.org
-
-Source0: https://github.com/OpenShot/%{name}-qt/archive/v%{version}/%{name}-qt-%{v...
-
-# QT translation files are installed to a non-standard location
-Source100: openshot-find-lang.sh
-
-BuildArch: noarch
-
-BuildRequires: python%{python3_pkgversion}-devel
-BuildRequires: python%{python3_pkgversion}-qt5-devel
-BuildRequires: python%{python3_pkgversion}-setuptools
-BuildRequires: libopenshot >= 0.1.8
-BuildRequires: libopenshot-audio
-BuildRequires: desktop-file-utils
-# To fix icon
-BuildRequires: ImageMagick
-
-Requires: python%{python3_pkgversion}-qt5
-Requires: python%{python3_pkgversion}-qt5-webkit
-Requires: python%{python3_pkgversion}-httplib2
-Requires: python%{python3_pkgversion}-libopenshot >= 0.1.8
-Requires: python%{python3_pkgversion}-zmq
-Requires: ffmpeg-libs
-
-%if 0%{?fedora}
-Recommends: openshot-lang
-Recommends: font(bitstreamverasans)
-%else
-Requires: openshot-lang
-%endif
+# All files are GPLv3+ except for files under openshot/uploads/youtube which
+# are ASL 2.0 and openshot/window/SimpleGtkBuilderApp.py which is LGPLv3 making
+# the effective license of openshot GPLv3.
+License: GPLv3
+URL: http://www.openshotvideo.com/
+
+Source0: http://launchpad.net/openshot/1.4/%{version}/+download/openshot-%{version...
+Source1: openshot.png
+
+Patch0: openshot-1.4.0-use_mlt-melt.diff
+Patch1: openshot-1.4.0-doc-install.diff
+
+BuildArch: noarch
+
+#BuildRequires: gettext
+BuildRequires: desktop-file-utils
+BuildRequires: python-devel
+# Resize icon
+BuildRequires: ImageMagick
+BuildRequires: exiv2
+
+Requires: mlt
+Requires: mlt-python
+Requires: ladspa
+Requires: notify-python
+Requires: pygoocanvas
+Requires: pygtk2-libglade
+Requires: python(abi) >= 2.5
+Requires: python-imaging
+Requires: python-httplib2
+Requires: pyxdg
+Requires: SDL
+Requires: sox
+Requires: librsvg2
+Requires: frei0r-plugins
+Requires: fontconfig
+# Needed because it owns icon directories
+Requires: hicolor-icon-theme
%description
-OpenShot Video Editor is a free, open-source, non-linear video editor. It
-can create and edit videos and movies using many popular video, audio,
-image formats. Create videos for YouTube, Flickr, Vimeo, Metacafe, iPod,
-Xbox, and many more common formats!
-
-Features include:
-* Multiple tracks (layers)
-* Compositing, image overlays, and watermarks
-* Support for image sequences (rotoscoping)
-* Key-frame animation
-* Video and audio effects (chroma-key)
-* Transitions (lumas and masks)
-* 3D animation (titles and simulations)
-* Upload videos (YouTube and Vimeo supported)
-
-
-%package lang
-Summary: Additional languages for OpenShot
-Requires: %{name} = %{version}-%{release}
-
-%description lang
-%{summary}.
+OpenShot Video Editor is a free, open-source, non-linear video editor, based on
+Python, GTK, and MLT. It can edit video and audio files, composite and
+transition video files, and mix multiple layers of video and audio together and
+render the output in many different formats.
%prep
-%autosetup -n %{name}-qt-%{version}
+%setup -q
+%patch0 -p1
+%patch1 -p1
+# Don't install unnecessary stuff
+sed -i -e '/lib\/mime\/packages/d' setup.py
%build
-%py3_build
+%{__python} setup.py build
%install
-%py3_install
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+# Remove unnecessary .po files
+rm %{buildroot}%{python_sitelib}/%{name}/locale/*/*/*.po
+rm %{buildroot}%{python_sitelib}/%{name}/locale/OpenShot/OpenShot.pot
+rm %{buildroot}%{python_sitelib}/%{name}/locale/README
# We strip bad shebangs (/usr/bin/env) instead of fixing them
# since these files are not executable anyways
-find %{buildroot}/%{python3_sitelib} -name '*.py' \
+find %{buildroot}/%{python_sitelib} -name '*.py' \
-exec grep -q '^#!' '{}' \; -print | while read F
do
awk '/^#!/ {if (FNR == 1) next;} {print}' $F >chopped
@@ -88,113 +82,72 @@ do
done
# Validate desktop file
-desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt.desktop
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
# Move icon files to the preferred location
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ \
- %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
-mv %{buildroot}%{_datadir}/pixmaps/%{name}-qt.svg \
+ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
+mv %{buildroot}%{_datadir}/pixmaps/%{name}.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
+cp -p %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
-# Provided icon is not square
-convert xdg/openshot-qt.png -virtual-pixel Transparent -set option:distort:viewport "%[fx:max(w,h)]x%[fx:max(w,h)]-%[fx:max((h-w)/2,0)]-%[fx:max((w-h)/2,0)]" -filter point -distort SRT 0 +repage %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/openshot-qt.png
+# modify find-lang.sh to deal with gettext .mo files under
+# openshot/locale
+%{__sed} -e 's|/share/locale/|/%{name}/locale/|' \
+ /usr/lib/rpm/find-lang.sh \
+ > find-lang-modified.sh
-%find_lang OpenShot --with-qt
+sh find-lang-modified.sh %{buildroot} OpenShot %{name}.lang
+find %{buildroot}%{python_sitelib}/%{name}/locale -type d | while read dir
+do
+ echo "%%dir ${dir#%{buildroot}}" >> %{name}.lang
+done
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+update-desktop-database &> /dev/null || :
+update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
+update-desktop-database &> /dev/null || :
+update-mime-database %{_datadir}/mime &> /dev/null || :
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-%files
-%license COPYING
-%doc AUTHORS README
+%files -f %{name}.lang
+%doc AUTHORS COPYING README
+%{_datadir}/gnome/help/openshot/
+%{_datadir}/omf/openshot/
%{_bindir}/*
-%{_datadir}/applications/%{name}-qt.desktop
+%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/mime/packages/*
-%{python3_sitelib}/%{name}_qt/
-%exclude %{python3_sitelib}/%{name}_qt/locale
-%{python3_sitelib}/*egg-info
-%{_prefix}/lib/mime/packages/openshot-qt
-
-%files lang -f OpenShot.lang
-%dir %{python3_sitelib}/%{name}_qt/locale
+%dir %{python_sitelib}/%{name}
+%{python_sitelib}/%{name}/*.py*
+%{python_sitelib}/%{name}/blender
+%{python_sitelib}/%{name}/classes
+%{python_sitelib}/%{name}/effects
+%{python_sitelib}/%{name}/export_presets
+%{python_sitelib}/%{name}/images
+%{python_sitelib}/%{name}/language
+%{python_sitelib}/%{name}/profiles
+%{python_sitelib}/%{name}/themes
+%{python_sitelib}/%{name}/titles
+%{python_sitelib}/%{name}/transitions
+%{python_sitelib}/%{name}/uploads
+%{python_sitelib}/%{name}/windows
+%{python_sitelib}/*egg-info
+%{_mandir}/man*/*
%changelog
-* Wed Oct 25 2017 Richard Shaw <hobbes1069(a)gmail.com> - 2.4.0-3
-- Add recommends for Vera Sans font, fixes RFBZ#5677.
-
-* Mon Sep 11 2017 Sérgio Basto <sergio(a)serjux.com> - 2.4.0-2
-- Also requires libopenshot >= 0.1.8
-
-* Fri Sep 08 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 2.4.0-1
-- Update to 2.4.0
-- Use python macros
-- Remove obsolete scriptlets
-
-* Sun Sep 03 2017 Sérgio Basto <sergio(a)serjux.com> - 2.3.4-1
-- Update to 2.3.4
-
-* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 2.3.3-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Fri May 12 2017 Richard Shaw <hobbes1069(a)gmail.com> - 2.3.2-1
-- Update to latest upstream release.
-
-* Sat Apr 29 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 2.3.1-2
-- Rebuild for ffmpeg update
-
-* Mon Apr 03 2017 Sérgio Basto <sergio(a)serjux.com> - 2.3.1-1
-- Update to 2.3.1
-
-* Fri Mar 31 2017 Richard Shaw <hobbes1069(a)gmail.com> - 2.3.0-1
-- Update to latest upstream release.
-
-* Sat Mar 25 2017 Sérgio Basto <sergio(a)serjux.com> - 2.2.0-1
-- Update openshot to 2.2.0
-
-* Mon Mar 20 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org>
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Sun Dec 4 2016 Richard Shaw <hobbes1069(a)gmail.com> - 2.1.0-2
-- All translation files now included in openshot-lang, fixes RFBZ#4358.
-- Change dependency on openshot-lang from Requires to Recommends.
-
-* Tue Aug 30 2016 Richard Shaw <hobbes1069(a)gmail.com> - 2.1.0-1
-- Update to latest upstream release.
-
-* Tue Aug 23 2016 Richard Shaw <hobbes1069(a)gmail.com> - 2.0.7-5
-- Install locale files.
-
-* Sat Jul 30 2016 Julian Sikorski <belegdol(a)fedoraproject.org> - 2.0.7-4
-- Rebuilt for ffmpeg-3.1.1
-
-* Wed Jul 20 2016 Sérgio Basto <sergio(a)serjux.com> - 2.0.7-3
-- Add python3-qt5-webkit to package requires
-
-* Mon Apr 18 2016 Richard Shaw <hobbes1069(a)gmail.com> - 2.0.7-2
-- Update to require python3-libopenshot.
-
-* Fri Apr 8 2016 Richard Shaw <hobbes1069(a)gmail.com> - 2.0.7-1
-- Update to latest upstream release.
-
-* Fri Mar 4 2016 Richard Shaw <hobbes1069(a)gmail.com> - 2.0.6-1
-- Update to latest upstream release.
-
-* Mon Jan 11 2016 Richard Shaw <hobbes1069(a)gmail.com> - 2.0.4-1
-- Update to latest upstream release.
-
* Mon Apr 6 2015 Richard Shaw <hobbes1069(a)gmail.com> - 1.4.3-3
- Fix broken icon file (BZ#3546).
- Add ladspa as a install requirement (BZ#3472).
@@ -221,3 +174,24 @@ fi
* Mon Jan 30 2012 Richard Shaw <hobbes1069(a)gmail.com> - 1.4.1-1
- Update to latest release.
+
+* Fri Sep 23 2011 Richard Shaw <hobbes1069(a)gmail.com> - 1.4.0-1
+- New release.
+
+* Sun Apr 10 2011 Richard Shaw <hobbes1069(a)gmail.com> - 1.3.0-2
+- Fixed spec file for packaging guidelines compliance.
+
+* Mon Feb 14 2011 Richard Shaw <hobbes1069(a)gmail.com> - 1.3.0-1
+- Release 1.3.0
+
+* Thu Oct 11 2010 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 1.2.2-1
+- Release 1.2.2
+
+* Tue Jun 22 2010 Renich Bon Ćirić <renich(a)woralelandia.com> - 1.1.3-1
+- Release 1.1.3
+
+* Tue Jan 12 2010 Zarko <zarko.pintar(a)gmail.com> - 1.0.0-1
+- Release 1.0.0
+
+* Thu Dec 04 2009 Zarko <zarko.pintar(a)gmail.com> - 0.9.54-1
+- initial release
diff --git a/sources b/sources
index 30a0155..fc381b1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-02710eb7698d0cd690b6c6e579ea8e7a openshot-qt-2.4.0.tar.gz
+5ec82a7e8b7700ee4a359458aedf19e9 openshot-1.4.3.tar.gz
6 years, 11 months
[nvidia-304xx-kmod] patch for kernel-4.14
by Nerijus Baliūnas
commit 4263265d311679461a0faca4e943b1aa8896030a
Author: Nerijus Baliūnas <nerijus(a)users.sourceforge.net>
Date: Wed Dec 6 20:17:45 2017 +0200
patch for kernel-4.14
4.14_kernel.patch | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
---
diff --git a/4.14_kernel.patch b/4.14_kernel.patch
new file mode 100644
index 0000000..6642189
--- /dev/null
+++ b/4.14_kernel.patch
@@ -0,0 +1,26 @@
+diff -ur a/kernel/nv-drm.c b/kernel/nv-drm.c
+--- a/kernel/nv-drm.c 2017-09-14 23:51:09.000000003 +0300
++++ b/kernel/nv-drm.c 2017-12-06 18:47:48.279729889 +0200
+@@ -121,7 +121,11 @@
+ {
+ int ret = 0;
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+ ret = drm_pci_init(&nv_drm_driver, pci_driver);
++#else
++ ret = drm_legacy_pci_init(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ return ret;
+ }
+@@ -131,6 +135,10 @@
+ )
+ {
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+ drm_pci_exit(&nv_drm_driver, pci_driver);
++#else
++ drm_legacy_pci_exit(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ }
6 years, 11 months
[nvidia-304xx-kmod] disable -Wsign-compare because of ./include/linux/cpumask.h:213:9: warning: comparison between signe
by Nerijus Baliūnas
commit 976ddea0b3be9ebb2a367c79ba4defb614df87d6
Author: Nerijus Baliūnas <nerijus(a)users.sourceforge.net>
Date: Wed Dec 6 20:17:21 2017 +0200
disable -Wsign-compare because of ./include/linux/cpumask.h:213:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
disable-warnings.patch | 12 ++++++++++++
nvidia-304xx-kmod.spec | 11 ++++++++---
2 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/disable-warnings.patch b/disable-warnings.patch
new file mode 100644
index 0000000..f793757
--- /dev/null
+++ b/disable-warnings.patch
@@ -0,0 +1,12 @@
+diff -ur a/kernel/Makefile.kbuild b/kernel/Makefile.kbuild
+--- a/kernel/Makefile.kbuild 2017-09-14 23:51:09.000000003 +0300
++++ b/kernel/Makefile.kbuild 2017-12-06 18:16:36.884825684 +0200
+@@ -64,7 +64,7 @@
+ #
+
+ EXTRA_CFLAGS += -I$(src)
+-EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wsign-compare -Wno-cast-qual -Wno-error
++EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error
+
+ #
+ # We rely on these two definitions below; if they aren't set, we set them to
diff --git a/nvidia-304xx-kmod.spec b/nvidia-304xx-kmod.spec
index ea9641b..e47f611 100644
--- a/nvidia-304xx-kmod.spec
+++ b/nvidia-304xx-kmod.spec
@@ -9,7 +9,7 @@
Name: nvidia-304xx-kmod
Version: 304.137
# Taken over by kmodtool
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -21,7 +21,8 @@ Source0: nvidia-kmod-data-%{version}.tar.xz
Source11: nvidia-304xx-kmodtool-excludekernel-filterfile
# https://anonscm.debian.org/viewvc/pkg-nvidia/packages/nvidia-graphics-dri...
-#Patch0: disable-mtrr.patch
+Patch0: disable-warnings.patch
+Patch1: 4.14_kernel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -48,7 +49,8 @@ kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} --filterf
for arch in x86 x64
do
pushd nvidiapkg-${arch}
-#patch0 -p0
+%patch0 -p1
+%patch1 -p1
popd
done
@@ -82,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Dec 06 2017 Nerijus Baliūnas <nerijus(a)users.sourceforge.net> - 304.137-3
+- patch for kernel-4.14
+
* Fri Sep 22 2017 Nerijus Baliūnas <nerijus(a)users.sourceforge.net> - 304.137-2
- remove no longer needed 4.12_kernel.patch
6 years, 11 months
[nvidia-304xx-kmod/f26] patch for kernel-4.14
by Nerijus Baliūnas
commit 87dddfc7c030c8a421c384e67a936ba72898fcd9
Author: Nerijus Baliūnas <nerijus(a)users.sourceforge.net>
Date: Wed Dec 6 20:11:22 2017 +0200
patch for kernel-4.14
4.14_kernel.patch | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
---
diff --git a/4.14_kernel.patch b/4.14_kernel.patch
new file mode 100644
index 0000000..6642189
--- /dev/null
+++ b/4.14_kernel.patch
@@ -0,0 +1,26 @@
+diff -ur a/kernel/nv-drm.c b/kernel/nv-drm.c
+--- a/kernel/nv-drm.c 2017-09-14 23:51:09.000000003 +0300
++++ b/kernel/nv-drm.c 2017-12-06 18:47:48.279729889 +0200
+@@ -121,7 +121,11 @@
+ {
+ int ret = 0;
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+ ret = drm_pci_init(&nv_drm_driver, pci_driver);
++#else
++ ret = drm_legacy_pci_init(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ return ret;
+ }
+@@ -131,6 +135,10 @@
+ )
+ {
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+ drm_pci_exit(&nv_drm_driver, pci_driver);
++#else
++ drm_legacy_pci_exit(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ }
6 years, 11 months