Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286829 - net-misc/dahdi-2.2.0.2 version bump request
Summary: net-misc/dahdi-2.2.0.2 version bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
: 275635 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-28 19:06 UTC by Jeremy Johnson
Modified: 2009-10-22 18:25 UTC (History)
4 users (show)

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


Attachments
dahdi-2.2.0.2.ebuild (dahdi-2.2.0.2.ebuild,2.08 KB, text/plain)
2009-09-28 19:08 UTC, Jeremy Johnson
Details
patch from asterisk.org (dahdi-linux-2.2.0.2.patch,16.17 KB, patch)
2009-09-28 19:11 UTC, Jeremy Johnson
Details | Diff
module dependency patch (dahdi-2.2.0.2-no-depmod.patch,507 bytes, patch)
2009-09-28 19:12 UTC, Jeremy Johnson
Details | Diff
patch to compile dahdi_echocan_oslec.ko (oslec.patch,613 bytes, patch)
2009-09-28 19:13 UTC, Jeremy Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Johnson 2009-09-28 19:06:04 UTC
need to bump version of dahdi-2.2.0.2 
to work with linux-2.6.30-gentoo-r6

Reproducible: Always
Comment 1 Jeremy Johnson 2009-09-28 19:08:41 UTC
Created attachment 205512 [details]
dahdi-2.2.0.2.ebuild

ebuild for dahdi-2.2.0.2 which compiles and works with kernel 2.6.30-r6
includes support for linux staging driver oslec (software echo cancellation)
Comment 2 Jeremy Johnson 2009-09-28 19:11:15 UTC
Created attachment 205514 [details, diff]
patch from asterisk.org

necessary to compile dahdi with kernels >= 2.6.29
Comment 3 Jeremy Johnson 2009-09-28 19:12:21 UTC
Created attachment 205516 [details, diff]
module dependency patch
Comment 4 Jeremy Johnson 2009-09-28 19:13:44 UTC
Created attachment 205518 [details, diff]
patch to compile dahdi_echocan_oslec.ko
Comment 5 Jeremy Johnson 2009-10-07 20:02:31 UTC
I've compiled dahdi-2.2.0.2 using this ebuild
and have enabled oslec support on each of the ports of my TDM400P cards.
Haven't had any problems using dahdi + oslec + asterisk-1.6

# lsmod | grep oslec
dahdi_echocan_oslec     1480  0
echo                    3360  1 dahdi_echocan_oslec
dahdi                 172692  18 dahdi_echocan_oslec,dahdi_transcode,dahdi_echocan_mg2,xpp,wctdm,wcfxo

#uname -a
Linux pbx 2.6.30-gentoo-r6 #4 SMP Thu Sep 24 20:39:58 EDT 2009 i686 AMD Athlon(TM) XP 2800+ AuthenticAMD GNU/Linux

#gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.2.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.4/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.2.4 (Gentoo 4.2.4-r1 p1.1)

#emerge --info
Portage 2.2_rc40 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.10.1-r0, 2.6.30-gentoo-r6 i686)
=================================================================                             
System uname: Linux-2.6.30-gentoo-r6-i686-AMD_Athlon-TM-_XP_2800+-with-gentoo-2.0.1           
Timestamp of tree: Tue, 06 Oct 2009 09:30:01 +0000                                            
distcc 3.1 i686-pc-linux-gnu [enabled]                                                        
ccache version 2.4 [enabled]                                                                  
app-shells/bash:     4.0_p33                                                                  
dev-java/java-config: 1.3.7-r1, 2.1.9-r1                                                      
dev-lang/python:     2.4.4-r15, 2.5.4-r2, 2.6.2-r1, 3.1.1                                     
dev-python/pycrypto: 2.0.1-r8                                                                 
dev-util/ccache:     2.4-r8                                                                   
dev-util/cmake:      2.6.4-r2                                                                 
sys-apps/baselayout: 2.0.1                                                                    
sys-apps/openrc:     0.4.3-r3                                                                 
sys-apps/sandbox:    1.6-r2                                                                   
sys-devel/autoconf:  2.13, 2.63-r1                                                            
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11           
sys-devel/binutils:  2.19.1-r1                                                                
sys-devel/gcc-config: 1.4.1                                                                   
sys-devel/libtool:   2.2.6a                                                                   
virtual/os-headers:  2.6.30-r1                                                                
ACCEPT_KEYWORDS="x86 ~x86"                                                                    
CBUILD="i686-pc-linux-gnu"                                                                    
CFLAGS="-O2 -march=athlon-xp -pipe"                                                           
CHOST="i686-pc-linux-gnu"



It might make sense to have one up-to-date dahdi ebuild which includes both kernel's oslec and Digium's hpec echo cancellors. This ebuild should probably check for kernel version >=2.6.28
and check for kernel configuration parameters: CONFIG_STAGING=y and CONFIG_ECHO=m

I could either patch this ebuild to include hpec support, ala http://bugs.gentoo.org/show_bug.cgi?id=270283 (see comment #34)
or add oslec support to that ebuild.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-10-15 18:36:05 UTC
dahdi-2.2.0.2 has been in the voip overlay for some time already, including build fix for 2.6.31
Comment 7 Jeremy Johnson 2009-10-15 19:18:49 UTC
(In reply to comment #6)
> dahdi-2.2.0.2 has been in the voip overlay for some time already, including
> build fix for 2.6.31
> 

I just sync'd my voip overlay.
I don't see any explicit support for software echo cancellation in the 2.2.0.2 ebuild. 
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-10-21 17:01:05 UTC
If you have a feature request, then you are best advised to open a separate bug report.
Comment 9 Joseph 2009-10-22 13:38:44 UTC
What difference opening another bug would make, increase the number of bugs?
Jeremy is correct the new dahdi should include oslec.

I was thinking of using new USBfxo and need this oslec; so I guess I'll have to use Jeremy's ebuild.
Comment 10 Tony Vroon (RETIRED) gentoo-dev 2009-10-22 15:28:56 UTC
*** Bug 275635 has been marked as a duplicate of this bug. ***
Comment 11 Tony Vroon (RETIRED) gentoo-dev 2009-10-22 18:25:37 UTC
Sorry, copying half of the kernel sources in is just not acceptable. Version bumped all the same though, thanks for the bug :)

+*dahdi-2.2.0.2 (22 Oct 2009)
+
+  22 Oct 2009; <chainsaw@gentoo.org> +dahdi-2.2.0.2.ebuild,
+  +files/dahdi-2.2.0.2-driver_data-2.6.32.patch,
+  +files/dahdi-2.2.0.2-gcc44-hack.patch,
+  +files/dahdi-2.2.0.2-includes.patch,
+  +files/dahdi-2.2.0.2-net-device-ops.patch,
+  +files/dahdi-2.2.0.2-no-depmod.patch:
+  Version bump, closes bug #286829 by Jeremy Johnson. Build all target
+  instead of modules target so echo cancellation becomes available, as
+  suggested by Jay Pfeifer in bug #268652. Ported to 2.6.32 kernels (release
+  candidate 5 at the time of writing), filed upstream bug. Quick hack for
+  GCC4.4 compilation.