[Lsb-messages] /var/www/bzr/lsb/devel/desktop-test r478: fix lsb-xrender build (needs unistd.h)

Stew Benedict stewb at linux-foundation.org
Tue Feb 5 16:51:39 UTC 2013


------------------------------------------------------------
revno: 478
committer: Stew Benedict <stewb at linux-foundation.org>
branch nick: desktop-test
timestamp: Tue 2013-02-05 11:51:39 -0500
message:
  fix lsb-xrender build (needs unistd.h)
added:
  scripts/package/lsb-xrender-unistd.patch
modified:
  scripts/package/lsb-test-desktop.spec.sed
-------------- next part --------------
=== modified file 'scripts/package/lsb-test-desktop.spec.sed'
--- a/scripts/package/lsb-test-desktop.spec.sed	2011-08-29 18:52:33 +0000
+++ b/scripts/package/lsb-test-desktop.spec.sed	2013-02-05 16:51:39 +0000
@@ -28,6 +28,7 @@
 Patch8: cairo-test-ft-font-create-for-ft-face-uplift.patch
 Patch9: lsb-qt-bug-2515.patch
 Patch10: lsb-qt3-disable.patch
+Patch11: lsb-xrender-unistd.patch
 URL: http://www.linuxbase.org/test
 #Prefix: %{_prefix}
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -271,6 +272,14 @@
 %if %{save_journal}
   cp -f lsb-xrender/results/0001b/journal %{pwd}/xrenderbuild.journal
 %endif
+# needs unistd.h
+cd lsb-xrender
+patch -p0 -b -z .unistd < %{PATCH11}
+rm -f results/0001b/journal
+cd -
+# and rebuild
+CC=lsbcc make -C lsb-xrender/tests/rendercheck-1.1
+
 tcc -b -p lsb-freetype
 %if %{save_journal}
   cp -f lsb-freetype/results/0001b/journal %{pwd}/freetypebuild.journal
@@ -736,6 +745,9 @@
 
 #==================================================
 %changelog
+* Tue Feb 05 2013 Stew Benedict <stewb at linux-foundation.org>
+- patch lsb-xrender build (needs unistd.h, P11)
+
 * Wed Jun 01 2011 Stew Benedict <stewb at linux-foundation.org>
 - drop Qt3 tests for LSB >= 5.0 (P10, %%build_qt3 variable)
 

=== added file 'scripts/package/lsb-xrender-unistd.patch'
--- a/scripts/package/lsb-xrender-unistd.patch	1970-01-01 00:00:00 +0000
+++ b/scripts/package/lsb-xrender-unistd.patch	2013-02-05 16:51:39 +0000
@@ -0,0 +1,11 @@
+diff -up ./tests/rendercheck-1.1/main.c.unistd ./tests/rendercheck-1.1/main.c
+--- ./tests/rendercheck-1.1/main.c.unistd	2013-02-05 11:17:30.180599282 -0500
++++ ./tests/rendercheck-1.1/main.c	2013-02-05 11:17:43.982599287 -0500
+@@ -23,6 +23,7 @@
+ #include "rendercheck.h"
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <unistd.h>
+ #include <string.h>
+ #include <getopt.h>
+ 



More information about the lsb-messages mailing list