Bug#383810: madwifi-source: build madwifi-tools/amd64 from madwifi-tools/i386

Shannon Eric Peevey speeves at erikin.com
Mon Sep 4 01:40:43 UTC 2006


Package: madwifi-source
Version: 0.svnr1697.0.9.2-1
Followup-For: Bug #383810


This is a how-to on creating an amd64 package from the i386 binary.



1. download the i386 binary from:

http://packages.debian.org/unstable/net/madwifi-tools 

2. extract the contents of the package:

dpkg-deb -x  \
madwifi-tools_0.svnr1697.0.9.2-1_i386.deb \
madwifi-tools_0.svnr1697.0.9.2-1_amd64

3. extract the control files:

dpkg-deb -e \
madwifi-tools_0.svnr1697.0.9.2-1_i386.deb \
madwifi-tools_0.svnr1697.0.9.2-1_amd64/DEBIAN

4. modify the architecture in the DEBIAN/control file:

emacs madwifi-tools_0.svnr1697.0.9.2-1_amd64/DEBIAN/control

-- change:

Architecture: i386  to  Architecture: amd64

5. rebuild the binary package:

dpkg-deb --build madwifi-tools_0.svnr1697.0.9.2-1_amd64

6 . install the new madwifi-tools:

sudo dpkg -i  madwifi-tools_0.svnr1697.0.9.2-1_amd64.deb

7. install the binary that you created from madwifi-source:

sudo dpkg -i \
/usr/src/madwifi-modules-2.6.17-2-amd64_0.svnr1697.0.9.2-1+2.6.17-7_amd64.deb

8. load the kernel modules:

sudo modprobe ath_pci

9. run iwconfig to see if ath0 now appears in your list of network
interfaces:

sudo iwconfig

It seems to be working for me, and it doesn't cause the dependency
problems that:

dpkg --force-architecture -i madwifi-tools_0.svnr1697.0.9.2-1_i386.deb

caused.  If anyone wants, I have made my amd64 binary available at:

http://speeves.unt.edu/debian/madwifi-tools_0.svnr1697.0.9.2-1_amd64.deb

This work-around is also documented at:

http://speeves.unt.edu/newindex/?p=135

take care,
speeves

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-amd64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages madwifi-source depends on:
ii  bzip2                         1.0.3-6    high-quality block-sorting file co
ii  debhelper                     5.0.37.3   helper programs for debian/rules
ii  module-assistant              0.10.6     tool to make module package creati

madwifi-source recommends no packages.

-- no debconf information




More information about the Pkg-madwifi-maintainers mailing list