Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Subject: Re: [PATCH] ncurses: enforce creation of pkg-config files
Date: Mon, 25 Jul 2011 09:32:16 -0700	[thread overview]
Message-ID: <4E2D9A90.6070309@linux.intel.com> (raw)
In-Reply-To: <1311603506-14101-1-git-send-email-enrico.scholz@sigma-chemnitz.de>

On 07/25/2011 07:18 AM, Enrico Scholz wrote:
> ncurses does not create its .pc files when the /usr/lib/pkg-config
> directory does not exist in the sysroot.  Because ncurses will be built
> very early, this directory might be missing and .pc files will not be
> installed.
>
> Signed-off-by: Enrico Scholz<enrico.scholz@sigma-chemnitz.de>
> ---
>   .../ncurses/ncurses-5.9/pkgconfig-initial.patch    |   30 ++++++++++++++++++++
>   meta/recipes-core/ncurses/ncurses_5.9.bb           |    3 +-
>   2 files changed, 32 insertions(+), 1 deletions(-)
>   create mode 100644 meta/recipes-core/ncurses/ncurses-5.9/pkgconfig-initial.patch
>
> diff --git a/meta/recipes-core/ncurses/ncurses-5.9/pkgconfig-initial.patch b/meta/recipes-core/ncurses/ncurses-5.9/pkgconfig-initial.patch
> new file mode 100644
> index 0000000..e0cc9b0
> --- /dev/null
> +++ b/meta/recipes-core/ncurses/ncurses-5.9/pkgconfig-initial.patch
> @@ -0,0 +1,30 @@
> +Do not check for the existence of /usr/lib/pkg-config directory
> +
> +directory might not exist yet when building oe from scratch.
> +
Enrico,

Please add a Signed-off-by line and also review the Patch guidelines:

http://wiki.openembedded.org/index.php/Commit_Patch_Message_Guidelines

If possible, please also add the optional Upstream-Status: info.

Thanks
	Sau!


> +Index: ncurses-5.9/configure
> +===================================================================
> +--- ncurses-5.9.orig/configure
> ++++ ncurses-5.9/configure
> +@@ -3626,7 +3626,7 @@ echo $ECHO_N "checking if we should inst
> +		PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
> +	fi
> +	PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
> +-	if test -n "$PKG_CONFIG_LIBDIR"&&  test -d "$PKG_CONFIG_LIBDIR" ; then
> ++	if test -n "$PKG_CONFIG_LIBDIR" ; then
> +
> + # Check whether --enable-pc-files or --disable-pc-files was given.
> + if test "${enable_pc_files+set}" = set; then
> +Index: ncurses-5.9/configure.in
> +===================================================================
> +--- ncurses-5.9.orig/configure.in
> ++++ ncurses-5.9/configure.in
> +@@ -177,7 +177,7 @@ if test "$PKG_CONFIG" != no ; then
> +		PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[[^/]]*/[[^/]]*$,,'`/lib/pkgconfig
> +	fi
> +	PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
> +-	if test -n "$PKG_CONFIG_LIBDIR"&&  test -d "$PKG_CONFIG_LIBDIR" ; then
> ++	if test -n "$PKG_CONFIG_LIBDIR" ; then
> +		AC_ARG_ENABLE(pc-files,
> +			[  --enable-pc-files       generate and install .pc files for pkg-config],
> +			[enable_pc_files=$enableval],
> diff --git a/meta/recipes-core/ncurses/ncurses_5.9.bb b/meta/recipes-core/ncurses/ncurses_5.9.bb
> index 6d23c0c..c980b73 100644
> --- a/meta/recipes-core/ncurses/ncurses_5.9.bb
> +++ b/meta/recipes-core/ncurses/ncurses_5.9.bb
> @@ -1,9 +1,10 @@
>   require ncurses.inc
>
> -PR = "${INC_PR}.1"
> +PR = "${INC_PR}.2"
>
>   SRC_URI += "file://tic-hang.patch \
>               file://config.cache \
> +            file://pkgconfig-initial.patch \
>   "
>
>   SRC_URI[md5sum] = "8cb9c412e5f2d96bc6f459aa8c6282a1"



  reply	other threads:[~2011-07-25 16:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-25 14:18 [PATCH] ncurses: enforce creation of pkg-config files Enrico Scholz
2011-07-25 16:32 ` Saul Wold [this message]
2011-07-25 16:49 ` Phil Blundell
2011-07-25 17:10   ` Enrico Scholz
2011-07-25 17:31     ` Phil Blundell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E2D9A90.6070309@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=enrico.scholz@sigma-chemnitz.de \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox