I have made the following changes intended for : nemo:devel:hw:ti:omap3:n9xx-common / ti-omap3-sgx
Please review and accept or decline. BOSS has already run some checks on this request. See the "Messages from BOSS" section below. https://build.merproject.org//request/show/206 Thank You, Marko Saukko [This message was auto-generated] --- Request # 206: Messages from BOSS: State: review at 2013-04-13T20:54:30 by cibot Reviews: accepted by cibot : Prechecks succeeded. new for nemo:devel:hw:ti:omap3:n9xx-common : Please replace this text with a review and approve/reject the review (not the SR). BOSS will take care of the rest Changes: submit: home:sage:branches:nemo:devel:hw:ti:omap3:n9xx-common / ti-omap3-sgx -> nemo:devel:hw:ti:omap3:n9xx-common / ti-omap3-sgx changes files: -------------- --- ti-omap3-sgx.changes +++ ti-omap3-sgx.changes @@ -0,0 +1,10 @@ +* Sat Apr 13 2013 Marko Saukko <[email protected]> - 1.4.268.1 +- Add 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch to make warnings go away +- Merge libEGL, libGLESv1 and libGLESv2 to the main package as + all those binaries are needed by the pvrsinit script that is executed + after main package is installed. +- Ghost files that are created with pvrsrvinit script on the first run + so that they will be right even after updating the package +- Add 0001-Don-t-hide-error-messages.patch to show errors in journal when they happen +- Depend on kmod + new: ---- 0001-Don-t-hide-error-messages.patch 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch spec files: ----------- --- ti-omap3-sgx.spec +++ ti-omap3-sgx.spec @@ -10,12 +10,12 @@ # << macros Summary: ImgTec SGX drivers for TI OMAP3 -Version: 1.4.268 -Release: 0 +Version: 1.4.268.1 +Release: 1 Group: Graphics/Display and Graphics Adaptation License: TI Proprietary ExclusiveArch: armv7hl armv7nhl armv7thl armv7tnhl armv8el -Source0: %{name}-bin-%{version}-armv7hl.tar.bz2 +Source0: %{name}-bin-1.4.268-armv7hl.tar.bz2 Source1: license.txt Source2: %{name}-powervr.ini Source3: %{name}.udev @@ -24,14 +24,29 @@ Source6: ti-omap3-sgx.conf Source7: ti-omap3-sgx-update.sh Source100: ti-omap3-sgx.yaml +Patch0: 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch +Patch1: 0001-Don-t-hide-error-messages.patch Requires: coreutils Requires: grep +Requires: kmod >= 9 Requires: systemd Requires(preun): systemd Requires(post): /sbin/ldconfig Requires(post): systemd Requires(postun): /sbin/ldconfig Requires(postun): systemd +Provides: libEGL +Provides: libEGL.so.1 +Provides: libGLESv1 +Provides: libGLES_CM.so.1 +Provides: libGLESv2 +Provides: libGLESv2.so.2 +Provides: %{name}-libEGL > 1.4.268 +Provides: %{name}-libGLESv1 > 1.4.268 +Provides: %{name}-libGLESv2 > 1.4.268 +Obsoletes: %{name}-libEGL <= 1.4.268 +Obsoletes: %{name}-libGLESv1 <= 1.4.268 +Obsoletes: %{name}-libGLESv2 <= 1.4.268 %description OMAP3 drivers for SGX @@ -45,85 +60,47 @@ This package provides common development files for PowerVR SGX. -%package libEGL -Summary: EGL for SGX -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig -Provides: libEGL -Provides: libEGL.so.1 - -%description libEGL -This package.. - - %package libEGL-devel Summary: EGL development headers for SGX Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: %{name}-libEGL = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} Provides: libEGL-devel %description libEGL-devel -This package.. - - -%package libGLESv1 -Summary: GLESv1 for SGX -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig -Provides: libGLESv1 -Provides: libGLES_CM.so.1 - -%description libGLESv1 -This package.. +%{summary}. %package libGLESv1-devel Summary: GLESv1 development headers for SGX Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: %{name}-libGLESv1 = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} Provides: libGLESv1-devel %description libGLESv1-devel -This package.. - - -%package libGLESv2 -Summary: GLESv2 for SGX -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig -Provides: libGLESv2 -Provides: libGLESv2.so.2 - -%description libGLESv2 -This package.. +%{summary}. %package libGLESv2-devel Summary: GLESv2 development headers for SGX Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: %{name}-libGLESv2 = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} Provides: libGLESv2-devel %description libGLESv2-devel -This package.. +%{summary}. %prep -%setup -q -n %{name}-bin-%{version}-armv7hl +%setup -q -n %{name}-bin-1.4.268-armv7hl +# 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch +%patch0 -p1 +# 0001-Don-t-hide-error-messages.patch +%patch1 -p1 # >> setup cp -v %{SOURCE1} . cp -v %{SOURCE5} . @@ -190,18 +167,6 @@ /sbin/ldconfig systemctl daemon-reload -%post libEGL -p /sbin/ldconfig - -%postun libEGL -p /sbin/ldconfig - -%post libGLESv1 -p /sbin/ldconfig - -%postun libGLESv1 -p /sbin/ldconfig - -%post libGLESv2 -p /sbin/ldconfig - -%postun libGLESv2 -p /sbin/ldconfig - %files %defattr(-,root,root,-) # >> files @@ -209,24 +174,48 @@ %doc Meego_IMG-08172010-license_txt.doc %config %{_sysconfdir}/powervr.ini %config %{_sysconfdir}/udev/rules.d/10-pvrsrvkm.rules -%{_libdir}/libIMGegl*.so -%{_libdir}/libPVRScopeServices*.so -%{_libdir}/libglslcompiler*.so -%{_libdir}/libpvr2d*.so -%{_libdir}/libpvrPVR2D_BLITWSEGL*.so -%{_libdir}/libpvrPVR2D_DRI2WSEGL*.so -%{_libdir}/libpvrPVR2D_FLIPWSEGL*.so -%{_libdir}/libpvrPVR2D_FRONTWSEGL*.so -%{_libdir}/libpvrPVR2D_X11WSEGL*.so -%{_libdir}/libsrv_um*.so +%{_libdir}/libIMGegl_r12*.so +%ghost %{_libdir}/libIMGegl.so +%{_libdir}/libPVRScopeServices_r12*.so +%ghost %{_libdir}/libPVRScopeServices.so +%{_libdir}/libglslcompiler_r12*.so +%ghost %{_libdir}/libglslcompiler.so +%{_libdir}/libpvr2d_r12*.so +%ghost %{_libdir}/libpvr2d.so +%{_libdir}/libpvrPVR2D_BLITWSEGL_r12*.so +%ghost %{_libdir}/libpvrPVR2D_BLITWSEGL.so +%{_libdir}/libpvrPVR2D_DRI2WSEGL_r12*.so +%ghost %{_libdir}/libpvrPVR2D_DRI2WSEGL.so +%{_libdir}/libpvrPVR2D_FLIPWSEGL_r12*.so +%ghost %{_libdir}/libpvrPVR2D_FLIPWSEGL.so +%{_libdir}/libpvrPVR2D_FRONTWSEGL_r12*.so +%ghost %{_libdir}/libpvrPVR2D_FRONTWSEGL.so +%{_libdir}/libpvrPVR2D_X11WSEGL_r12*.so +%ghost %{_libdir}/libpvrPVR2D_X11WSEGL.so +%{_libdir}/libsrv_um_r12*.so +%ghost %{_libdir}/libsrv_um.so %attr(755,root,root) %{_sbindir}/pvrsrvinit_r* %attr(755,root,root) %{_sbindir}/pvrsrvinit /lib/systemd/system/%{name}.service /lib/systemd/system/basic.target.wants/%{name}.service -%{_sysconfdir}/modules-load.d/ti-omap3-sgx.conf +%config %{_sysconfdir}/modules-load.d/ti-omap3-sgx.conf -# Should be in it's own package. -%{_libdir}/libOpenVG*.so +# These files could be in their own packages, however +# pvrsinit requires these files when executed so splitting +# doesn't really make much sense. +%{_libdir}/libOpenVG_r12*.so +%ghost %{_libdir}/libOpenVG.so +%{_libdir}/libOpenVGU_r12*.so +%ghost %{_libdir}/libOpenVGU.so +%{_libdir}/libEGL_r12*.so +%ghost %{_libdir}/libEGL.so +%{_libdir}/libEGL.so.1 +%{_libdir}/libGLES_CM_r12*.so +%ghost %{_libdir}/libGLES_CM.so +%{_libdir}/libGLES_CM.so.1 +%{_libdir}/libGLESv2_r12*.so +%ghost %{_libdir}/libGLESv2.so +%{_libdir}/libGLESv2.so.2 # << files %files devel @@ -239,15 +228,6 @@ %{_includedir}/pvr2d.h # << files devel -%files libEGL -%defattr(-,root,root,-) -# >> files libEGL -%doc license.txt -%doc Meego_IMG-08172010-license_txt.doc -%{_libdir}/libEGL*.so -%{_libdir}/libEGL.so.1 -# << files libEGL - %files libEGL-devel %defattr(-,root,root,-) # >> files libEGL-devel @@ -257,15 +237,6 @@ %{_includedir}/EGL/*.h # << files libEGL-devel -%files libGLESv1 -%defattr(-,root,root,-) -# >> files libGLESv1 -%doc license.txt -%doc Meego_IMG-08172010-license_txt.doc -%{_libdir}/libGLES_CM*.so -%{_libdir}/libGLES_CM.so.1 -# << files libGLESv1 - %files libGLESv1-devel %defattr(-,root,root,-) # >> files libGLESv1-devel @@ -274,15 +245,6 @@ %{_includedir}/GLES/*.h # << files libGLESv1-devel -%files libGLESv2 -%defattr(-,root,root,-) -# >> files libGLESv2 -%doc license.txt -%doc Meego_IMG-08172010-license_txt.doc -%{_libdir}/libGLESv2*.so -%{_libdir}/libGLESv2.so.2 -# << files libGLESv2 - %files libGLESv2-devel %defattr(-,root,root,-) # >> files libGLESv2-devel other changes: -------------- ++++++ 0001-Don-t-hide-error-messages.patch (new) --- 0001-Don-t-hide-error-messages.patch +++ 0001-Don-t-hide-error-messages.patch @@ -0,0 +1,50 @@ +From a00eb8a5050b1cf007db4db121558fe7bd8a97f7 Mon Sep 17 00:00:00 2001 +From: Marko Saukko <[email protected]> +Date: Sat, 13 Apr 2013 20:24:45 +0000 +Subject: [PATCH] Don't hide error messages. + +Signed-off-by: Marko Saukko <[email protected]> +--- + usr/sbin/pvrsrvinit | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/usr/sbin/pvrsrvinit b/usr/sbin/pvrsrvinit +index 9ef0715..a309efd 100755 +--- a/usr/sbin/pvrsrvinit ++++ b/usr/sbin/pvrsrvinit +@@ -52,7 +52,7 @@ activate_driver_for_core_rev() + test -f /targets/links/scratchbox.config && exit 0 + + if [ "$1" == "--force" ]; then +- modprobe pvrsrvkm &> /dev/null ++ modprobe pvrsrvkm + mkdir -p /var/lib/opengles-sgx-img + touch /var/lib/opengles-sgx-img/upgrade + else +@@ -61,7 +61,7 @@ fi + + if [ \! -f /proc/pvr/version ]; then + if [ "$1" != "--force" ]; then +- echo "SGX driver failed to initialize" > /dev/console ++ echo "SGX driver failed to initialize" + fi + exit 1 + fi +@@ -70,12 +70,12 @@ SGX_CORE_REV=$(grep -Eo "SGX revision = ([0-9][.][0-9][.][0-9])" \ + /proc/pvr/version | cut -d= -f 2 | tr -d ". ") + + if [ "$SGX_CORE_REV" = "" ]; then +- echo "Unable to determine SGX core revision" > /dev/console ++ echo "Unable to determine SGX core revision" + exit 1 + fi + + if [ \! -f /usr/sbin/pvrsrvinit_r$SGX_CORE_REV ]; then +- echo "Unsupported SGX core revision" > /dev/console ++ echo "Unsupported SGX core revision" + exit 1 + fi + +-- +1.7.10.3 + ++++++ 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch (new) --- 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch +++ 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch @@ -0,0 +1,27 @@ +From ce850ef2b5ce549a7a02a521e315e59318b15390 Mon Sep 17 00:00:00 2001 +From: Marko Saukko <[email protected]> +Date: Sat, 13 Apr 2013 07:47:27 +0000 +Subject: [PATCH] If dir and/or file doesn't exist lets not cause warning. + +Signed-off-by: Marko Saukko <[email protected]> +--- + usr/sbin/pvrsrvinit | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/usr/sbin/pvrsrvinit b/usr/sbin/pvrsrvinit +index d099b4e..9ef0715 100755 +--- a/usr/sbin/pvrsrvinit ++++ b/usr/sbin/pvrsrvinit +@@ -83,8 +83,7 @@ fi + if [ "$(readlink /usr/lib/libsrv_um.so)" != "libsrv_um_r${SGX_CORE_REV}.so" -o \ + -e /var/lib/opengles-sgx-img/upgrade ]; then + activate_driver_for_core_rev $SGX_CORE_REV +- rm /var/lib/opengles-sgx-img/upgrade +- rmdir /var/lib/opengles-sgx-img ++ rm -rf /var/lib/opengles-sgx-img + fi + + if [ "$1" != "--force" ]; then +-- +1.7.10.3 + ++++++ ti-omap3-sgx.yaml --- ti-omap3-sgx.yaml +++ ti-omap3-sgx.yaml @@ -1,11 +1,11 @@ Name: ti-omap3-sgx Summary: ImgTec SGX drivers for TI OMAP3 -Version: 1.4.268 -Release: 0 +Version: 1.4.268.1 +Release: 1 Group: Graphics/Display and Graphics Adaptation License: TI Proprietary Sources: - - "%{name}-bin-%{version}-armv7hl.tar.bz2" + - "%{name}-bin-1.4.268-armv7hl.tar.bz2" - "license.txt" - "%{name}-powervr.ini" - "%{name}.udev" @@ -13,7 +13,9 @@ - "Meego_IMG-08172010-license_txt.doc" - "ti-omap3-sgx.conf" - "ti-omap3-sgx-update.sh" - +Patches: + - 0001-If-dir-and-or-file-doesn-t-exist-lets-not-cause-warn.patch + - 0001-Don-t-hide-error-messages.patch Description: OMAP3 drivers for SGX Configure: none Builder: none @@ -22,6 +24,23 @@ # mkdir, touch, grep required for pvrsrvinit - coreutils - grep + # modprobe + - kmod >= 9 +Provides: + - libEGL + - libEGL.so.1 + - libGLESv1 + - libGLES_CM.so.1 + - libGLESv2 + - libGLESv2.so.2 + - "%{name}-libEGL > 1.4.268" + - "%{name}-libGLESv1 > 1.4.268" + - "%{name}-libGLESv2 > 1.4.268" +Obsoletes: + - "%{name}-libEGL <= 1.4.268" + - "%{name}-libGLESv1 <= 1.4.268" + - "%{name}-libGLESv2 <= 1.4.268" + SubPackages: - Name: devel Summary: PowerVR SGX support development files @@ -29,62 +48,32 @@ Description: | This package provides common development files for PowerVR SGX. - - Name: libEGL - Summary: EGL for SGX - Group: Development/Libraries - Description: | - This package.. - Provides: - - libEGL - - libEGL.so.1 - - Name: libEGL-devel Summary: EGL development headers for SGX Group: Development/Libraries Description: | - This package.. + %{summary}. Requires: - - "%{name}-libEGL = %{version}-%{release}" - "%{name}-devel = %{version}-%{release}" Provides: - libEGL-devel - - Name: libGLESv1 - Summary: GLESv1 for SGX - Group: Development/Libraries - Description: | - This package.. - Provides: - - libGLESv1 - - libGLES_CM.so.1 - - Name: libGLESv1-devel Summary: GLESv1 development headers for SGX Group: Development/Libraries Description: | - This package.. + %{summary}. Requires: - - "%{name}-libGLESv1 = %{version}-%{release}" - "%{name}-devel = %{version}-%{release}" Provides: - libGLESv1-devel - - Name: libGLESv2 - Summary: GLESv2 for SGX - Group: Development/Libraries - Description: | - This package.. - Provides: - - libGLESv2 - - libGLESv2.so.2 - - Name: libGLESv2-devel Summary: GLESv2 development headers for SGX Group: Development/Libraries Description: | - This package.. + %{summary}. Requires: - - "%{name}-libGLESv2 = %{version}-%{release}" - "%{name}-devel = %{version}-%{release}" Provides: - libGLESv2-devel
