From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 01/11] iperf: fix out of tree configuration
Date: Sat, 24 Jan 2015 10:09:25 +0100 [thread overview]
Message-ID: <m9vng5$cmq$1@ger.gmane.org> (raw)
In-Reply-To: <f3765d513c8971761e10bb0f249f8745b9aa3504.1422053452.git.akuster808@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Armin Kuster schreef op 23-01-15 om 23:53:
> From: "Belal, Awais" <Awais_Belal@mentor.com>
>
> The configure step uses a package header to check for support of
> types/declares, this package header encapsulates all the required system
> headers for providing the needed resources. When configured from an out
> of tree directory the package header is not found due to the hard path.
> We now make the path for package header relative to 'srcdir' so it is
> found appropriately.
>
> Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Martin
> Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster
> <akuster808@gmail.com> ---
> .../iperf-2.0.5/0001-fix-out-of-tree-config.patch | 52
> ++++++++++++++++++++++ meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
> | 1 + 2 files changed, 53 insertions(+) create mode 100644
> meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-fix-out-of-tree-config.patch
>
> diff --git
> a/meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-fix-out-of-tree-config.patch
> b/meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-fix-out-of-tree-config.patch
>
>
new file mode 100644
> index 0000000..e8a0297 --- /dev/null +++
> b/meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-fix-out-of-tree-config.patch
>
>
@@ -0,0 +1,52 @@
> +iperf: fix out of tree configuration + +The configure step uses a
> package header to check for support of types/declares, +this package
> header encapsulates all the required system header for providing +the
> needed resources. When configured from an out of tree directory the
> package +header is not found due to the hard path. +We now make the path
> for package header relative to our 'srcdir' so it is +found
> appropriately. + +Signed-off-by: Awais Belal <awais_belal@mentor.com>
Missing Upstream-status
> +--- +diff --git a/configure.ac b/configure.ac +index 2b3fd20..d420f9e
> 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -176,8 +176,8 @@ dnl
> Check for system services + + dnl check for multicast + if test
> "$ac_cv_multicast" != no; then +- AC_CHECK_TYPES(struct
> ip_mreq,,,[#include "compat/headers_slim.h"]) +-
> AC_CHECK_DECLS(IP_ADD_MEMBERSHIP,,,[#include "compat/headers_slim.h"]) ++
> AC_CHECK_TYPES(struct ip_mreq,,,[#include
> "${srcdir}/compat/headers_slim.h"]) ++
> AC_CHECK_DECLS(IP_ADD_MEMBERSHIP,,,[#include
> "${srcdir}/compat/headers_slim.h"]) + AC_MSG_CHECKING(for multicast
> support) + ac_cv_multicast=no + if test
> "$ac_cv_have_decl_IP_ADD_MEMBERSHIP" = yes; then +@@ -193,9 +193,9 @@ fi
> + + dnl check for IPv6 + if test "$ac_cv_have_ipv6" != no; then +-
> AC_CHECK_TYPES(struct sockaddr_storage,,,[#include
> "compat/headers_slim.h"]) +- AC_CHECK_TYPES(struct
> sockaddr_in6,,,[#include "compat/headers_slim.h"]) +-
> AC_CHECK_DECLS(AF_INET6,,,[#include "compat/headers_slim.h"]) ++
> AC_CHECK_TYPES(struct sockaddr_storage,,,[#include
> "${srcdir}/compat/headers_slim.h"]) ++ AC_CHECK_TYPES(struct
> sockaddr_in6,,,[#include "${srcdir}/compat/headers_slim.h"]) ++
> AC_CHECK_DECLS(AF_INET6,,,[#include "${srcdir}/compat/headers_slim.h"]) +
> AC_MSG_CHECKING(for IPv6 headers and structures) + ac_cv_have_ipv6=no +
> if test "$ac_cv_type_struct_sockaddr_storage" = yes; then +@@ -211,9
> +211,9 @@ fi + + if test "$ac_cv_have_ipv6" = yes; then + if test
> "$ac_cv_multicast" = yes; then +- AC_CHECK_TYPES(struct
> ipv6_mreq,,,[#include "compat/headers_slim.h"]) +-
> AC_CHECK_DECLS(IPV6_ADD_MEMBERSHIP,,,[#include "compat/headers_slim.h"])
> +- AC_CHECK_DECLS(IPV6_MULTICAST_HOPS,,,[#include
> "compat/headers_slim.h"]) ++ AC_CHECK_TYPES(struct
> ipv6_mreq,,,[#include "${srcdir}/compat/headers_slim.h"]) ++
> AC_CHECK_DECLS(IPV6_ADD_MEMBERSHIP,,,[#include
> "${srcdir}/compat/headers_slim.h"]) ++
> AC_CHECK_DECLS(IPV6_MULTICAST_HOPS,,,[#include
> "${srcdir}/compat/headers_slim.h"]) + AC_MSG_CHECKING(for IPv6
> multicast support) + ac_cv_have_ipv6_multicast=no + if test
> "$ac_cv_type_struct_ipv6_mreq" = yes; then diff --git
> a/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
> b/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb index 1bd554b..20adc0d
> 100644 --- a/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb +++
> b/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb @@ -6,6 +6,7 @@
> LIC_FILES_CHKSUM = "file://COPYING;md5=e8478eae9f479e39bc34975193360298"
>
> SRC_URI = " ${SOURCEFORGE_MIRROR}/iperf/${BP}.tar.gz \
> file://iperf-2.0.5_ManPage.patch \ +
> file://0001-fix-out-of-tree-config.patch \ "
>
> SRC_URI[md5sum] = "44b5536b67719f4250faed632a3cd016"
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFUw2FFMkyGM64RGpERArugAJ4nkEYjuGS9ZOgyq/2ouo8dIUY7xQCeM58n
jN/V4SPAvQw8zcM6qCTjyAw=
=4Vn9
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2015-01-24 9:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 22:53 [PATCH 00/11] [Dizzy next] pull merge request Armin Kuster
2015-01-23 22:53 ` [PATCH 01/11] iperf: fix out of tree configuration Armin Kuster
2015-01-24 9:09 ` Koen Kooi [this message]
2015-01-26 15:37 ` akuster808
2015-01-23 22:53 ` [PATCH 02/11] meta-gnome: Add LAYERVERSION and LAYERDEPENDS Armin Kuster
2015-01-23 22:53 ` [PATCH 03/11] meta-perl: " Armin Kuster
2015-01-23 22:53 ` [PATCH 04/11] meta-python: " Armin Kuster
2015-01-23 22:53 ` [PATCH 05/11] meta-ruby: " Armin Kuster
2015-01-23 22:53 ` [PATCH 06/11] toolchain-layer: " Armin Kuster
2015-01-23 22:53 ` [PATCH 07/11] meta-efl: " Armin Kuster
2015-01-23 22:53 ` [PATCH 08/11] meta-filesystems: " Armin Kuster
2015-01-23 22:53 ` [PATCH 09/11] meta-gpe: " Armin Kuster
2015-01-23 22:53 ` [PATCH 10/11] nbench-byte: Fix license QA error Armin Kuster
2015-01-23 22:53 ` [PATCH 11/11] xmlto: remove recipe as it's in OE core Armin Kuster
2015-01-24 0:50 ` [PATCH 00/11] [Dizzy next] pull merge request Otavio Salvador
2015-01-28 8:19 ` Martin Jansa
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='m9vng5$cmq$1@ger.gmane.org' \
--to=koen@dominion.thruhere.net \
--cc=openembedded-devel@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