All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] postgresql: Use pkg-config for libxml2 dependency
@ 2014-06-20  9:27 wenzong.fan
  2014-06-20  9:52 ` Koen Kooi
  0 siblings, 1 reply; 2+ messages in thread
From: wenzong.fan @ 2014-06-20  9:27 UTC (permalink / raw)
  To: openembedded-devel

From: Wenzong Fan <wenzong.fan@windriver.com>

Use pkg-config for the libxml2 dependency, not the -config script.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 .../use-pkg-config-for-libxml2-dependency.patch    |   44 ++++++++++++++++++++
 .../recipes-support/postgresql/postgresql_9.2.4.bb |    1 +
 2 files changed, 45 insertions(+)
 create mode 100644 meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch

diff --git a/meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch b/meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch
new file mode 100644
index 0000000..d26701f
--- /dev/null
+++ b/meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch
@@ -0,0 +1,44 @@
+From 744bbd99a779deac244cebc30f21db9b77946eab Mon Sep 17 00:00:00 2001
+From: Wenzong Fan <wenzong.fan@windriver.com>
+Date: Thu, 19 Jun 2014 22:34:21 -0400
+Subject: [PATCH] postgresql: Use pkg-config for libxml2 dependency
+
+Use pkg-config for the libxml2 dependency, not the -config script.
+
+Upstream-Status: Pending
+
+Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
+---
+ configure.in |   16 ++++------------
+ 1 file changed, 4 insertions(+), 12 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 3bf9728..d768e9f 100644
+--- a/configure.in
++++ b/configure.in
+@@ -709,18 +709,10 @@ PGAC_ARG_BOOL(with, libxml, no, [build with XML support],
+               [AC_DEFINE([USE_LIBXML], 1, [Define to 1 to build with XML support. (--with-libxml)])])
+ 
+ if test "$with_libxml" = yes ; then
+-  AC_CHECK_PROGS(XML2_CONFIG, xml2-config)
+-  if test -n "$XML2_CONFIG"; then
+-    for pgac_option in `$XML2_CONFIG --cflags`; do
+-      case $pgac_option in
+-        -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
+-      esac
+-    done
+-    for pgac_option in `$XML2_CONFIG --libs`; do
+-      case $pgac_option in
+-        -L*) LDFLAGS="$LDFLAGS $pgac_option";;
+-      esac
+-    done
++  PKG_CHECK_MODULES(PKG_XML2, [libxml-2.0],,)
++  if test "x$PKG_XML2_CFLAGS" != "x"; then
++    CPPFLAGS="$CPPFLAGS $PKG_XML2_CFLAGS"
++    LDFLAGS="$LDFLAGS $PKG_XML2_LIBS"
+   fi
+ fi
+ 
+-- 
+1.7.9.5
+
diff --git a/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb b/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb
index 49ca53f..e45638d 100644
--- a/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb
+++ b/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb
@@ -7,6 +7,7 @@ PR = "${INC_PR}.0"
 SRC_URI += "\
     file://remove.autoconf.version.check.patch \
     file://ecpg-parallel-make-fix.patch \
+    file://use-pkg-config-for-libxml2-dependency.patch \
 "
 
 SRC_URI[md5sum] = "6ee5bb53b97da7c6ad9cb0825d3300dd"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-oe][PATCH] postgresql: Use pkg-config for libxml2 dependency
  2014-06-20  9:27 [meta-oe][PATCH] postgresql: Use pkg-config for libxml2 dependency wenzong.fan
@ 2014-06-20  9:52 ` Koen Kooi
  0 siblings, 0 replies; 2+ messages in thread
From: Koen Kooi @ 2014-06-20  9:52 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

wenzong.fan@windriver.com schreef op 20-06-14 11:27:
> From: Wenzong Fan <wenzong.fan@windriver.com>
> 
> Use pkg-config for the libxml2 dependency, not the -config script.
> 
> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> --- 
> .../use-pkg-config-for-libxml2-dependency.patch    |   44
> ++++++++++++++++++++ .../recipes-support/postgresql/postgresql_9.2.4.bb |
> 1 + 2 files changed, 45 insertions(+) create mode 100644
> meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch
>
>  diff --git
> a/meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch
> b/meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch
>
> 
new file mode 100644
> index 0000000..d26701f --- /dev/null +++
> b/meta-oe/recipes-support/postgresql/postgresql-9.2.4/use-pkg-config-for-libxml2-dependency.patch
>
> 
@@ -0,0 +1,44 @@
> +From 744bbd99a779deac244cebc30f21db9b77946eab Mon Sep 17 00:00:00 2001 
> +From: Wenzong Fan <wenzong.fan@windriver.com> +Date: Thu, 19 Jun 2014
> 22:34:21 -0400 +Subject: [PATCH] postgresql: Use pkg-config for libxml2
> dependency + +Use pkg-config for the libxml2 dependency, not the -config
> script. + +Upstream-Status: Pending + +Signed-off-by: Wenzong Fan
> <wenzong.fan@windriver.com> +--- + configure.in |   16 ++++------------ +
> 1 file changed, 4 insertions(+), 12 deletions(-) + +diff --git
> a/configure.in b/configure.in +index 3bf9728..d768e9f 100644 +---
> a/configure.in ++++ b/configure.in +@@ -709,18 +709,10 @@
> PGAC_ARG_BOOL(with, libxml, no, [build with XML support], +
> [AC_DEFINE([USE_LIBXML], 1, [Define to 1 to build with XML support.
> (--with-libxml)])]) + + if test "$with_libxml" = yes ; then +-
> AC_CHECK_PROGS(XML2_CONFIG, xml2-config) +-  if test -n "$XML2_CONFIG";
> then +-    for pgac_option in `$XML2_CONFIG --cflags`; do +-      case
> $pgac_option in +-        -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";; +-
> esac +-    done +-    for pgac_option in `$XML2_CONFIG --libs`; do +-
> case $pgac_option in +-        -L*) LDFLAGS="$LDFLAGS $pgac_option";; +-
> esac +-    done ++  PKG_CHECK_MODULES(PKG_XML2, [libxml-2.0],,) ++  if
> test "x$PKG_XML2_CFLAGS" != "x"; then ++    CPPFLAGS="$CPPFLAGS
> $PKG_XML2_CFLAGS" ++    LDFLAGS="$LDFLAGS $PKG_XML2_LIBS" +   fi + fi + 
> +-- +1.7.9.5

Since you are dropping the pgac_* processing, could you add a note that you
drooped it and why?

regards,

Koen



> + diff --git a/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb
> b/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb index
> 49ca53f..e45638d 100644 ---
> a/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb +++
> b/meta-oe/recipes-support/postgresql/postgresql_9.2.4.bb @@ -7,6 +7,7 @@
> PR = "${INC_PR}.0" SRC_URI += "\ 
> file://remove.autoconf.version.check.patch \ 
> file://ecpg-parallel-make-fix.patch \ +
> file://use-pkg-config-for-libxml2-dependency.patch \ "
> 
> SRC_URI[md5sum] = "6ee5bb53b97da7c6ad9cb0825d3300dd"
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFTpARLMkyGM64RGpERAg9hAJ98vjW1rta+ZUF+m/UepLYek9URCQCfW+f1
1i2dZoiq7OpvAgfIZ4E7n/o=
=MDCo
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-20  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20  9:27 [meta-oe][PATCH] postgresql: Use pkg-config for libxml2 dependency wenzong.fan
2014-06-20  9:52 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.