[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#646961: marked as done (udhcpc: GNU/kFreeBSD support (not used by d-i/kfreebsd))



Your message dated Sat, 7 Oct 2023 14:15:24 +0300
with message-id <ZSE9zK+Fptjtvdno@localhost>
and subject line kFreeBSD has been removed from Debian ports
has caused the Debian Bug report #646961,
regarding udhcpc: GNU/kFreeBSD support (not used by d-i/kfreebsd)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
646961: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646961
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: udhcpc
Version: 1.18.5-1
Severity: wishlist
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

Debian GNU/kFreeBSD provides two route implementations, /lib/freebsd/route
which is the FreeBSD version of route, and /sbin/route which is a shell
wrapper that attempts to provide a Linux-like CLI.

As the /sbin/route wrapper is very incomplete / unreliable, and applications
tend to expect /sbin/route to provide FreeBSD CLI more often than not, in
the near future we're going to install FreeBSD route into /sbin/route (and
remove the wrapper or put it elsewhere). See:
  http://lists.debian.org/debian-bsd/2011/10/msg00242.html

Attached patch adjusts udhcpc to use FreeBSD route CLI when running on
GNU/kFreeBSD, and to use /lib/freebsd/route instead of /sbin/route.  The
latter is meant to be temporary and allow us to do this switch without
causing any breakage.

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/tree/udhcpc/usr/share/udhcpc/default.script'
--- debian/tree/udhcpc/usr/share/udhcpc/default.script	2011-10-28 18:07:16 +0000
+++ debian/tree/udhcpc/usr/share/udhcpc/default.script	2011-10-28 18:07:25 +0000
@@ -6,6 +6,8 @@
 
 RESOLV_CONF="/etc/resolv.conf"
 
+uname="$(uname)"
+
 case $1 in
     bound|renew)
 	[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
@@ -15,11 +17,19 @@ case $1 in
 
 	if [ -n "$router" ]; then
 	    echo "$0: Resetting default routes"
-	    while /sbin/route del default gw 0.0.0.0 dev $interface; do :; done
+	    if [ ${uname} = "GNU/kFreeBSD" ] ; then
+		/lib/freebsd/route -q flush
+	    else
+		while /sbin/route del default gw 0.0.0.0 dev $interface; do :; done
+	    fi
 
 	    metric=0
 	    for i in $router; do
-		/sbin/route add default gw $i dev $interface metric $metric
+		if [ ${uname} = "GNU/kFreeBSD" ] ; then
+		    /lib/freebsd/route add -net 0.0.0.0 $i dev $interface metric $metric
+		else
+		    /sbin/route add default gw $i dev $interface metric $metric
+		fi
 		metric=$(($metric + 1))
 	    done
 	fi


--- End Message ---
--- Begin Message ---
kFreeBSD has been removed from Debian ports:
https://lists.debian.org/debian-bsd/2023/07/msg00003.html

cu
Adrian

--- End Message ---

Reply to: