public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Alan Perry" <alanp@snowmoose.com>
To: Andre McCurdy <armccurdy@gmail.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH 1/2] iproute2: install tools to mirror install under Debian/Ubuntu
Date: Thu, 3 Dec 2020 13:01:11 -0800	[thread overview]
Message-ID: <9c502cf3-fac3-dfa0-a722-0c09e41ba9e1@snowmoose.com> (raw)
In-Reply-To: <CAJ86T=XzCC8z=qvzUdpfFbmvBasx4+iV81Dpk_FFszQKEqD2pA@mail.gmail.com>



On 12/2/20 11:29 PM, Andre McCurdy wrote:
> On Wed, Dec 2, 2020 at 11:11 AM Alan Perry <alanp@snowmoose.com> wrote:
>> Many scripts exist that expect the iproute2 tools to be found in
>> the same directories where they are found in Debian or Ubuntu.
>> For the iproute2 tools included in the iproute2 recipe, move
>> them to those directories or create links there. Also, add
>> bash-completion files as is done by Debian and Ubuntu.
> Rather than creating symlinks etc, could this be done more cleanly by
> having "make install" install to the Debian paths directly?
>
> (Presumably Debian isn't manually moving files after "make install",
> they are just configuring the build differently).

I am not an expert in how Debian does its build, but it appears that all 
of the iproute2 tools are in sbin after they are built and then an 
install file in Debian source and not in the iproute2 upstream directs 
some of what is built to be installed in other directories.

>
>> Signed-off-by: Alan Perry <alanp@snowmoose.com>> ---
>>   .../iproute2/iproute2.inc                     | 21 +++++++++++++++++--
>>   1 file changed, 19 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
>> index 403d264308..21f52f80bc 100644
>> --- a/meta/recipes-connectivity/iproute2/iproute2.inc
>> +++ b/meta/recipes-connectivity/iproute2/iproute2.inc
>> @@ -41,6 +41,21 @@ do_install () {
>>       install -d ${D}${datadir}
>>       mv ${D}/share/* ${D}${datadir}/ || true
>>       rm ${D}/share -rf || true
>> +
>> +    install -d ${D}${base_bindir}
>> +    ln -s /sbin/ip ${D}${base_bindir}/ip
>> +    mv ${D}${base_sbindir}/ss ${D}${base_bindir}/ss
>> +
>> +    install -d ${D}${bindir}
>> +    mv ${D}${base_sbindir}/nstat ${D}${bindir}/nstat
>> +    mv ${D}${base_sbindir}/lnstat ${D}${bindir}/lnstat
>> +    mv ${D}${base_sbindir}/ctstat ${D}${bindir}/ctstat
>> +    mv ${D}${base_sbindir}/rtstat ${D}${bindir}/rtstat
>> +    mv ${D}${base_sbindir}/routef ${D}${bindir}/routef
>> +    mv ${D}${base_sbindir}/routel ${D}${bindir}/routel
>> +
>> +    install -d ${D}${sbindir}
>> +    mv ${D}${base_sbindir}/genl ${D}${sbindir}/genl
>>   }
>>
>>   # The .so files in iproute2-tc are modules, not traditional libraries
>> @@ -59,7 +74,8 @@ PACKAGES =+ "\
>>   "
>>
>>   FILES_${PN}-tc = "${base_sbindir}/tc* \
>> -                  ${libdir}/tc/*.so"
>> +                  ${libdir}/tc/*.so \
>> +                  ${datadir}/bash-completion/completions/tc"
>>   FILES_${PN}-lnstat = "${base_sbindir}/lnstat \
>>                         ${base_sbindir}/ctstat \
>>                         ${base_sbindir}/rtstat"
>> @@ -69,7 +85,8 @@ FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
>>   FILES_${PN}-nstat = "${base_sbindir}/nstat"
>>   FILES_${PN}-ss = "${base_sbindir}/ss"
>>   FILES_${PN}-tipc = "${base_sbindir}/tipc"
>> -FILES_${PN}-devlink = "${base_sbindir}/devlink"
>> +FILES_${PN}-devlink = "${base_sbindir}/devlink \
>> +                       ${datadir}/bash-completion/completions/devlink"
>>
>>   ALTERNATIVE_${PN} = "ip"
>>   ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
>> --
>> 2.17.1
>>
>>
>> 
>>


      reply	other threads:[~2020-12-03 21:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-02 19:11 [PATCH 1/2] iproute2: install tools to mirror install under Debian/Ubuntu Alan Perry
2020-12-02 19:11 ` [PATCH 2/2] iproute2: rearrange FILES to improve readability Alan Perry
2020-12-03  0:53 ` [OE-core] [PATCH 1/2] iproute2: install tools to mirror install under Debian/Ubuntu Andreas Oberritter
2020-12-03  3:20   ` Alan Perry
2020-12-03  7:29 ` Andre McCurdy
2020-12-03 21:01   ` Alan Perry [this message]

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=9c502cf3-fac3-dfa0-a722-0c09e41ba9e1@snowmoose.com \
    --to=alanp@snowmoose.com \
    --cc=armccurdy@gmail.com \
    --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