[libomxil-bellagio/f17] Fix registration error patch

Nicolas Chauvet kwizart at fedoraproject.org
Sun Dec 16 22:53:55 UTC 2012


commit 5b737be63bc428ff3faf0ac7f2539d7a1d8b9c14
Author: Nicolas Chauvet <kwizart at gmail.com>
Date:   Sun Dec 16 23:53:29 2012 +0100

    Fix registration error patch

 libomxil-bellagio-0.9.3-unused.patch |    5 +++--
 libomxil-bellagio.spec               |    5 ++++-
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libomxil-bellagio-0.9.3-unused.patch b/libomxil-bellagio-0.9.3-unused.patch
index a828ea4..936084c 100644
--- a/libomxil-bellagio-0.9.3-unused.patch
+++ b/libomxil-bellagio-0.9.3-unused.patch
@@ -1,15 +1,16 @@
 diff -up libomxil-bellagio-0.9.3/src/omxregister.c.unused libomxil-bellagio-0.9.3/src/omxregister.c
 --- libomxil-bellagio-0.9.3/src/omxregister.c.unused	2011-01-12 08:53:26.000000000 +0100
-+++ libomxil-bellagio-0.9.3/src/omxregister.c	2012-09-08 18:34:28.229323842 +0200
++++ libomxil-bellagio-0.9.3/src/omxregister.c	2012-12-10 22:02:28.621695659 +0100
 @@ -248,7 +248,15 @@ static int buildComponentsList(FILE* omx
  						}
  						fptr(stComponents);
  						err = fwrite(lib_absolute_path, 1, strlen(lib_absolute_path), omxregistryfp);
+-						err = fwrite("\n", 1, 1, omxregistryfp);
 +						if (err != strlen(lib_absolute_path)) {
 +							DEBUG(DEB_LEV_ERR, "Failed to write %zu bytes to fd %d\n", strlen(lib_absolute_path), fileno(omxregistryfp));
 +							continue;
 +						}
- 						err = fwrite("\n", 1, 1, omxregistryfp);
++						err = fwrite("\n", 1, strlen(buffer), omxregistryfp);
 +						if (err != strlen(buffer)) {
 +							DEBUG(DEB_LEV_ERR, "Failed to write %zu bytes to fd %d\n", strlen(buffer), fileno(omxregistryfp));
 +							continue;
diff --git a/libomxil-bellagio.spec b/libomxil-bellagio.spec
index 0002957..1d63ff3 100644
--- a/libomxil-bellagio.spec
+++ b/libomxil-bellagio.spec
@@ -1,6 +1,6 @@
 Name:           libomxil-bellagio
 Version:        0.9.3
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        OpenMAX Integration Layer
 
 Group:          System Environment/Libraries
@@ -119,6 +119,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
 
 
 %changelog
+* Sun Dec 16 2012 Nicolas Chauvet <kwizart at gmail.com> - 0.9.3-6
+- Fix registration error patch
+
 * Sun Dec 09 2012 Nicolas Chauvet <kwizart at gmail.com> - 0.9.3-5
 - Fix registration error rhbz#882743
 - Fix missing symbol rhbz#885402 - patch from qais.yousef at imgtec.com


More information about the scm-commits mailing list