Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2013 15:34:11 +0100
From:      "Lars Engels" <lars@0x20.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/185135: [PATCH] ndisgen: respect iconv in base
Message-ID:  <201312231440.rBNEe0wK079404@freefall.freebsd.org>
Resent-Message-ID: <201312231440.rBNEe0wK079404@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185135
>Category:       bin
>Synopsis:       [PATCH] ndisgen: respect iconv in base
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 23 14:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD milhouse.bsd-geek.de 11.0-CURRENT FreeBSD 11.0-CURRENT #9 r259667: Sat Dec 21 01:42:09 CET 2013 root@milhouse.bsd-geek.de:/usr/obj/usr/src/sys/MILHOUSE2 amd64


	
>Description:
/usr/sbin/ndisgen expects iconv(8) to be in /usr/local while since FreeBSD 10.x iconv is in base.
The attached patch respects both.
	
>How-To-Repeat:
	
>Fix:

	

--- ndisgen.sh.patch begins here ---
Index: ndisgen.sh
===================================================================
--- ndisgen.sh	(revision 259709)
+++ ndisgen.sh	(working copy)
@@ -493,7 +493,12 @@
 	return
 }
 
-ICONVPATH=/usr/local/bin/iconv
+if [ -f /usr/local/bin/iconv ]; then
+	ICONVPATH=/usr/local/bin/iconv
+else
+	ICONVPATH=/usr/bin/iconv
+fi
+
 NDISCVT=/usr/sbin/ndiscvt
 STUBPATH=/usr/share/misc
 STUBFILE=windrv_stub.c
--- ndisgen.sh.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312231440.rBNEe0wK079404>