From e377ee5b8bf34061b633f5d14ea7f704b20b5c26 Mon Sep 17 00:00:00 2001 From: Qiu Tingting Date: Wed, 23 Aug 2023 10:35:21 +0800 Subject: fontconfig: Add ptest support Add a ptest for fontconfig. It is a backport for https://lists.openembedded.org/g/openembedded-core/topic/meta_oe_patch_v1/100753708 It should be deleted after yocto version up. SPEC-4753 Signed-off-by: Qiu Tingting Change-Id: Icfc3e3b4503000c02c2156f20bc8dc9ae3cbfa5b --- .../recipes-graphics/fontconfig/files/ptest.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-agl-test/recipes-graphics/fontconfig/files/ptest.patch (limited to 'meta-agl-test/recipes-graphics/fontconfig/files/ptest.patch') diff --git a/meta-agl-test/recipes-graphics/fontconfig/files/ptest.patch b/meta-agl-test/recipes-graphics/fontconfig/files/ptest.patch new file mode 100644 index 00000000..9033e2c5 --- /dev/null +++ b/meta-agl-test/recipes-graphics/fontconfig/files/ptest.patch @@ -0,0 +1,28 @@ +Fix compile problem for ptest + +Change SRCDIR and FONTFILE in test/Makefile.am for ptest. + +Upstream-Status: Inappropriate [OE-Specific] +Signed-off-by: Qiu Tingting + +diff -rNu a/test/Makefile.am b/test/Makefile.am +--- a/test/Makefile.am 2023-08-03 15:10:50.830916551 +0800 ++++ b/test/Makefile.am 2023-08-03 16:16:10.178859661 +0800 +@@ -76,7 +76,7 @@ + endif + check_PROGRAMS += test-bz89617 + test_bz89617_CFLAGS = \ +- -DSRCDIR="\"$(abs_srcdir)\"" ++ -DSRCDIR="\"/usr/lib/fontconfig/ptest/test/\"" + + test_bz89617_LDADD = $(top_builddir)/src/libfontconfig.la + TESTS += test-bz89617 +@@ -117,7 +117,7 @@ + -I$(top_builddir)/src \ + -I$(top_srcdir) \ + -I$(top_srcdir)/src \ +- -DFONTFILE='"$(abs_top_srcdir)/test/4x6.pcf"' \ ++ -DFONTFILE='"/usr/lib/fontconfig/ptest/test/4x6.pcf"' \ + -DHAVE_CONFIG_H \ + $(NULL) + test_bz106632_LDADD = $(top_builddir)/src/libfontconfig.la -- cgit 1.2.3-korg