All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv3 1/4] pkgconf: new package
Date: Thu, 27 Sep 2012 09:54:42 +0200	[thread overview]
Message-ID: <50640642.8020407@mind.be> (raw)
In-Reply-To: <1348656857-27725-1-git-send-email-gustavo@zacarias.com.ar>

On 09/26/12 12:54, Gustavo Zacarias wrote:
> pkgconf is a drop-in replacement for pkg-config that doesn't need
> itself to build and just requires a C89 compiler.
>
> Instead of using a patch for hardcoded sysroot support (as the patch to
> pkg-config does) we rely instead on a wrapper script that takes the
> appropiate action.
>
> Signed-off-by: Gustavo Zacarias<gustavo@zacarias.com.ar>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Minor comments below.

  The v1 is now
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(on 750 packages, with the external sourcery toolchain for x86_64, excluding the
30-ish packages that didn't build before; took a bit of time to find a working
allpackageyesconfig). I don't suppose I have to retest with this series?

[snip]
> diff --git a/package/pkgconf/pkg-config.in b/package/pkgconf/pkg-config.in
> new file mode 100644
> index 0000000..4039d4d
> --- /dev/null
> +++ b/package/pkgconf/pkg-config.in
> @@ -0,0 +1,2 @@
> +#!/bin/sh
> +PKG_CONFIG_PATH=${PKG_CONFIG_PATH:- at PKG_CONFIG_PATH@} PKG_CONFIG_SYSROOT_DIR=${PKG_CONFIG_SYSROOT_DIR:- at STAGING_DIR@} @HOST_DIR@/usr/bin/pkgconf $@

  Actually, instead of @HOST_DIR@/usr/bin, it's better to use $(dirname $0).
That way it's relocatable.

> diff --git a/package/pkgconf/pkgconf.mk b/package/pkgconf/pkgconf.mk
> new file mode 100644
> index 0000000..2d79f05
> --- /dev/null
> +++ b/package/pkgconf/pkgconf.mk
> @@ -0,0 +1,30 @@
> +#############################################################
> +#
> +# pkgconf
> +#
> +#############################################################
> +
> +PKGCONF_VERSION = 0.8.9
> +PKGCONF_SITE = http://tortois.es/~nenolod/distfiles
> +PKGCONF_SOURCE = pkgconf-$(PKGCONF_VERSION).tar.bz2
> +
> +PKG_CONFIG_HOST_BINARY = $(HOST_DIR)/usr/bin/pkg-config
> +
> +define PKGCONF_LINK_PKGCONFIG
> +	ln -sf pkgconf $(TARGET_DIR)/usr/bin/pkg-config
> +endef

  I wouldn't remove the pkg-config package on the target, just host-pkg-config.
Unless pkg-config is really deprecated?  Anyway, even if it is, it should be
marked as deprecated first and only removed later.

  That said, this hook should still be in
ifeq ($(BR2_PACKAGE_PKG_CONFIG),)



  Regards,
  Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2012-09-27  7:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-26 10:54 [Buildroot] [PATCHv3 1/4] pkgconf: new package Gustavo Zacarias
2012-09-27  7:54 ` Arnout Vandecappelle [this message]
2012-09-27  8:09   ` Thomas Petazzoni
2012-09-27  8:20     ` Arnout Vandecappelle
2012-09-27  8:25       ` Thomas Petazzoni
2012-09-27  8:30         ` Arnout Vandecappelle
2012-09-27 13:24           ` Thomas Petazzoni
2012-09-29 12:53   ` Gustavo Zacarias

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=50640642.8020407@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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 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.