Skip to contentSkip to conversation

New: openvpn usage of ip tool from Busybox

Buildroot bugzilla at busybox.net 1 participant 4 messages Apr 4, 2013 – May 4, 2013

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=6164

Summary: openvpn usage of ip tool from Busybox
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: aleksandar.zivkovic at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Overview: wrong condition for openvpn configuration on ip application usage

Steps to Reproduce:
Build openvpn without selected package BR2_PACKAGE_IPROUTE2

Actual Results:
Built application will seek for ip tool in path /bin/ip which is location of BR2_PACKAGE_IPROUTE2. Location of Busybox version of ip is /sbin/ip

Expected Results:
If openvpn is build without selected package BR2_PACKAGE_IPROUTE2 it should select Busybox version of ip: /sbin/ip.

Build Date & Platform: BR 2013.02

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 6164] openvpn usage of ip tool from Busybox

https://bugs.busybox.net/show_bug.cgi?id=6164

--- Comment #1 from Aleksandar <[email protected]> 2013-04-04 14:54:36 UTC --- Further mk file update solved problem on my side:

openvpn.mk (revision 12122) renamed from openvpn.mk (revision 12121) +2 -2
Index: openvpn.mk
===================================================================
@@ -18,9 +18,9 @@
 endif
 
 ifeq ($(BR2_PACKAGE_IPROUTE2),y)
+OPENVPN_CONF_ENV += IPROUTE=/bin/ip
+else
 OPENVPN_CONF_ENV += IPROUTE=/sbin/ip
-else
-OPENVPN_CONF_ENV += IPROUTE=/bin/ip
 endif
 
 ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 6164] openvpn usage of ip tool from Busybox

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6164

Gustavo Zacarias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |ASSIGNED
                 CC|                            |gustavo at zacarias.com.ar

--- Comment #2 from Gustavo Zacarias <[email protected]> 2013-04-04 16:56:53 UTC --- *SIGH*
Actually your modification isn't 100% correct.
Busybox <1.21.x places ip in /bin, >=1.21.x places it in /sbin (like the iproute2 package).
So some additional logic is needed.
I've just sent a patch to the list to address this, try
http://patchwork.ozlabs.org/patch/233877/

Thanks for the headsup!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 6164] openvpn usage of ip tool from Busybox

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6164

Gustavo Zacarias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Gustavo Zacarias <[email protected]> 2013-05-04 13:55:59 UTC --- Fixed in git commit 1627fb54715406d6c76461d5104ee11dabbf5870 for the upcoming 2013.05 release.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.