I am trying to make the pcmcia modules package with make-kpkg and not having much luck.
I untar both the kernel source and the pcmcia source under /usr/src, then go into the kernel source directory and type: make-kpkg --revision myhostname.1 kernel_image modules_image Everything seems to go fine at a cursory glance, and there is a kernel package in the parent directory, but no pcmcia modules package. (even though it said: "Module /usr/src/modules/pcmcia-cs processed fine"). This is more frustrating than if it were just erroring out. Any suggestions would be greatly appreciated. If I am missing something really obvious, please try and not make me feel TOO stupid. ;) Here are what seem to be the relevant package versions: ii pcmcia-source 3.1.28-2 PCMCIA Card Services source. ii kernel-package 7.69 Debian Linux kernel package build scripts. ii kernel-source-2.4.10-ac9 myhostname.1 Linux kernel source for version 2.4.10-ac9 (the above made made w/ make-kpkg then installed) ii make 3.79.1-10 The GNU version of the "make" utility. ii dpkg 1.9.17 Package maintenance system for Debian ii dpkg-dev 1.9.17 Package building tools for Debian ii fileutils 4.1-7 GNU file management utilities. ii gcc 2.95.4-5 The GNU C compiler. ii debianutils 1.15 Miscellaneous utilities specific to Debian. Here is the output from just 'make-kpkg modules_image': for module in /usr/src/modules/pcmcia-cs ; do \ if test -d $module; then \ (cd $module; \ if ./debian/rules KVERS="2.4.10-ac9" KSRC="/usr/src/kernel-source-2.4.10-ac9" \ KMAINT="Unknown Kernel Package Maintainer" KEMAIL="[EMAIL PROTECTED]" \ KDREV="kamkalsa.1" kdist_image; then \ echo "Module $module processed fine"; \ else \ echo "Module $module failed."; \ echo "Hit return to Continue"; \ read ans; \ fi; \ ); \ fi; \ done make[1]: Entering directory `/usr/src/modules/pcmcia-cs' test -f man/pcmcia.5 -a -f debian/rules test root = "`whoami`" test -f man/pcmcia.5 -a -f debian/rules rm -f debian/files /usr/bin/make -f debian/rules MOD_DIR=/usr/src/kernel-source-2.4.10-ac9 clean-modules binary-modules make[2]: Entering directory `/usr/src/modules/pcmcia-cs' test -f man/pcmcia.5 -a -f debian/rules umask 022; /usr/bin/make DEB_MOD=yes clean make[3]: Entering directory `/usr/src/modules/pcmcia-cs' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/modules' rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/modules' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/clients' rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/clients' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/wireless' rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/wireless' rm -f .prereq.ok config.mk include/pcmcia/config.h rm -f include/linux/modversions.h make[3]: Leaving directory `/usr/src/modules/pcmcia-cs' rm -f build-modules test -f man/pcmcia.5 -a -f debian/rules test root = "`whoami`" KVERS="2.4.10-ac9" ./Configure -n --kernel="/usr/src/kernel-source-2.4.10-ac9" --srctree \ --cardbus --rcdir=/etc --cc=cc -------- Linux PCMCIA Configuration Script -------- The default responses for each question are correct for most users. Consult the PCMCIA-HOWTO for additional info about each option. Linux source directory [/usr/src/kernel-source-2.4.10-ac9] The kernel source tree is version 2.4.10-ac9. WARNING: the current kernel is version 2.4.2-ac19. The current kernel build date is Sun May 20 23:56:59 2001. Build 'trusting' versions of card utilities (y/n) [n] Include PnP BIOS resource checking (y/n) [n] Module install directory [/lib/modules/2.4.10-ac9] Kernel configuration options: Kernel-tree PCMCIA support is enabled. Symmetric multiprocessing support is disabled. PCI BIOS support is enabled. Power management (APM) support is enabled. SCSI support is enabled. IEEE 1394 (FireWire) support is disabled. Networking support is enabled. Radio network interface support is enabled. Token Ring device support is disabled. Fast switching is disabled. Frame Diverter is disabled. Module version checking is enabled. Kernel debugging support is disabled. /proc filesystem support is enabled. It looks like you have a System V init file setup. X Windows include files found. /usr/X11R6/lib/libXpm.so and /usr/include/X11/xpm.h found. Configuration successful. rm -f build build-modules test -f man/pcmcia.5 -a -f debian/rules umask 022; /usr/bin/make DEB_MOD=yes all make[3]: Entering directory `/usr/src/modules/pcmcia-cs' make[3]: Leaving directory `/usr/src/modules/pcmcia-cs' touch build-modules test -f man/pcmcia.5 -a -f debian/rules rm -f -r debian/tmp-modules install -d debian/tmp-modules debian/tmp-modules/DEBIAN KSRC="/usr/src/kernel-source-2.4.10-ac9" KVERS="2.4.10-ac9" KDREV="kamkalsa.1" \ sh -v debian/setvers.sh #!/bin/sh # setvers.sh - extract version numbers from the changelog and kernel # source and build the control file and prerm script for the # pcmcia-modules package # KSRC is expected to be passed through the environment set -e umask 022 # define some sed scripts for extracting the upstream version number # and Debian revision number from a Debian changelog pc_vers_sed=' /#define CS_RELEASE "\(.*\)"/{ s//\1/p q }' up_vers_sed=' 1{ s/^[^(]*(// s/)[^)]*$// /-[A-Za-z0-9.+]*$/{ s/// b enddeb } /-/q :enddeb /^[A-Za-z0-9.+:-]\{1,\}$/p q }' deb_rev_sed=' 1{ s/^[^(]*(// s/)[^)]*$// s/^.*-\([A-Za-z0-9.+]*\)$/\1/p q }' test "$KVERS" || \ KVERS=`sed -ne '/UTS_RELEASE=/{ s/// p q }' config.mk` # extract the upstream version number and debian revision number UPVERS=`sed -ne "$pc_vers_sed" include/pcmcia/version.h` sed -ne "$pc_vers_sed" include/pcmcia/version.h DEBREV=`sed -ne "$deb_rev_sed" debian/changelog` sed -ne "$deb_rev_sed" debian/changelog NEXTVERS=${UPVERS%.*}.`expr ${UPVERS##*.} + 1` expr ${UPVERS##*.} + 1 # determine the version numbers for the kernel source # use a Debian changelog if it exists, otherwise use the kernel version # number determined by the PCMCIA configure script if [ "$KDREV" ]; then case "$KDREV" in *-*) KDEBREV=${KDREV##*-} ;; *) KDEBREV="" ;; esac KVERSDEB=${KDREV%-*} elif test -r "$KSRC/debian/changelog"; then KDEBREV=`sed -ne "$deb_rev_sed" "$KSRC/debian/changelog"` KVERSDEB=`sed -ne "$up_vers_sed" "$KSRC/debian/changelog"` else KDEBREV="" KVERSDEB="$KVERS" fi # remove the epoch number (if any) KVERSDEBNE="${KVERSDEB##*:}" # test whether we have successfully determined the version numbers test "$KVERS" -a "$UPVERS" -a "$DEBREV" || exit 1 echo "$KVERS" > debian/KVERS if [ "${KVERS%-*}" = "$KVERSDEBNE" ]; then MODVERS="$UPVERS-${DEBREV}${KDEBREV:+k$KDEBREV}" else MODVERS="$UPVERS-${DEBREV}+"`echo "$KVERSDEBNE" | tr - +`${KDEBREV:+"+$KDEBREV"} fi echo "$KVERSDEBNE" | tr - + echo "$MODVERS" > debian/MODVERS # Generate a correct control file and prerm script for the modules package for script in preinst postinst prerm config templates; do sed -e 's/\${kvers}/'"$KVERS"'/g s/\${kversdeb}/'"$KVERSDEB"'/g' \ debian/pcmcia-modules.$script.in > debian/tmp-modules/DEBIAN/$script chmod +x debian/tmp-modules/DEBIAN/$script done chmod -x debian/tmp-modules/DEBIAN/templates cat debian/source.control > debian/control.tmp if [ "${KVERS%-*}" = "$KVERSDEBNE" -a "$KDEBREV" ]; then sed -e 's/\${kvers}/'"$KVERS"'/g' debian/pcmcia-modules.control | \ tee -a debian/control >> debian/control.tmp else sed -e 's/\${kvers}/'"$KVERS"'/g' debian/pcmcia-modules.control | \ sed -e 's/Depends: kernel-image[^)]*),/Depends:/' | \ tee -a debian/control >> debian/control.tmp fi dpkg-gencontrol -Vkversdeb="$KVERSDEB${KDEBREV:+-$KDEBREV}" -v"$MODVERS" \ -Vcurvers="$UPVERS" -Vnextvers="$NEXTVERS" \ -p"pcmcia-modules-$KVERS" -Pdebian/tmp-modules \ -cdebian/control.tmp exit 0 cat debian/pcmcia-cs.templates >>debian/tmp-modules/DEBIAN/templates install -d "debian/tmp-modules/usr/share/doc/pcmcia-modules-`cat debian/KVERS`" install debian/pcmcia-modules.postrm debian/tmp-modules/DEBIAN/postrm umask 022; /usr/bin/make \ DEB_MOD=yes PREFIX=`pwd`/debian/tmp-modules install make[3]: Entering directory `/usr/src/modules/pcmcia-cs' make[3]: Leaving directory `/usr/src/modules/pcmcia-cs' install -m644 debian/changelog \ debian/tmp-modules/usr/share/doc/pcmcia-modules-`cat debian/KVERS`/changelog.Debian gzip -9v debian/tmp-modules/usr/share/doc/pcmcia-modules-*/* debian/tmp-modules/usr/share/doc/pcmcia-modules-2.4.10-ac9/changelog.Debian: 74.5% -- replaced with debian/tmp-modules/usr/share/doc/pcmcia-modules-2.4.10-ac9/changelog.Debian.gz install -m644 debian/copyright \ debian/tmp-modules/usr/share/doc/pcmcia-modules-`cat debian/KVERS`/copyright cat COPYING \ >> debian/tmp-modules/usr/share/doc/pcmcia-modules-`cat debian/KVERS`/copyright chown -R root.root debian/tmp-modules chmod -R g-ws debian/tmp-modules if test -d debian/tmp-modules/lib/modules; then \ dpkg-deb --build debian/tmp-modules /usr/src/kernel-source-2.4.10-ac9/..; fi make[2]: Leaving directory `/usr/src/modules/pcmcia-cs' make[1]: Leaving directory `/usr/src/modules/pcmcia-cs' Module /usr/src/modules/pcmcia-cs processed fine -- the Edward Blevins <[EMAIL PROTECTED]> (512) 436-9576 /(0\ mi tavla fo la lojban .i xu do go'i? \1)/ .i.e'u ko vitke fi zoi .url. http://www.lojban.org .url. Today is Pungenday, the 64th day of Bureaucracy, 3167.