pkgconf: add recipe
PATCH v3 1/1 pkgconf: add recipe
pkgconf is a better replacement for pkg-config. Fedora 26 replaces the system pkg-config implementation with pkgconf because it "provides better support for handling .pc files and a stable library ABI/API for integrating into applications." and is actively maintained, unlike pkg-config.
pkgconf aims to offer many improvements over pkg-config such as faster/more efficient dependency resolver which "allows for the user to more conservatively link their binaries -- which may be helpful in some environments, such as when prelink(1) is being used.
pkgconf also aims to provide a more complete implementation of pkg-config. The features most likely to benefit the Yocto Project build system are the faster/more efficient dependency resolution and linker flag optimisation.
Move pkgconf recipe to oe-core from meta-pkgconf:
https://github.com/kergoth/meta-kergoth-wip/tree/master/meta-pkgconf
Links:
1. http://pkgconf.org
2. https://fedoraproject.org/wiki/Changes/pkgconf_as_system_pkg-config_implementation
3. https://bugzilla.yoctoproject.org/show_bug.cgi?id=11308
---
To test this, after applying these patches, update "local.conf" as below:
PREFERRED_PROVIDER_pkgconfig = "pkgconf" PREFERRED_PROVIDER_pkgconfig-native = "pkgconf-native" PREFERRED_PROVIDER_nativesdk-pkgconfig = "nativesdk-pkgconf"
Changes in v2:
Fixes for mingw
Changes in v3:
Include the esdk fix
--- meta/files/common-licenses/pkgconf | 10 + ...imal-tweaks-to-compile-with-Visual-C-2015.patch | 224 +++++++++++++++++++++ .../0001-stdinc.h-fix-build-with-mingw.patch | 48 +++++ .../pkgconf/pkgconf/pkg-config-esdk.in | 24 +++ .../pkgconf/pkgconf/pkg-config-native.in | 6 + .../pkgconf/pkgconf/pkg-config-wrapper | 16 ++ meta/recipes-devtools/pkgconf/pkgconf_1.3.7.bb | 73 +++++++ 7 files changed, 401 insertions(+) create mode 100644 meta/files/common-licenses/pkgconf create mode 100644 meta/recipes-devtools/pkgconf/pkgconf/0001-Minimal-tweaks-to-compile-with-Visual-C-2015.patch create mode 100644 meta/recipes-devtools/pkgconf/pkgconf/0001-stdinc.h-fix-build-with-mingw.patch create mode 100644 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in create mode 100644 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in create mode 100755 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper create mode 100644 meta/recipes-devtools/pkgconf/pkgconf_1.3.7.bb
meta/files/common-licenses/pkgconf new file +10 -0
@@ -0,0 +1,10 @@ +Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 + pkgconf authors (see AUTHORS file in source directory). + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +This software is provided 'as is' and without any warranty, express or +implied. In no event shall the authors be liable for any damages arising +from the use of this software.
meta/recipes-devtools/pkgconf/pkgconf/0001-Minimal-tweaks-to-compile-with-Visual-C-2015.patch new file +224 -0
224 lines not on this page · raw message
meta/recipes-devtools/pkgconf/pkgconf/0001-stdinc.h-fix-build-with-mingw.patch new file +48 -0
48 lines not on this page · raw message
meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in new file +24 -0
@@ -0,0 +1,24 @@ +#! /bin/sh + +# Orignal pkg-config-native action when called as pkg-config-native +# NO Change here +if [ "pkg-config-native" = "`basename $0`" ] ; then + PKG_CONFIG_PATH="@PATH_NATIVE@" + PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@" + unset PKG_CONFIG_SYSROOT_DIR +else + # in this case check if we are in the esdk + if [ "$OE_SKIP_SDK_CHECK" = "1" ] ; then + parentpid=`ps -o ppid= -p $$` + parentpid_info=`ps -wo comm= -o args= -p $parentpid` + + # check if we are being called from the kernel's make menuconfig + if ( echo $parentpid_info | grep -q check-lxdialog ) ; then + PKG_CONFIG_PATH="@PATH_NATIVE@" + PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@" + unset PKG_CONFIG_SYSROOT_DIR + fi + fi +fi + +pkg-config.real "$@"
meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in new file +6 -0
@@ -0,0 +1,6 @@ +#! /bin/sh + +PKG_CONFIG_PATH="@PATH_NATIVE@" +unset PKG_CONFIG_SYSROOT_DIR + +pkg-config "$@"
meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper new file +16 -0
@@ -0,0 +1,16 @@ +#!/bin/sh +# pkgconf wrapper to deal with pkg-config/pkgconf compatibility issues +# +# Copyright (C) 2015 Christopher Larson <[email protected]> +# License: MIT (see COPYING.MIT at the root of the repository for terms) + +for arg; do + case "$arg" in + --variable|--variable=*) + # pkg-config doesn't sysroot-prefix user variables + unset PKG_CONFIG_SYSROOT_DIR + ;; + esac +done + +exec pkgconf "$@"
meta/recipes-devtools/pkgconf/pkgconf_1.3.7.bb new file +73 -0
73 lines not on this page · raw message
Signature · 1 line
2.4.0