<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>75656</bug_id>
          
          <creation_ts>2004-12-25 15:56 0000</creation_ts>
          <short_desc>net-dialup/slmodem fix for 2.6.10</short_desc>
          <delta_ts>2005-01-18 06:00:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>Inclusion</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dsd@gentoo.org</reporter>
          <assigned_to>net-dialup@gentoo.org</assigned_to>
          <cc>gregkh@gentoo.org</cc>
    
    <cc>kronenpj@kronenpj.dyndns.org</cc>

      

      
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2004-12-25 15:56:10 0000</bug_when>
            <thetext>Please apply this patch for users who are running 2.6.10 or newer. Some in-kernel API has changed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2004-12-25 15:56:24 0000</bug_when>
            <thetext>Created an attachment (id=46885)
slmodem-2.9.10-fix-for-2.6.10.patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2004-12-25 23:21:05 0000</bug_when>
            <thetext>The driver does not work for me:

slamr: module license &apos;Smart Link Ltd.&apos; taints kernel.
slamr: Unknown symbol get_device
slamr: Unknown symbol put_device
slamr: Unknown symbol device_release_driver

so your fix is not really sufficient, any clue on this problem?

other thing is: should we not put your code change in ifdefs and apply it only when we detect a 2.6.10 kernel?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2004-12-26 02:16:45 0000</bug_when>
            <thetext>Those functions are now only available to GPL modules :(
Greg, whats the way to approach this?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2004-12-29 14:08:45 0000</bug_when>
            <thetext>For the time being, I&apos;ve blocked the installation for kernels &gt;= 2.6.10.
Usage of kernel exported symbols have been restricted to GPL modules: http://www.uwsg.iu.edu/hypermail/linux/kernel/0110.2/0369.html

I think this bug should be closed with UPSTREAM resolution. Opinions?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2004-12-29 14:20:45 0000</bug_when>
            <thetext>Only slamr is affected, so we could simply remove that module for kernels &gt;= 2.6.10

Slamr is fully replaced by snd-intel8x0m I think.

However slusb in the ebuild has no replacement, so please compile it for all kernels and do not bail out on &gt;=2.6.10
Also the slmodemd is always needed .. so we really need that ebuild ..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2004-12-29 14:43:52 0000</bug_when>
            <thetext>Ok, I&apos;ve rolled back r[12] revisions and changed r3 as follows:
  - allow installation for kernels &gt;= 2.6.10 but don&apos;t install slamr module
  - apply Daniel&apos;s patch if and only if kernel ver &gt;= 2.6.10 

Are these changes ok?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2004-12-29 16:41:48 0000</bug_when>
            <thetext>You can make one simplification in src_unpack

-	# http://marc.theaimsgroup.com/?l=gentoo-dev&amp;m=109672618708314&amp;w=2
-	if kernel_is ge 2 6 6; then
-		sed -i &apos;s:SUBDIRS=:M=:g&apos; drivers/Makefile
-	fi
+	convert_to_m drivers/Makefile
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2004-12-30 00:42:12 0000</bug_when>
            <thetext>patch applied. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsanjuan@pingvin-it.no</who>
            <bug_when>2005-01-02 06:05:28 0000</bug_when>
            <thetext>It is not a bug, but what Alin Nastac pointed out. There are 2 controversial workarounds that will probably have to be applied by the user manually; 1) Change all entries to MODULE_LICENSE(&quot;GPL&quot;) in slmodem&apos;s source code, 2) Patch the kernel to export the required symbols to non-GPL drivers.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-02 06:16:14 0000</bug_when>
            <thetext>Neither of those are suitable here. I also dont think slmodem using device_release_driver is correct (have not looked at the other 2). I think the slmodem source code can be worked in a better way.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsanjuan@pingvin-it.no</who>
            <bug_when>2005-01-02 08:22:36 0000</bug_when>
            <thetext>The main problem lies on &quot;Unknown symbol&quot; due to the required symbols are not exported (EXPORT_SYMBOL_GPL is used and not EXPORT_SYMBOL) because the slmodem driver is not licensed with GPL. A suitable fix, in terms of licensing and kernel developers&apos; ideology, is to make a GPL licensed wrapper driver for the slmodem binary driver.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-02 08:34:30 0000</bug_when>
            <thetext>That is not up to us to decide. Plus my last point still stands. I read something like device_release_driver should only be used if it was previously registered with device_register_driver, which it is not.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsanjuan@pingvin-it.no</who>
            <bug_when>2005-01-02 09:14:10 0000</bug_when>
            <thetext>I just read Smart Link&apos;s license (http://www.smlink.com/main/item.php?ln=en&amp;item_id=24&amp;main_id=20) and they prohibit any kind of modifications of their driver. So there is actually no point of fixing this driver if they will call you a criminal bt doing so.
I&apos;ve also checked Nvidia&apos;s driver and they reimplemented the GPL only symbols.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-02 09:58:11 0000</bug_when>
            <thetext>That does not apply to smartlinks glue code, which is released under a different (BSD-like) license. I have sent code fixes to smartlink in the past which are incorporated in these releases.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gregkh@gentoo.org</who>
            <bug_when>2005-01-02 19:23:57 0000</bug_when>
            <thetext>nvidia does not have wrappers around the gpl licensed functions, they merely
call different functions.

If such wrappers were created for this driver, it would be time to call
my employer&apos;s lawyers, as that is my code they are violating by doing so.

So please, either get upstream to use the proper kernel interfaces (that are not marked GPL only), or get them to change their license of the code, not much we can
do here about this (nor do I want to have gentoo make such changes, as it is not
legal for us to do so, as has been pointed out.)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-03 06:22:59 0000</bug_when>
            <thetext>Created an attachment (id=47478)
slmodem license

This is the slmodem license as included in the source code. It&apos;s not GPL
compatible but is fairly &quot;open&quot; at the same time. And they didn&apos;t seem to have
a problem with me hacking the source the last time around.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-03 07:28:22 0000</bug_when>
            <thetext>Created an attachment (id=47481)
slmodem-2.9.10-pci-workaround.patch

The init function currently scans the hardware, and if any supported hardware
has been claimed by another driver, it tries to unregister it frmo that driver
before claiming it itself. This seems rather messy, dropping that code
altogether is a good workaround for this problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2005-01-06 15:13:07 0000</bug_when>
            <thetext>patch applied in r4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kronenpj@kronenpj.dyndns.org</who>
            <bug_when>2005-01-11 15:33:56 0000</bug_when>
            <thetext>In response to comment #5, slamr is not fully replaced by snd-intel8x0.  I have a modem that works 99% with slamr but is completely unrecognized by snd-intel8x0.  Any suggestions?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kronenpj@kronenpj.dyndns.org</who>
            <bug_when>2005-01-11 16:12:13 0000</bug_when>
            <thetext>Stupid user error...

1. Insert snd-intel8x0m
2. Use slmodem and hw:1, not modem:0 or modem:1.

Continue life in a happy and joyous way...
Many apologies.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>MasterOne@MHR.at</who>
            <bug_when>2005-01-17 10:24:46 0000</bug_when>
            <thetext>Can someone point out, which way to go now?

Is it fully working by using just snd-intel8x0m, without the use of the slamr module?

If the problem with the slmodem-archive, so building the slamr module on a 2.6.10 kernel got fixed, what is it about &quot;-r4&quot; since slmodem-2.9.10-r1.ebuild is still the last one showing up in portage?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-17 12:47:09 0000</bug_when>
            <thetext>You need snd-intel8x0m, not slamr. But I think you also need the slmodemd program from this package (maybe you could confirm or deny this? I don&apos;t think any of us own this hardware...)

The newest version is 2.9.9a (yes, even newer than 2.9.10)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gekylafas@gmail.com</who>
            <bug_when>2005-01-18 00:12:07 0000</bug_when>
            <thetext>Version 2.9.9a may be newer than 2.9.10, but this is not how portage
sees it:

# emerge -pv slmodem

These are the packages that I would merge, in order:

Calculating dependencies  ...done!
[ebuild     U ] net-dialup/slmodem-2.9.10-r1 [2.9.9a] -alsa -usb 0 kB

This is solved only if I add:
&quot;&gt;=net-dialup/slmodem-2.9.10&quot; to /etc/portage/package.mask, and &quot;net-dialup/slmodem ~x86&quot; to /etc/portage/package.keywords.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-18 06:00:22 0000</bug_when>
            <thetext>2.9.10 will be removed soon due to licensing issues</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>46885</attachid>
            <date>2004-12-25 15:56 0000</date>
            <desc>slmodem-2.9.10-fix-for-2.6.10.patch</desc>
            <filename>slmodem-2.9.10-fix-for-2.6.10.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">RnJvbSBMaW51eCAyLjYuMTAgb253YXJkcywgcGNpX3JlZ2lzdGVyX2RyaXZlciByZXR1cm5zIDAg
b24gc3VjY2VzcyBhbmQgbmVnYXRpdmUgb24gZmFpbHVyZQoKLSBEYW5pZWwgRHJha2UgPGRzZEBn
ZW50b28ub3JnPgoKLS0tIHNsbW9kZW0tMi45LjEwL2RyaXZlcnMvYW1ybW9faW5pdC5jLm9yaWcJ
MjAwNC0xMi0yNSAyMzo1Mzo1MS4zNDUyNTg4NDggKzAwMDAKKysrIHNsbW9kZW0tMi45LjEwL2Ry
aXZlcnMvYW1ybW9faW5pdC5jCTIwMDQtMTItMjUgMjM6NTQ6MzMuNTI4ODQ1OTY4ICswMDAwCkBA
IC03NDAsNyArNzQwLDcgQEAKIAl9CiAjZW5kaWYKIAotCWlmICghcGNpX3JlZ2lzdGVyX2RyaXZl
cigmYW1ybW9fcGNpX2RyaXZlcikpIHsKKwlpZiAocGNpX3JlZ2lzdGVyX2RyaXZlcigmYW1ybW9f
cGNpX2RyaXZlcikgPCAwKSB7CiAJCXBjaV91bnJlZ2lzdGVyX2RyaXZlcigmYW1ybW9fcGNpX2Ry
aXZlcik7CiAjaWZuZGVmIE9MRF9LRVJORUwKIAkJY2xhc3Nfc2ltcGxlX2Rlc3Ryb3koYW1ybW9f
Y2xhc3MpOwo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>47478</attachid>
            <date>2005-01-03 06:22 0000</date>
            <desc>slmodem license</desc>
            <filename>license</filename>
            <type>text/plain</type>
            <data encoding="base64">ICogICBDb3B5cmlnaHQgKGMpIDIwMDIsIFNtYXJ0IExpbmsgTHRkLgogKiAgIEFsbCByaWdodHMg
cmVzZXJ2ZWQuCiAqCiAqICAgUmVkaXN0cmlidXRpb24gYW5kIHVzZSBpbiBzb3VyY2UgYW5kIGJp
bmFyeSBmb3Jt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gSVMiIEFORCBBTlkgRVhQUkVTUyBPUiBJTVBMSUVE
IFdBUlJBTlRJRVMsIElOQ0xVRElORywgQlVUIE5PVAogKiAgIExJTUlURUQgVE8sIFRIRSBJTVBM
SUVEIFdBUlJBTlRJRVMgT0YgTUVSQ0hBTlRBQklMSVRZIEFORCBGSVRORVNTIEZPUgogKiAgIEEg
UEFSVElDVUxBUiBQVVJQT1NFIEFSRSBESVNDTEFJTUVELiBJTiBOTyBFVkVOVCBTSEFMTCBUSEUg
Q09QWVJJR0hUCiAqICAgT1dORVIgT1IgQ09OVFJJQlVUT1JTIEJFIExJQUJMRSBGT1IgQU5ZIERJ
UkVDVCwgSU5ESVJFQ1QsIElOQ0lERU5UQUwsCiAqICAgU1BFQ0lBTCwgRVhFTVBMQVJZLCBPUiBD
T05TRVFVRU5USUFMIERBTUFHRVMgKElOQ0xVRElORywgQlVUIE5PVAogKiAgIExJTUlURUQgVE8s
IFBST0NVUkVNRU5UIE9GIFNVQlNUSVRVVEUgR09PRFMgT1IgU0VSVklDRVM7IExPU1MgT0YgVVNF
LAogKiAgIERBVEEsIE9SIFBST0ZJVFM7IE9SIEJVU0lORVNTIElOVEVSUlVQVElPTikgSE9XRVZF
UiBDQVVTRUQgQU5EIE9OIEFOWQogKiAgIFRIRU9SWSBPRiBMSUFCSUxJVFksIFdIRVRIRVIgSU4g
Q09OVFJBQ1QsIFNUUklDVCBMSUFCSUxJVFksIE9SIFRPUlQKICogICAoSU5DTFVESU5HIE5FR0xJ
R0VOQ0UgT1IgT1RIRVJXSVNFKSBBUklTSU5HIElOIEFOWSBXQVkgT1VUIE9GIFRIRSBVU0UKICog
ICBPRiBUSElTIFNPRlRXQVJFLCBFVkVOIElGIEFEVklTRUQgT0YgVEhFIFBPU1NJQklMSVRZIE9G
IFNVQ0ggREFNQUdFLgoK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47481</attachid>
            <date>2005-01-03 07:28 0000</date>
            <desc>slmodem-2.9.10-pci-workaround.patch</desc>
            <filename>slmodem-2.9.10-pci-workaround.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">Z2V0X2RldmljZSwgcHV0X2RldmljZSBhbmQgZGV2aWNlX3JlbGVhc2VfZHJpdmVyIGFyZSBubyBs
b25nZXIgYXZhaWxhYmxlIHRvIG5vbi1HUEwgbW9kdWxlcy4KVGhlIHdob2xlIHByb2Nlc3Mgb2Yg
dW5yZWdpc3RlcmluZyB0aGUgZGV2aWNlIGZyb20gYW5vdGhlciBkcml2ZXIgc2VlbXMgZG9kZ3ks
IGxldHMganVzdCBza2lwIGl0CgotLS0gc2xtb2RlbS0yLjkuMTAvZHJpdmVycy9hbXJtb19pbml0
LmMub3JpZwkyMDA1LTAxLTAzIDE0OjUyOjIzLjE3ODI4NzkxMiArMDAwMAorKysgc2xtb2RlbS0y
LjkuMTAvZHJpdmVycy9hbXJtb19pbml0LmMJMjAwNS0wMS0wMyAxNTowNjo0Ni42MDMwMjc0MDAg
KzAwMDAKQEAgLTcxOCwxNSArNzE4LDggQEAKIAkJCQlkZXYtPmRyaXZlci0+cmVtb3ZlKGRldik7
CiAJCQlkZXYtPmRyaXZlciA9IE5VTEw7CiAjZWxzZQotCQkJc3RydWN0IGRldmljZSAqcmVsZGV2
ID0gZ2V0X2RldmljZSgmZGV2LT5kZXYpOwotCQkJQU1STU9fREJHKCJkZXZpY2UgJTA0eDolMDR4
IGlzIGdyYWJiZWQgYnkgZHJpdmVyICVzOiB0cnkgdG8gcmVsZWFzZVxuIiwKLQkJCQkgIGRldi0+
dmVuZG9yLGRldi0+ZGV2aWNlLAotCQkJCSAgKHJlbGRldiYmcmVsZGV2LT5kcml2ZXIpPwotCQkJ
CSAgIHJlbGRldi0+ZHJpdmVyLT5uYW1lOiJ1bmtub3duIik7Ci0JCQlpZiAocmVsZGV2KSB7Ci0J
CQkJZGV2aWNlX3JlbGVhc2VfZHJpdmVyKHJlbGRldik7Ci0JCQkJcHV0X2Rld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