Skip to contentSkip to conversation

add ifupdown

PATCH In review Joe Slater 9 participants 21 messages Sep 1, 2015 – Sep 4, 2015

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

cover add ifupdown

I'm not sure where this should go, but these patches are for oe-core. This recipe overrides the versions of ifup and ifdown implemented by busybox, if present.

This was copied, with one minor change, from meta-overc, as mentioned in the first patch.

Joe Slater (2):
ifupdown: import recipe
ifupdown: create alternative links

 meta/recipes-core/ifupdown/files/99_network        |    1 +
 ...-don-t-rely-on-dpkg-architecture-to-set-a.patch |   56 +++++++++++
 ...-6-.defn-fix-inverted-checks-for-loopback.patch |  103 ++++++++++++++++++++
 meta/recipes-core/ifupdown/ifupdown_0.7.48.1.bb    |   54 ++++++++++
 4 files changed, 214 insertions(+)
 create mode 100644 meta/recipes-core/ifupdown/files/99_network
 create mode 100644 meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch
 create mode 100644 meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch
 create mode 100644 meta/recipes-core/ifupdown/ifupdown_0.7.48.1.bb
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/2 ifupdown: import recipe

Implements ifup and ifdown.

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

---
 meta/recipes-core/ifupdown/files/99_network        |    1 +
 ...-don-t-rely-on-dpkg-architecture-to-set-a.patch |   56 +++++++++++
 ...-6-.defn-fix-inverted-checks-for-loopback.patch |  103 ++++++++++++++++++++
 meta/recipes-core/ifupdown/ifupdown_0.7.48.1.bb    |   54 ++++++++++
 4 files changed, 214 insertions(+)
 create mode 100644 meta/recipes-core/ifupdown/files/99_network
 create mode 100644 meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch
 create mode 100644 meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch
 create mode 100644 meta/recipes-core/ifupdown/ifupdown_0.7.48.1.bb
meta/recipes-core/ifupdown/files/99_network new file +1 -0
new file mode 100644
index 0000000..42d5895
@@ -0,0 +1 @@
+d root root 0755 /run/network none
meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch new file +56 -0

56 lines not on this page · raw message

meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch new file +103 -0

103 lines not on this page · raw message

meta/recipes-core/ifupdown/ifupdown_0.7.48.1.bb new file +54 -0

54 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 6 lines · Joe Slater

Implements ifup and ifdown.

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

I think this belongs to meta-networking. Also, what this one provides which is not provided by the busybox one?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 11 lines · Otavio Salvador
Quoted 6 lines · Joe Slater

Implements ifup and ifdown.

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

I think this belongs to meta-networking. Also, what this one provides which is not provided by the busybox one?

We're trying to make busybox optional for larger systems that want to only use the full-featured/bloated packages. It's not a large tax to carry busybox in a 50+ MB image but it would be nice to not require it.

Signature · 2 lines
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, Canada, K2K 2W5
#4 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 12 lines · Randy MacLeod
Quoted 11 lines · Otavio Salvador
Quoted 7 lines · Joe Slater

Implements ifup and ifdown.

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

Quoted 7 lines
Quoted 2 lines

I think this belongs to meta-networking. Also, what this one provides which is not provided by the busybox one?

We're trying to make busybox optional for larger systems that want to only use the full-featured/bloated packages. It's not a large tax to carry busybox in a 50+ MB image but it would be nice to not require it.

I see; I still think this belongs to meta-networking as it will allow this to be done however won't add new recipes in core.

If many people start to use this, we can move this to core.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#5 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 22 lines · Otavio Salvador
Quoted 12 lines · Randy MacLeod
Quoted 11 lines · Otavio Salvador
Quoted 7 lines · Joe Slater

Implements ifup and ifdown.

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

Quoted 7 lines
Quoted 2 lines

I think this belongs to meta-networking. Also, what this one provides which is not provided by the busybox one?

We're trying to make busybox optional for larger systems that want to only use the full-featured/bloated packages. It's not a large tax to carry busybox in a 50+ MB image but it would be nice to not require it.

Quoted 4 lines

I see; I still think this belongs to meta-networking as it will allow this to be done however won't add new recipes in core.

If many people start to use this, we can move this to core.

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

Cheers,

Richard

#6 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 23 lines · Richard Purdie
Quoted 22 lines · Otavio Salvador
Quoted 19 lines · Randy MacLeod
Quoted 5 lines · Otavio Salvador
Quoted 3 lines · Joe Slater

Implements ifup and ifdown.

Quoted 8 lines
Quoted 4 lines

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

I think this belongs to meta-networking. Also, what this one provides which is not provided by the busybox one?

We're trying to make busybox optional for larger systems that want to only use the full-featured/bloated packages. It's not a large tax to carry busybox in a 50+ MB image but it would be nice to not require it.

Quoted 8 lines
Quoted 4 lines

I see; I still think this belongs to meta-networking as it will allow this to be done however won't add new recipes in core.

If many people start to use this, we can move this to core.

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That is the point; this were not in meta-networking and noone missed it until now. Moving this to oe-core straight seems overkill.

I think moving this to meta-networking is right and if many people use it, oe-core is next step.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#7 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

In reply to Richard Purdie
Quoted 23 lines · Richard Purdie
Quoted 22 lines · Otavio Salvador
Quoted 19 lines · Randy MacLeod
Quoted 5 lines · Otavio Salvador
Quoted 3 lines · Joe Slater

Implements ifup and ifdown.

Quoted 8 lines
Quoted 4 lines

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

I think this belongs to meta-networking. Also, what this one provides which is not provided by the busybox one?

We're trying to make busybox optional for larger systems that want to only use the full-featured/bloated packages. It's not a large tax to carry busybox in a 50+ MB image but it would be nice to not require it.

Quoted 8 lines
Quoted 4 lines

I see; I still think this belongs to meta-networking as it will allow this to be done however won't add new recipes in core.

If many people start to use this, we can move this to core.

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

Cheers,

Bruce

Quoted 11 lines

Cheers,

Richard

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#8 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

#9 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 9 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

Quoted 5 lines

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Nobody mentioned GPLv2, that isn't relevant here.

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too...

Cheers,

Richard

#10 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 23 lines · Richard Purdie
Quoted 9 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

Quoted 5 lines

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Nobody mentioned GPLv2, that isn't relevant here.

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

Quoted 4 lines

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too...

If people were demanding it, it would have been moved for meta-networking ages ago, it seems it is not the case.

So my vote is:

- move to meta-networking
- for 2.1 we see if it goes to core or not

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#11 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 25 lines · Otavio Salvador
Quoted 23 lines · Richard Purdie
Quoted 9 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

Quoted 5 lines

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Nobody mentioned GPLv2, that isn't relevant here.

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

Quoted 7 lines
Quoted 4 lines

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too...

If people were demanding it, it would have been moved for meta-networking ages ago, it seems it is not the case.

... or they were just holding it elsewhere, since not everyone has the time to get things merged to core. In particular if they think it will be a battle.

Quoted 4 lines

So my vote is:

- move to meta-networking

And what if the use cases don't want/need meta-networking ? We have the submission and one use case, and one of the reasons it was sent to core was to keep a finite set of layers and recipes to build such an image.

Joe/Randy ?

It is this sort of thing that forces use of combo layers or the whitelist classes :)

Quoted 1 line

- for 2.1 we see if it goes to core or not

But without criteria for success .. what does that get us ? What is the case that needs to be made for a move to core in 2.1, that isn't being made now ?

Yes, I'm playing devil's advocate on this thread .. since I want to see this sort of thing clearly defined.

Cheers,

Bruce

Quoted 10 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#12 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 35 lines · Bruce Ashfield
Quoted 30 lines · Otavio Salvador
Quoted 27 lines · Richard Purdie
Quoted 9 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

Quoted 5 lines

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Nobody mentioned GPLv2, that isn't relevant here.

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too...

Quoted 6 lines
Quoted 2 lines

If people were demanding it, it would have been moved for meta-networking ages ago, it seems it is not the case.

... or they were just holding it elsewhere, since not everyone has the time to get things merged to core. In particular if they think it will be a battle.

thats how we bloated oe-classic. Oh people might need it because I need it therefore slam it in I have written a packagegroup to replace busybox but I never thought it was so core.

Quoted 6 lines
Quoted 5 lines

So my vote is:

- move to meta-networking

Quoted 8 lines

And what if the use cases don't want/need meta-networking ? We have the submission and one use case, and one of the reasons it was sent to core was to keep a finite set of layers and recipes to build such an image.

Joe/Randy ?

It is this sort of thing that forces use of combo layers or the whitelist classes :)

You can also help in making those layers meet the quality criteria you need instead of being pick what I need throw the rest out approach.

Quoted 9 lines
Quoted 2 lines

- for 2.1 we see if it goes to core or not

But without criteria for success .. what does that get us ? What is the case that needs to be made for a move to core in 2.1, that isn't being made now ?

Yes, I'm playing devil's advocate on this thread .. since I want to see this sort of thing clearly defined.

if its required by more than 1 distro. Is duplicated in other layers because the layer it resides in
is not used by a distro. It replaces a core functionality in OE-Core. It has to be a building block and not a leaf package e.g. These Would be some of things that may be thought of.

#13 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 55 lines · Khem Raj
Quoted 35 lines · Bruce Ashfield
Quoted 30 lines · Otavio Salvador
Quoted 27 lines · Richard Purdie
Quoted 9 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

Quoted 5 lines

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Nobody mentioned GPLv2, that isn't relevant here.

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too...

Quoted 6 lines
Quoted 2 lines

If people were demanding it, it would have been moved for meta-networking ages ago, it seems it is not the case.

... or they were just holding it elsewhere, since not everyone has the time to get things merged to core. In particular if they think it will be a battle.

thats how we bloated oe-classic. Oh people might need it because I need it therefore slam it in I have written a packagegroup to replace busybox but I never thought it was so core.

Quoted 10 lines
Quoted 5 lines

So my vote is:

- move to meta-networking

And what if the use cases don't want/need meta-networking ? We have the submission and one use case, and one of the reasons it was sent to core was to keep a finite set of layers and recipes to build such an image.

Quoted 7 lines
Quoted 4 lines

Joe/Randy ?

It is this sort of thing that forces use of combo layers or the whitelist classes :)

You can also help in making those layers meet the quality criteria you need instead of being pick what I need throw the rest out approach.

Agreed. No arguments there .. and hopefully we can also finally break the layers up into smaller parts / separate repos.

I've had the issue that I can't just update meta-networking .. I get everything. I can help with quality in layers that I use (which I do), but when versions change
underneath you (and you have a specific requirement), there's little that can be done ... except copy and pin.

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

- for 2.1 we see if it goes to core or not

But without criteria for success .. what does that get us ? What is the case that needs to be made for a move to core in 2.1, that isn't being made now ?

Quoted 5 lines
Quoted 2 lines

Yes, I'm playing devil's advocate on this thread .. since I want to see this sort of thing clearly defined.

if its required by more than 1 distro. Is duplicated in other layers because the layer it resides in
is not used by a distro. It replaces a core functionality in OE-Core. It has to be a building block and not a leaf package e.g. These Would be some of things that may be thought of.

Agreed.

Bruce

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#14 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

In reply to Richard Purdie
Quoted 13 lines · Richard Purdie
Quoted 9 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

Quoted 7 lines
Quoted 5 lines

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Nobody mentioned GPLv2, that isn't relevant here.

I assumed thats one reason to not include it. I am trying to understand reasoning to not include busybox. Or is is just because its a poster child for litigations.

Quoted 5 lines

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

as we include other alternative providers, they get preference over busybox applets even if busybox is part of it.

Quoted 5 lines

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too…

PR I see. I was searching for technical reasons.

#15 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 18 lines · Khem Raj
Quoted 18 lines · Richard Purdie
Quoted 14 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Quoted 4 lines
Quoted 1 line

Nobody mentioned GPLv2, that isn't relevant here.

I assumed thats one reason to not include it. I am trying to understand reasoning to not include busybox. Or is is just because its a poster child for litigations.

The litigation issues surrounding it certainly don't do it any favours, but the main issue is that if busybox is there, we're not seen as a "proper/full" linux.

Quoted 7 lines
Quoted 4 lines

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

as we include other alternative providers, they get preference over busybox applets even if busybox is part of it.

The problem is some people don't want any busybox.

Quoted 6 lines
Quoted 4 lines

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too…

PR I see. I was searching for technical reasons.

Well, its technical but related to the image of the project too. Can OE-Core today produce a "standard linux desktop" type "full" featured filesystem? I cannot honestly say it can due to this reason, busybox has to be there. There are some people who do discount OE because of this. This isn't new, I remember Marcin amongst others working on this. We're close, but close doesn't mean we can answer "yes" to the question and I think it would be nice to be able to do so clearly.

Cheers,

Richard

#16 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 55 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-core- [email protected]] On Behalf Of Richard Purdie
Sent: Thursday, September 03, 2015 2:39 PM
To: Khem Raj
Cc: Patches and discussions about the oe-core layer; Slater, Joseph; Otavio Salvador
Subject: Re: [OE-core] [oe-core][PATCH 1/2] ifupdown: import recipe

Quoted 18 lines · Khem Raj
Quoted 18 lines · Richard Purdie
Quoted 14 lines · Khem Raj
Quoted 7 lines · Bruce Ashfield
Quoted 3 lines

To put this another way, I think it is probably reasonable that we should be able to build an image from OE-Core with basic functionality like networking without busybox?

That's what I'd support. If everything you need for the functionality with busy box is in oe-core, to me, it doesn't make sense to go outside core to get that same functionality without busybox.

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Quoted 4 lines
Quoted 1 line

Nobody mentioned GPLv2, that isn't relevant here.

I assumed thats one reason to not include it. I am trying to understand reasoning to not include busybox. Or is is just because its a poster child for litigations.

The litigation issues surrounding it certainly don't do it any favours, but the main issue is that if busybox is there, we're not seen as a "proper/full" linux.

Quoted 7 lines
Quoted 4 lines

I have heard OE being dismissed since it can't produce an image without busybox in it. The implication is we can't build "big" Linux, only small embedded things. The pieces we need busybox for are tiny and should be easy to replace (like this does).

as we include other alternative providers, they get preference over busybox applets even if busybox is part of it.

The problem is some people don't want any busybox.

Quoted 6 lines
Quoted 4 lines

So I can see a fairly compelling argument for OE-Core to be able to generate a busybox free image with standard functionality just from a PR perspective. From what I gather we have people willing to test and maintain it too…

PR I see. I was searching for technical reasons.

Quoted 7 lines

Well, its technical but related to the image of the project too. Can OE-Core today produce a "standard linux desktop" type "full" featured filesystem? I cannot honestly say it can due to this reason, busybox has to be there. There are some people who do discount OE because of this. This isn't new, I remember Marcin amongst others working on this. We're close, but close doesn't mean we can answer "yes" to the question and I think it would be nice to be able to do so clearly.

I think if we are trying to allow removing busybox, the functionality needed should be in oe-core. Thus, we pull run-parts out of debianutils (this is now in oe-core, master), pull start-stop-daemon from dpkg (I sent a patch, but I have not seen any action), and we add ifupdown. shadow is there, as is util-linux-blkid.

Me? I kind of like busybox, but I also think we should provide images without it.

Joe

Quoted 10 lines

Cheers,

Richard

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#17 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

In reply to Khem Raj
Quoted 5 lines · Khem Raj

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

In general, I don't think it is a good idea for oe-core to be entirely beholden to busybox or any other package, and I would be all in favour of including an alternative implementation for everything that we depend on busybox for.

In the specific case of ifupdown, the whole thing seems a little bit 1990s and it's hard to avoid the sense that there are better ways to solve that particular problem nowadays. But oe-core does already include net-tools, which is if anything even more retro (and is in a similar position vis-a-vis busybox) so there is precedent for including this kind of thing.

It's also not as if ifupdown is a large piece of software with a complex web of ABI dependencies that will introduce some huge maintenance burden in the future. So I can't see any real downside to adding it to oe-core.

p.

#18 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

Quoted 10 lines · Phil Blundell
Quoted 5 lines · Khem Raj

irrespective of this change. I see yet another configuration with this into OE-core, overall OE-Core should get smaller
and case does not sound convincing to me. You dont want to use busybox in a fairly large image which has other GPLv2 software in it. Thats fine but doesnt look like a common usecase to me

Quoted 4 lines

In general, I don't think it is a good idea for oe-core to be entirely beholden to busybox or any other package, and I would be all in favour of including an alternative implementation for everything that we depend on busybox for.

thats a fine idea,

Quoted 7 lines

In the specific case of ifupdown, the whole thing seems a little bit 1990s and it's hard to avoid the sense that there are better ways to solve that particular problem nowadays. But oe-core does already include net-tools, which is if anything even more retro (and is in a similar position vis-a-vis busybox) so there is precedent for including this kind of thing.

Yes although replacing net-tools with iproute2 would have been a better one.

Quoted 5 lines

It's also not as if ifupdown is a large piece of software with a complex web of ABI dependencies that will introduce some huge maintenance burden in the future. So I can't see any real downside to adding it to oe-core.

It needs maintenance, and if maintainers are fine carrying it
is fine too. Added price is future contributions to other areas/packages which have to keep working with this, and there will be patches rejected because they don’t work with this so there is some burden dispersed on development community

Quoted 4 lines

p.

#19 lore raw

Re: [PATCH 1/2] ifupdown: import recipe

In reply to Otavio Salvador
Quoted 11 lines · Otavio Salvador
Quoted 6 lines · Joe Slater

Implements ifup and ifdown.

Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.

I think this belongs to meta-networking. Also, what this one provides which is not provided by the busybox one?

This provides hotplug support which the busybox version does not. I'm torn on where it should land i.e. meta-networking vs core but it is a useful addition regardless.

If you're attempting to do a non busybox based build, then I don't see the reasoning for not just using connman as your networking manager instead which is already supported in core.

author
#20 lore raw

PATCH 2/2 ifupdown: create alternative links

In reply to Joe Slater

Inherit update-alternatives so links are created. ifup and ifdown are higher priority than the versions provided by busybox.

---
 meta/recipes-core/ifupdown/ifupdown_0.7.48.1.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ifupdown/ifupdown_0.7.48.1.bb +1 -1
index e29cc49..24eb87b 100644
@@ -18,7 +18,7 @@ EXTRA_OEMAKE = ""
 S = "${WORKDIR}/ifupdown-${PV}ubuntu5"
 
 
-inherit update-rc.d
+inherit update-rc.d update-alternatives
 
 do_compile () {
 	chmod a+rx *.pl *.sh
Signature · 1 line
1.7.9.5