From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] net-snmp: fix invalid paths in target net-snmp-config
Date: Wed, 30 Mar 2016 12:09:11 +0200 [thread overview]
Message-ID: <20160330100911.GC2557@jama> (raw)
In-Reply-To: <1459328901-21333-1-git-send-email-catalin.enache@windriver.com>
[-- Attachment #1: Type: text/plain, Size: 2575 bytes --]
On Wed, Mar 30, 2016 at 12:08:21PM +0300, Catalin Enache wrote:
> Only net-snmp-config used for sysroot should have sysroot
> specific paths.
>
> Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
> ---
> meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
> index 63e0fc7..1a50932 100644
> --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
> +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
> @@ -70,11 +70,6 @@ do_install_append() {
> install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/snmpd
> install -m 644 ${WORKDIR}/snmpd.conf ${D}${sysconfdir}/snmp/
> install -m 644 ${WORKDIR}/snmptrapd.conf ${D}${sysconfdir}/snmp/
> - sed -e "s@^prefix=.*@prefix=${STAGING_DIR_HOST}@g" \
> - -e "s@^exec_prefix=.*@exec_prefix=${STAGING_DIR_HOST}@g" \
> - -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
> - -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
> - -i ${D}${bindir}/net-snmp-config
What about target ${bindir}/net-snmp-config? Isn't it installed in some
net-snmp-dev package with incorrect paths?
> install -d ${D}${systemd_unitdir}/system
> install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
> install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
> @@ -109,6 +104,11 @@ net_snmp_sysroot_preprocess () {
> install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
> install -m 755 ${D}${bindir}/net-snmp-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
> sed -e "s@-I/usr/include@-I${STAGING_INCDIR}@g" \
> + -e "s@^prefix=.*@prefix=${STAGING_DIR_HOST}${prefix}@g" \
> + -e "s@^exec_prefix=.*@exec_prefix=${STAGING_EXECPREFIXDIR}@g" \
> + -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
> + -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
> + -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=${S}@g" \
> -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/net-snmp-config
> fi
> }
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2016-03-30 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 9:08 [PATCH] net-snmp: fix invalid paths in target net-snmp-config Catalin Enache
2016-03-30 10:09 ` Martin Jansa [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-12-12 13:15 Ovidiu Panait
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=20160330100911.GC2557@jama \
--to=martin.jansa@gmail.com \
--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