zaptel ebuild fails miserably on linux kernel V2.4 due to an invalid kernel config check. Attached patch repairs that. Also the /etc/modules.conf file needs to be in the /etc directory of the image before the make install is done.
Created attachment 102295 [details, diff] Patch for zaptel 1.2.1[01] ebuild to work on kernel 2.4
In CVS, thanks
Please verify the install part of the patch, it didn't materialize in the ebuild. the insinto is realy needed, otherwise you endup with a file /etc containing the modules.conf data. Current ebuild fails.
cp doesn't watch insinto. (In reply to comment #3) > Please verify the install part of the patch, it didn't materialize in the > ebuild. > > the insinto is realy needed, otherwise you endup with a file /etc containing > the modules.conf data. > > Current ebuild fails. >
insinto also creates the directory...., in that case the sequence can be insinto newfile /etc/modules.conf modules.conf or mkdir ${D}/etc cp /etc/modules.conf ${D}/etc/
and that should have been newins and not newfile...
1.2.12 fails to install on linux 2.4 with: Please consider using my original patch or the fix I mentioned in the previous 2 posts. the current solution doesn't work. >>> Install zaptel-1.2.12 into /var/tmp/portage/zaptel-1.2.12/image/ category net-misc **** Dynamic filesystem detected -- not creating device nodes Not installing firmware because we are not using hotplug firmware install -D -m 755 ztcfg /var/tmp/portage/zaptel-1.2.12/image//sbin/ztcfg if [ -f sethdlc-new ]; then \ install -D -m 755 sethdlc-new /var/tmp/portage/zaptel-1.2.12/image//sbin/sethdlc; \ elif [ -f sethdlc ]; then \ install -D -m 755 sethdlc /var/tmp/portage/zaptel-1.2.12/image//sbin/sethdlc ; \ fi if [ -f zttool ]; then install -D -m 755 zttool /var/tmp/portage/zaptel-1.2.12/image//sbin/zttool; fi for x in zaptel.o tor2.o torisa.o wcusb.o wcfxo.o wctdm.o wctdm24xxp.o ztdynamic.o ztd-eth.o wct1xxp.o wcte11xp.o pciradio.o ztd-loc.o wct4xxp/wct4xxp.o; do \ install -D -m 644 $x /var/tmp/portage/zaptel-1.2.12/image//lib/modules/2.4.32-gentoo-r7/misc/$x ; \ done; if ! [ -f wcfxsusb.o ]; then \ rm -f /var/tmp/portage/zaptel-1.2.12/image//lib/modules/2.4.32-gentoo-r7/misc/wcfxsusb.o; \ fi; \ rm -f /var/tmp/portage/zaptel-1.2.12/image//lib/modules/2.4.32-gentoo-r7/misc/wcfxs.o install -D -m 755 libtonezone.so /var/tmp/portage/zaptel-1.2.12/image//usr/lib/libtonezone.so.1.0 [ `id -u` = 0 ] && /sbin/ldconfig -n /var/tmp/portage/zaptel-1.2.12/image//usr/lib || : rm -f /var/tmp/portage/zaptel-1.2.12/image//usr/lib/libtonezone.so ln -sf libtonezone.so.1.0 \ /var/tmp/portage/zaptel-1.2.12/image//usr/lib/libtonezone.so.1 ln -sf libtonezone.so.1.0 \ /var/tmp/portage/zaptel-1.2.12/image//usr/lib/libtonezone.so install -D -m 644 zaptel.h /var/tmp/portage/zaptel-1.2.12/image//usr/include/linux/zaptel.h install -D -m 644 torisa.h /var/tmp/portage/zaptel-1.2.12/image//usr/include/linux/torisa.h install -D -m 644 tonezone.h /var/tmp/portage/zaptel-1.2.12/image//usr/include/tonezone.h install -d /var/tmp/portage/zaptel-1.2.12/image//usr/share/man/man8 install -m 644 doc/ztcfg.8 /var/tmp/portage/zaptel-1.2.12/image//usr/share/man/man8/ install -m 644 doc/zttool.8 /var/tmp/portage/zaptel-1.2.12/image//usr/share/man/man8/ [ -f /var/tmp/portage/zaptel-1.2.12/image//etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /var/tmp/portage/zaptel-1.2.12/image//etc/zaptel.conf install: accessing `/var/tmp/portage/zaptel-1.2.12/image//etc/zaptel.conf': Not a directory make: *** [install] Error 1 !!! ERROR: net-misc/zaptel-1.2.12 failed. Call stack: ebuild.sh, line 1546: Called dyn_install ebuild.sh, line 1020: Called src_install zaptel-1.2.12.ebuild, line 272: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant.
Linux V2.4 kernels are not supported with gentoo any more, no need to keep the compatibility mode...