Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 275635

Summary: dahdi 2.2.0 released - version bump request
Product: Gentoo Linux Reporter: Thomas Stein <himbeere>
Component: Current packagesAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED DUPLICATE    
Severity: normal CC: chithanh, dabbott, jazz_johnson, voip+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.asterisk.org/node/48603
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dahdi-linux with zaphfc/bristuff
dahdi-2.2.0-no-depmod.patch
dahdi-2.2.0_zaphfc.patch
dahdi-2.2.0.2 with oslec patch
dahdi-2.2.0.2-no-depmod.patch
dahdi-linux-2.2.0.2.patch
ebuild for dahdi with proper oslec patch
oslec patch

Description Thomas Stein 2009-06-27 19:52:56 UTC
Hello.

Dahdi 2.2.0 has been released. An updated ebuild would be nice because the current ebuild in portage does not build with kernel 2.6.30.

cheers
Thomas

Reproducible: Always
Comment 1 Norbert Marx 2009-07-03 01:32:36 UTC
Created attachment 196462 [details]
dahdi-linux with zaphfc/bristuff

zaphfc see also http://www.ip-phone-forum.de/showthread.php?t=176656
Comment 2 Norbert Marx 2009-07-03 01:32:58 UTC
Created attachment 196464 [details, diff]
dahdi-2.2.0-no-depmod.patch
Comment 3 Norbert Marx 2009-07-03 01:33:30 UTC
Created attachment 196465 [details, diff]
dahdi-2.2.0_zaphfc.patch
Comment 4 Norbert Marx 2009-07-03 01:40:24 UTC
dahdi-tools 2.2.0 doesn't compile:

x86_64-pc-linux-gnu-gcc -mtune=k8 -O2 -pipe -I. -O2 -g -fPIC -Wall -DBUILDING_TONEZONE   -O0 -MD -MT dahdi_speed.o -MF .dahdi_speed.o.d -MP -c -o dahdi_speed.o dahdi_speed.c                                  
sethdlc.c: In function 'error':                                                                                                                                                                                
sethdlc.c:62: error: invalid use of undefined type 'struct __kernel_ifreq'                                                                                                                                     
sethdlc.c: In function 'set_iface':                                                                                                                                                                            
sethdlc.c:207: error: invalid use of undefined type 'struct __kernel_ifreq'                                                                                                                                    
...

see also http://bugs.gentoo.org/show_bug.cgi?id=270283
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-07-19 10:56:25 UTC
I added dahdi-2.2.0.1 to the voip overlay. Please test.

For the hfc patch please open a separate bug.
Comment 6 Thomas Stein 2009-07-20 10:20:03 UTC
Hello.

First, thanks for the ebuild but I get:

dahdi # emerge -p dahdi

These are the packages that would be merged, in order:

Calculating dependencies - * Digest verification failed:
 * /usr/local/portage/net-misc/dahdi/dahdi-2.2.0.1.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 1864
 * Expected: 1862
... done!
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-07-20 12:51:38 UTC
(In reply to comment #6)
> Calculating dependencies - * Digest verification failed:
>  * /usr/local/portage/net-misc/dahdi/dahdi-2.2.0.1.ebuild
>  * Reason: Filesize does not match recorded size
>  * Got: 1864
>  * Expected: 1862

You did not use the ebuild from the voip overlay. That ebuild has 1906 bytes. And you probably modified or overwrote the ebuild without redigesting afterwards.
Comment 8 Thomas Stein 2009-07-20 14:17:57 UTC
You're right. I had my own ebuild under /usr/local/portage. Sorry. Voip ebuild installs fine. Thank you.
Comment 9 Jeremy Johnson 2009-09-24 14:35:34 UTC
Created attachment 205113 [details]
dahdi-2.2.0.2 with oslec patch

I modified the 2.2.0.1 ebuild to support the latest 2.2.0.4 and added oslec support following the asterisk dahdi Readme. Also needs dahdi-2.2.0.2-no-depmod.patch (just changing versions in patch) and dahdi-linux-2.2.0.2.patch from asterisk download site.
Comment 10 Jeremy Johnson 2009-09-24 14:36:59 UTC
Created attachment 205116 [details, diff]
dahdi-2.2.0.2-no-depmod.patch
Comment 11 Jeremy Johnson 2009-09-24 14:38:38 UTC
Created attachment 205118 [details, diff]
dahdi-linux-2.2.0.2.patch

Patch for kernels >2.6.29. changes netif_fx_* to napi_*
Comment 12 Jeremy Johnson 2009-09-24 14:43:11 UTC
I've compile dahdi-2.2.0.2 with oslec support on linux-2.6.30-r6
The install fails because of file collision with zaptel's xpp.rules:

 * net-misc/zaptel-1.4.11                                                
 *      /etc/udev/rules.d/xpp.rules

(I still have asterisk-1.4 installed which uses zaptel and dahdi if available)
Comment 13 Jeremy Johnson 2009-09-28 15:52:24 UTC
Created attachment 205486 [details]
ebuild for dahdi with proper oslec patch

The sed lines in my last ebuild did nothing but write to stdout.
Comment 14 Jeremy Johnson 2009-09-28 15:53:40 UTC
Created attachment 205487 [details, diff]
oslec patch

patch of dahdi-linux-2.2.0.2/drivers/dahdi/Kbuild
Comment 15 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-09-28 16:17:33 UTC
Please do not use this bug for other things than the version bump, as was already requested in comment #5. If you have a feature request, you may open a separate bug.
Comment 16 Tony Vroon (RETIRED) gentoo-dev 2009-10-22 15:28:56 UTC
Going for 2.2.0.2 and skipping intermediate versions.

*** This bug has been marked as a duplicate of bug 286829 ***