Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155604 - zaptel 1.2.x build fails on 2.4 kernels.
Summary: zaptel 1.2.x build fails on 2.4 kernels.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-18 11:51 UTC by Nico Baggus
Modified: 2007-08-24 20:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for zaptel 1.2.1[01] ebuild to work on kernel 2.4 (zaptel-lnx24.patch,1.06 KB, patch)
2006-11-18 12:22 UTC, Nico Baggus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Baggus 2006-11-18 11:51:16 UTC
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.
Comment 1 Nico Baggus 2006-11-18 12:22:30 UTC
Created attachment 102295 [details, diff]
Patch for zaptel 1.2.1[01] ebuild to work on kernel 2.4
Comment 2 Timothy Redaelli (RETIRED) gentoo-dev 2006-11-19 08:56:11 UTC
In CVS, thanks
Comment 3 Nico Baggus 2006-11-28 02:20:10 UTC
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. 
Comment 4 Timothy Redaelli (RETIRED) gentoo-dev 2006-11-29 05:01:20 UTC
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. 
> 

Comment 5 Nico Baggus 2006-11-29 09:53:33 UTC
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/
Comment 6 Nico Baggus 2006-11-29 15:15:33 UTC
and that should have been newins and not newfile...
Comment 7 Nico Baggus 2006-12-20 07:58:55 UTC
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.
Comment 8 Nico Baggus 2007-08-24 20:32:06 UTC
Linux V2.4 kernels are not supported with gentoo any more, no need to keep the compatibility mode...