[dahdi-tools] blacklist wcopenpci initially

Bruno Wolff III bruno at fedoraproject.org
Sat Aug 17 19:40:32 UTC 2013


commit ec225013fe255951218166e7479f5067d428216d
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Sat Aug 17 14:39:03 2013 -0500

    blacklist wcopenpci initially
    
    Add wcopenpci to the list of drivers that get initially blacklisted
    so that they don't get loaded out of order or attached to the wrong
    device. Not doing this causes problems for tdm400p devices.

 dahdi-tools.spec |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/dahdi-tools.spec b/dahdi-tools.spec
index 02d5716..066ebfc 100644
--- a/dahdi-tools.spec
+++ b/dahdi-tools.spec
@@ -3,7 +3,7 @@
 
 Name:           dahdi-tools
 Version:        %{tools_version}
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Userspace tools to configure the DAHDI kernel modules
 
 Group:          System Environment/Libraries
@@ -15,6 +15,9 @@ Source1:        http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
 Source2:        http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-%{linux_version}.tar.gz
 Source3:        http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-%{linux_version}.tar.gz.asc
 
+# Add wcopenpci to initial blacklist
+Patch0:         dahdi-tools-blacklist-wcopenpci.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  newt-devel%{?_isa}
@@ -59,6 +62,8 @@ developing applications that use DAHDI hardware.
 ln -s dahdi-linux-%{linux_version}/include include
 %{__perl} -pi -e 's/chkconfig:\s([0-9]+)\s([0-9]+)\s([0-9]+)/chkconfig: - \2 \3/' dahdi.init
 
+%patch0 -p0 -b .blacklist
+
 %build
 
 %configure --with-dahdi=`pwd`
@@ -165,6 +170,9 @@ fi
 %{_libdir}/*.so
 
 %changelog
+* Sat Aug 17 2013 Bruno Wolff III <bruno at wolff.to> - 2.7.0-3
+- blacklist wcopenpci so that it doesn't get loaded until the right time
+
 * Sat Aug 17 2013 Bruno Wolff III <bruno at wolff.to> - 2.7.0-2
 - Include user.h as dahdi_config.h to avoid issue noted in bug 783890
 


More information about the scm-commits mailing list