[packages/DirectFB] stop building drmkms by default

atler atler at pld-linux.org
Tue Jun 7 13:32:08 CEST 2022


commit 068d4f05ca4cf372ce9c00bcdc7338a83b36faa5
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jun 7 13:06:56 2022 +0200

    stop building drmkms by default
    
    drmkms system depends on libkms dropped by libdrm in 2.4.111. DirectFB
    made changes upstream to get rid of libkms in favor of gbm back in 2015
    but is not eager to release new version. make drmkms conditional and
    disable it until next upstream release.

 DirectFB.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/DirectFB.spec b/DirectFB.spec
index 69a9254..0dc6959 100644
--- a/DirectFB.spec
+++ b/DirectFB.spec
@@ -14,6 +14,7 @@
 %bcond_with	swfdec		# swfdec FLASH video provider [not ready for swfdec >= 0.6]
 %bcond_without	xine		# Xine video provider
 %bcond_without	xine_vdpau	# Xine/VDPAU video provider
+%bcond_with	drmkms		# DRM/KMS support
 #
 %ifarch sh4
 %define		with_sh772x	1
@@ -93,6 +94,7 @@ BuildRequires:	pkgconfig
 BuildRequires:	pkgconfig(egl)
 BuildRequires:	pkgconfig(gl)
 BuildRequires:	pkgconfig(glesv2)
+BuildRequires:	rpmbuild(macros) >= 1.527
 BuildRequires:	sed >= 4.0
 %{?with_swfdec:BuildRequires:	swfdec-devel >= 0.5.0}
 %{?with_swfdec:BuildRequires:	swfdec-devel < 0.6.0}
@@ -974,6 +976,7 @@ Statyczna biblioteka sawman.
 	--disable-silent-rules \
 	%{?with_avifile:--enable-avifile} \
 	--enable-divine \
+	%{__enable_disable drmkms} \
 	--enable-fast-install \
 	%{?with_ffmpeg:--enable-ffmpeg} \
 	%{?with_flash:--enable-flash} \
@@ -1211,9 +1214,11 @@ rm -rf $RPM_BUILD_ROOT
 %doc docs/html/*.{html,png}
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with drmkms}
 %files core-drmkms
 %defattr(644,root,root,755)
 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_drmkms_system.so
+%endif
 
 %files core-mesa
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/DirectFB.git/commitdiff/f65f152678e1438f1451ecff1205e98eba719992



More information about the pld-cvs-commit mailing list