Skip to contentSkip to conversation

package/radvd: drop dependency on flex runtime library

PATCH New Alexander Mukhin 3 participants 3 messages Mar 20, 2020 – Mar 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/radvd: drop dependency on flex runtime library

Radvd has its own main(), and does not use yywrap() from libfl.so, because scanner.l module contains noyywrap option. So, none of the functions exported by libfl.so are used, and there's no need to have the flex runtime on target.

---
 package/radvd/Config.in | 1 -
 package/radvd/radvd.mk  | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
package/radvd/Config.in +0 -1
index fa5a20c4c1..f1df0c3cb8 100644
@@ -1,7 +1,6 @@
 config BR2_PACKAGE_RADVD
 	bool "radvd"
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_FLEX
 	help
 	  IPv6 Router Advertisement Daemon.
 
package/radvd/radvd.mk +1 -1
index 3358264f18..ba0c78bd1e 100644
@@ -6,7 +6,7 @@
 
 RADVD_VERSION = 2.18
 RADVD_SITE = http://www.litech.org/radvd/dist
-RADVD_DEPENDENCIES = host-bison flex host-flex host-pkgconf
+RADVD_DEPENDENCIES = host-bison host-flex host-pkgconf
 # We need to ignore <linux/if_arp.h>, because radvd already includes
 # <net/if_arp.h>, which conflicts with <linux/if_arp.h>.
 RADVD_CONF_ENV = \
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/radvd: drop dependency on flex runtime library

Alexander, All,

On 2020-03-20 13:07 +0300, Alexander Mukhin spake thusly:

Quoted 6 lines

Radvd has its own main(), and does not use yywrap() from libfl.so, because scanner.l module contains noyywrap option. So, none of the functions exported by libfl.so are used, and there's no need to have the flex runtime on target.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 37 lines
---
 package/radvd/Config.in | 1 -
 package/radvd/radvd.mk  | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
package/radvd/Config.in +0 -1
index fa5a20c4c1..f1df0c3cb8 100644
@@ -1,7 +1,6 @@
 config BR2_PACKAGE_RADVD
 	bool "radvd"
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_FLEX
 	help
 	  IPv6 Router Advertisement Daemon.
 
package/radvd/radvd.mk +1 -1
index 3358264f18..ba0c78bd1e 100644
@@ -6,7 +6,7 @@
 
 RADVD_VERSION = 2.18
 RADVD_SITE = http://www.litech.org/radvd/dist
-RADVD_DEPENDENCIES = host-bison flex host-flex host-pkgconf
+RADVD_DEPENDENCIES = host-bison host-flex host-pkgconf
 # We need to ignore <linux/if_arp.h>, because radvd already includes
 # <net/if_arp.h>, which conflicts with <linux/if_arp.h>.
 RADVD_CONF_ENV = \
Signature · 6 lines
2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 package/radvd: drop dependency on flex runtime library

In reply to Alexander Mukhin
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexander" == Alexander Mukhin <[email protected]> writes:

Radvd has its own main(), and does not use yywrap() from libfl.so, because scanner.l module contains noyywrap option. So, none of the functions exported by libfl.so are used, and there's no need to have the flex runtime on target.

Committed to 2020.02.x and 2019.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard