[oe] [patch] Libxml++ ptest target paths fix

Lewis, Nick nick.lewis at usa.g4s.com
Mon Jun 16 13:56:25 UTC 2014


>From 135ef5152b5b50e230940c2822b2eb4371072bb0 Mon Sep 17 00:00:00 2001
From: Nick Lewis <nick.lewis at usa.g4s.com>
Date: Mon, 16 Jun 2014 14:39:20 +0100
Subject: [PATCH] Libxmlxx ptest target paths fix

Signed-off-by: Nick Lewis <nick.lewis at usa.g4s.com>
---
 .../libxml/libxml++-2.37.1/libxml++_ptest.patch    | 23 +++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch b/meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch
index 1e847be..82960f1 100644
--- a/meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch
+++ b/meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch
@@ -12,10 +12,19 @@ index d4aadb1..0e36756 100644
  # Optional: auto-generate the ChangeLog file from the git log on make dist
  include $(top_srcdir)/macros/dist-changelog.am
 diff --git a/examples/Makefile.am b/examples/Makefile.am
-index d9541ca..c28b49c 100644
+index d9541ca..c27e088 100644
 --- a/examples/Makefile.am
 +++ b/examples/Makefile.am
-@@ -36,6 +36,23 @@ check_PROGRAMS = \
+@@ -19,6 +19,8 @@ AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I. $(LIBXMLXX_CFLAGS)
+ AM_CXXFLAGS = $(LIBXMLXX_WXXFLAGS)
+ LDADD = $(top_builddir)/libxml++/libxml++-$(LIBXMLXX_API_VERSION).la $(LIBXMLXX_LIBS)
+
++LOG_DRIVER = $(SHELL) ../macros/test-driver
++
+ check_PROGRAMS = \
+   dom_build/dom_build \
+   dom_parse_entities/dom_parse_entities \
+@@ -36,6 +38,23 @@ check_PROGRAMS = \
    schemavalidation/schemavalidation \
    textreader/textreader

@@ -39,20 +48,20 @@ index d9541ca..c28b49c 100644
  # Shell scripts that call the example programs.
  check_SCRIPTS = \
    dom_build/make_check.sh \
-@@ -147,10 +164,10 @@ dist_noinst_DATA = \
+@@ -147,10 +166,10 @@ dist_noinst_DATA = \
  # file are located in different directories.
  dom_read_write/make_check.sh: Makefile
        echo '# Generated and used by "make check"' >$@
 -      echo 'dom_read_write/dom_read_write "$(srcdir)/dom_read_write/example.xml" dom_read_write/example_output.xml >/dev/null' >>$@
-+      echo 'dom_read_write/.libs/dom_read_write "$(srcdir)/dom_read_write/example.xml" dom_read_write/example_output.xml >/dev/null' >>$@
++      echo 'cd dom_read_write && .libs/dom_read_write "example.xml" example_output.xml >/dev/null' >>$@
        chmod +x $@

 -script_template = cd "$(srcdir)/<!progname!>" && "$(abs_builddir)/<!progname!>/<!progname!>" >/dev/null
-+script_template = cd "$(srcdir)/<!progname!>" && ".libs/<!progname!>" >/dev/null
++script_template = cd "<!progname!>" && ".libs/<!progname!>" >/dev/null
  standard_scripts = $(filter-out dom_read_write/make_check.sh,$(check_SCRIPTS))

  # All other script files are generated like so:
-@@ -162,3 +179,18 @@ $(standard_scripts): Makefile
+@@ -162,3 +181,18 @@ $(standard_scripts): Makefile
  CLEANFILES = \
    dom_read_write/example_output.xml \
    $(check_SCRIPTS)
@@ -65,7 +74,7 @@ index d9541ca..c28b49c 100644
 +      $(MKDIR_P) $(DESTDIR)/examples
 +      cp --parents $(check_DOTLIBS) $(DESTDIR)/examples
 +      cp --parents $(check_SCRIPTS) $(DESTDIR)/examples
-+      $(foreach i, $(dist_noinst_DATA), cp --parents $(srcdir)/$(i) $(DESTDIR)/examples;)
++      cd $(srcdir) && cp --parents $(dist_noinst_DATA) $(DESTDIR)/examples
 +      cp Makefile $(DESTDIR)/examples
 +      $(MKDIR_P) $(DESTDIR)/macros
 +      cp $(srcdir)/../macros/test-driver $(DESTDIR)/macros
--
1.9.1


The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.

This communication may contain information which is confidential, personal and/or privileged.

It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited.

Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them.

Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity.

This e-mail has been scanned for all viruses by MessageLabs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Libxmlxx-ptest-target-paths-fix.patch
Type: application/octet-stream
Size: 3380 bytes
Desc: 0001-Libxmlxx-ptest-target-paths-fix.patch
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20140616/cf2c17f9/attachment-0002.obj>


More information about the Openembedded-devel mailing list