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

Bug#601803: patch for wireless support



Hi,

Robert Millan <rmh@debian.org> writes:
> Here's a backport of the wireless patch to freebsd-utils 8.1 (version used
> in squeeze).  Hopefully this helps you getting it tested.

# debdiff freebsd-utils_8.1-4.dsc freebsd-utils_8.1-4lindi1.dsc
diff -u freebsd-utils-8.1/debian/changelog freebsd-utils-8.1/debian/changelog
--- freebsd-utils-8.1/debian/changelog
+++ freebsd-utils-8.1/debian/changelog
@@ -1,3 +1,10 @@
+freebsd-utils (8.1-4lindi1) unstable; urgency=low
+
+  * Apply Robert Millan's patch from #601803 to fix
+    wireless support.
+
+ -- Timo Juhani Lindfors <timo.lindfors@iki.fi>  Fri, 17 Jun 2011 18:53:26 +0300
+
 freebsd-utils (8.1-4) unstable; urgency=low
 
   [ Petr Salinger ]
only in patch2:
unchanged:
--- freebsd-utils-8.1.orig/wireless.diff
+++ freebsd-utils-8.1/wireless.diff
@@ -0,0 +1,68 @@
+Index: debian/control
+===================================================================
+--- debian/control     (revision 3465)
++++ debian/control     (working copy)
+@@ -7,7 +7,7 @@
+  libkvm-dev (>= 8.1), libbsd-dev (>= 0.2.0), libc0.1-dev (>= 2.11.2),
+  flex | flex-old, kfreebsd-kernel-headers (>= 0.51), libmemstat-dev, libnetgraph-dev,
+  libipx-dev, libkiconv-dev, libgeom-dev, libdevstat-dev, libsbuf-dev, libcam-dev (>= 8.1),
+- libedit-dev, sharutils
++ libedit-dev, sharutils, libexpat1-dev
+ # libkvm-dev: dmesg
+ # libgeom-dev : ccdconfig
+ # libipx-dev: ifconfig
+@@ -17,6 +17,7 @@
+ # libsbuf-dev: mdconfig
+ # libcam-dev: camcontrol
+ # libedit-dev: pppctl
++# libexpat1-dev: ifconfig
+ Vcs-Browser: http://svn.debian.org/wsvn/glibc-bsd/trunk/freebsd-utils/
+ Vcs-Svn: svn://svn.debian.org/glibc-bsd/trunk/freebsd-utils/
+ Standards-Version: 3.9.1
+Index: debian/patches/002_ifconfig.diff
+===================================================================
+--- debian/patches/002_ifconfig.diff   (revision 3465)
++++ debian/patches/002_ifconfig.diff   (working copy)
+@@ -29,21 +29,21 @@
+ +#SRCS+= ifgre.c                      # GRE keys etc
+  SRCS+=  ifgif.c                            # GIF reversed header workaround
+  
+--SRCS+=       ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
++ SRCS+=       ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
+ -DPADD+=      ${LIBBSDXML} ${LIBSBUF} ${LIBJAIL}
+ -LDADD+=      -lbsdxml -ljail -lsbuf
+--
+--SRCS+=       ifcarp.c                # SIOC[GS]VH support
+--SRCS+=       ifgroup.c                 # ...
+--SRCS+=       ifpfsync.c                  # pfsync(4) support
+-+#SRCS+=      ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
+ +#DPADD+=     ${LIBBSDXML} ${LIBSBUF} ${LIBJAIL}
+ +#LDADD+=     -lbsdxml -ljail -lsbuf
+++LDADD+=      -lexpat -lsbuf
+ +
+ +#SRCS+=      ifcarp.c                # SIOC[GS]VH support
+ +#SRCS+=      ifgroup.c                 # ...
+ +#SRCS+=      ifpfsync.c                  # pfsync(4) support
+  
++-SRCS+=       ifcarp.c                # SIOC[GS]VH support
++-SRCS+=       ifgroup.c                 # ...
++-SRCS+=       ifpfsync.c                  # pfsync(4) support
++-
+ -SRCS+=       ifbridge.c              # bridge support
+ -SRCS+=       iflagg.c                  # lagg support
+ +#SRCS+=      ifbridge.c                  # bridge support
+Index: debian/rules
+===================================================================
+--- debian/rules       (revision 3465)
++++ debian/rules       (working copy)
+@@ -5,8 +5,8 @@
+ # Uncomment this to turn on verbose mode.
+ #export DH_VERBOSE=1
+ 
+-CFLAGS = -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D'__FBSDID(string)='
+-CXXFLAGS = -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D'__FBSDID(string)='
++CFLAGS = -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D'__FBSDID(string)=' -D__va_list=__builtin_va_list
++CXXFLAGS = -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D'__FBSDID(string)=' -D__va_list=__builtin_va_list
+ 
+ ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0



but I still get

# ifconfig wlan0 create wlandev ath0
ifconfig: SIOCIFCREATE2: Bad address

Sources and binaries are at

http://iki.fi/lindi/kfreebsd/wireless/

if somebody else wants to try.



-Timo



Reply to: