Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove lime-hwd-openwrt-wan as dependency of lime-basic #175

Closed
aparcar opened this issue Jul 8, 2017 · 16 comments
Closed

remove lime-hwd-openwrt-wan as dependency of lime-basic #175

aparcar opened this issue Jul 8, 2017 · 16 comments

Comments

@aparcar
Copy link
Member

aparcar commented Jul 8, 2017

creating a new flavor with -lime-hwd-openwrt-wandoes not work anymore.
I want to create an image for routers with low power not needing any gateway capabilities.

@FreifunkUFO
Copy link
Member

please try it with deactivated lime-proto-wan

see flavour "freifunk_zero_minus_opkg_wan" at
https://github.com/freifunk-leipzig/libremesh-lime-sdk/blob/master/flavors.conf

@aparcar
Copy link
Member Author

aparcar commented Jul 9, 2017

my current flavor looks like this and it does not remove the -lime-hwd-openwrt-wan packages:

lime_mini_client="-lime-hwd-openwrt-wan -lime-proto-wan $lime_mini"

In /usr/lib/opkg/status it says both "removed" packages are a dependencie of lime-basic

Package: lime-basic                                                                                                                                                                                                                            
Version: 2017-06-14-1497464299                                                                                                                                                                                                                 
Depends: libc, lime-system, lime-proto-bmx6, lime-proto-batadv, lime-proto-anygw, lime-proto-wan, dnsmasq-lease-share, dnsmasq-distributed-hosts, lime-webui, lime-hwd-openwrt-wan, [...]

@p4u
Copy link
Member

p4u commented Jul 10, 2017

You are right, as lime-hwd-openwrt-wan is part of the lime-basic collection it cannot be removed if you base your flavor on lime-basic. However lime-hwd-openwrt-wan does not has a big impact on the firmware size since it only adds a dependency on lime-proto-wan which do not has any special dependency (such as PPP). So we are talking just about few bytes of LUA code.

In any case, if you really want to delete lime-proto-wan from your routers you might create your own flavor NOT based on lime-basic but on the individual packages instead.

lime_whatever="lime-system lime-proto-bmx6 lime-proto-batadv lime-proto-anygw dnsmasq-lease-share dnsmasq-distributed-hosts lime-webui lime-docs-minimal bmx6-auto-gw-mode smonit"

Hope it helps.

@dangowrt
Copy link
Member

dangowrt commented Jul 10, 2017 via email

@ilario
Copy link
Member

ilario commented Aug 2, 2017

PR #200 together with libremesh/lime-sdk#20 should solve this.
(please tell me if you think we should do the same for other packages, for example lime-hwd-ground-routing)

@ilario
Copy link
Member

ilario commented Aug 2, 2017

@aparcar those PR are not merged yet :)

@aparcar aparcar reopened this Aug 2, 2017
@p4u
Copy link
Member

p4u commented Aug 2, 2017

I don't see the point for doing this. This package has almost no impact on the flash size and it is useful for autodetecting the WAN ports of the routers (if not enabled, everything is configured as LAN).

@aparcar is it really necessary to free these few bytes? I don't think it makes a difference.

@aparcar
Copy link
Member Author

aparcar commented Aug 3, 2017

@p4u I'll just deactivate the auto detecting, so I'm fine with whatever option.

@ilario
Copy link
Member

ilario commented Aug 21, 2017

Any other opinion?
@G10h4ck @nicopace @nicoechaniz @altergui

I think that all this thing is not very important and we could just keep things unchanged, as @p4u writes, but it would be slightly better to remove lime-hwd-openwrt-wan, lime-proto-wan, lime-webui (this would make useless the lime-basic-no-ui package), lime-hwd-ground-routing, dnsmasq-distributed-hosts and bmx6-auto-gw-mode from lime-basic package and add them to lime-full package and to lime-zero (except lime-webui) and lime-mini flavors.

@ilario
Copy link
Member

ilario commented Sep 22, 2017

Inactivity for more than one month, is there still interest on this or shall we close it?

@aparcar
Copy link
Member Author

aparcar commented Sep 22, 2017

nope

@FreifunkUFO
Copy link
Member

yes, im still very interested on this "feature".
this package has huge impact on WAN-Ports, especially when the dhcp-client will get an IP-Adress (f.i. from another libremesh-router)

#172

@FreifunkUFO
Copy link
Member

btw @p4u said "if you really want to delete lime-proto-wan from your routers you might create your own flavor".
but i was forbidden by him to create such flavor :-( libremesh/lime-sdk@9f56f3e#diff-d5b5948fa2c7f423643e50f7c31968c7

@nicopace
Copy link
Member

Now you can do it creating a network profile: https://github.com/libremesh/lime-sdk#communities

@dangowrt
Copy link
Member

The problem is that in my network profile I may definitely want to include lime-basic and that currently depends on all the wan hacks I may not want. It'd be great if network profiles (including the default profile) which actually do want that feature are free to include it or in some other way make sure it no longer is a hard non-removable dependency.

@nicopace
Copy link
Member

Including lime-basic implies to include all those packages (that is it's definition).

In order to include lime-basic but not other packages, the approach would be to not include lime-basic but only those packages that are relevant.

The reason I understand it is called lime-basic is because it is the basic LibreMesh experience.
This is the description of the package (took from https://github.com/libremesh/lime-packages/blob/develop/packages/lime-basic/Makefile):

Metapackage depending on all the required to run a basic standard libremesh node

I believe that the basic standard libremesh includes this, and that is why @p4u doesn't agree on removing this.

I agree with @p4u that GW autodetect is a core feature of libremesh, and thus doesn't have to be taken out.

On the other hand, if there is a usecase where a non-auto-gw profile should be added, I believe @FreifunkUFO should be able to create it. Maybe we can move the conversation there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants