Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 71022
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Dialup Developers <net-dialup@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stefan Briesenick <sbriesen@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
capi4k-utils-20041006-r2.tar.bz2 capi4k-utils-20041006-r2.tar.bz2 application/octet-stream Stefan Briesenick 2004-11-12 16:29 0000 3.48 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 71022 depends on: Show dependency tree
Bug 71022 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-11-12 16:25 0000
Ok, as promised, part one of my ISDN works.

I cleaned up net-dialup/capi4k-utils-20041006-r1

- stripped down patch-files, so version bumping is easier
- using SuSE 9.2 src.rpm for AVM firmware files, since SuSE seems to be the most reliable source for it. SuSE is AVMs only official supported distribution, so latest fixes are first available on/for SuSE.
- all files are now in ${FILESDIR}/${PV} for easier version bumping
- compile/install only PPP-Plugins for version 2.4.1 and 2.4.2, since this are the only versions in portage
- install /usr/bin/isdncause
- wrote and install /etc/xinetd.d/rcapid
- new /etc/init.d/capi init-script (looks better, works better)
- install 'makedev.sh' into $DOCDIR for reference
- wrote and install quick HOWTO
- some minor cosmetics ;-)


Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Stefan Briesenick 2004-11-12 16:29:31 0000 -------
Created an attachment (id=43835) [details]
capi4k-utils-20041006-r2.tar.bz2

all files together in one tar:

capi4k-utils-20041006-r2.ebuild
files/
files/20041006/
files/20041006/capi4k-utils.patch
files/20041006/capi.init
files/20041006/config
files/20041006/rcapid.xinetd
files/20041006/README.gentoo
files/digest-capi4k-utils-20041006-r2

------- Comment #2 From Stefan Schweizer 2004-11-12 22:34:45 0000 -------
RDEPEND means Runtime DEPEND
whereas DEPEND is Buildtime DEPEND.

Otherwise your ebuild looks good, nice work :)

------- Comment #3 From Alin Năstac 2004-11-13 02:37:48 0000 -------
the way I see it, RDEPEND is indeed empty.

I've made several changes to the posted ebuild:
  - put PPPVERSIONS=2.4.2 since it is the latest stable version and it does not have another unstable version greater than that
  - let make install its dev nodes
  - put message in dies 

good work, Stefan! are you interested in becoming gentoo dev? 'cause we need new guys :)
see http://www.gentoo.org/proj/en/devrel/staffing-needs/index.xml for more info.

------- Comment #4 From Alin Năstac 2004-11-13 03:40:44 0000 -------
reopened 'cause not all users like the idea of downloading huge files with no
relevance to them
need to make a separate ebuild for firmware files. suggestions about name?

------- Comment #5 From Daniel Drake 2004-11-13 03:46:03 0000 -------
Alin, hover your mouse over Stefans name and observe his new email address ;)

------- Comment #6 From Alin Năstac 2004-11-13 04:04:05 0000 -------
daniel: no change yet :|

Stefan, I thought we should name the ISDN firmware ebuild as suse-isdn-firmware-2004.9.27 in which we copy the entire firm directory in /usr/share/isdn. 
What do you think? 

------- Comment #7 From Torsten Veller 2004-11-13 04:24:11 0000 -------
Where does the firmware come from? What is with the stuff in in-berlin (linked
in the old ebuilds <ftp://ftp.in-berlin.de/pub/capi4linux/firmware>)?
Or the stuff on avm's server, e.g.
<ftp://ftp.avm.de/cardware/b1/linux/suse.81/>?

Can you try to make the firmware available without leeching the whole
isdn4k-utils sources from suse?

------- Comment #8 From Stefan Briesenick 2004-11-13 04:27:28 0000 -------
Hi! ;-)

short of time right now.

An USE-flag would be perfect. Maybe with an extra ISDN_FIRMWARE variable in make.conf. If this variable is empty, and "firmware" is set, then we install all firmware files, otherwise only the specified. USE-flags for every card are stupid. But a Use-Flag "firmware" would be nice. Should be easy to do.

Alin? Do you want to implement it or should I do it? But I can't do it *now*, because I have to go to a party right now. ;-) Later folks!

------- Comment #9 From Stefan Briesenick 2004-11-13 04:30:07 0000 -------
the firmware files come from AVM. But SuSE is german, AVM is german. So SuSE is
AVMs only official supported distributiuon and they work closely together. They
always say on their FTP: "already built-in in latest SuSE releases". So the
only reliable source for all the AVM stuff is the SuSE FTP.

------- Comment #10 From Stefan Briesenick 2004-11-13 04:31:22 0000 -------
ok, what about a:

  net-dialup/capi4k-firmware

ebuild. So we could remove that stuff here?

------- Comment #11 From Alin Năstac 2004-11-13 04:40:24 0000 -------
tove: didn't found anywhere that firmware.tar.bz2. maybe you are luckiest than
me...

I've already submitted a modified -r2 in which suse rpm is no longer in
SRC_URI.

we can't add firmware USE because SRC_URI cannot depend on flags, so everyone
will download the rpm in question whether they have +firmware or not. the only
thing we can do is to create a separate ebuild.

ok, we could name capi4k-firmware, but what version do we put? with
suse-isdn-firmware, version is not our problem ;)

------- Comment #12 From Stefan Briesenick 2004-11-13 05:01:34 0000 -------
rpm -qlp <i4l...>.rpm

firmware.tar.bz2 is part of that RPM.

Ok, bye, later folks. Seperate ebuild is the best solution! But we really need the firmware files somehow in an ebuild.

------- Comment #13 From Daniel Drake 2004-11-13 05:02:54 0000 -------
Oops. i was referring to  Stefan Schweizer (new dev) and not Stefan Briesenick
. sorry for the confusion, i should not post to bugzilla so early in the
morning :P

------- Comment #14 From Stefan Briesenick 2004-11-13 05:04:43 0000 -------
oh, one last hint:

don't add all firmware files of firmware.tar.bz2. Most/some of them are part of isdn4k-utils and installed with this ebuild.

------- Comment #15 From Torsten Veller 2004-11-13 05:10:57 0000 -------
looking at /etc/capi.conf i'd expect the following filenames:
b1.t4, c4.bin, c2.bin, t1.t4

And these files can be fetched from ftp://ftp.in-berlin.de/pub/capi4linux/firmware
ftp://ftp.in-berlin.de/pub/capi4linux/firmware/b1/3-11-03/b1.t4
ftp://ftp.in-berlin.de/pub/capi4linux/firmware/c2/3-11-04/c2.bin
ftp://ftp.in-berlin.de/pub/capi4linux/firmware/c4/3-11-04/c4.bin
ftp://ftp.in-berlin.de/pub/capi4linux/firmware/t1/3-09-07/t1.t4

But i don't have an active card and don't know much about these firmwares. If questions are open wouldn't it be best to get information from avm? Aren't there other active capi cards that needs some firmware? Will Gentoo redistribute all firmware for all cards (or only avm cards)?

------- Comment #16 From Alin Năstac 2004-11-13 06:28:34 0000 -------
I've found the best source for firmware package. see
http://rpmfind.net//linux/RPM/suse/9.1/i386/suse/i586/i4lfirm-2004.4.5-0.i586.html
for more info.

capi4k-firmware-2004.4.5.ebuild submitted to tree.

stefan: the simple fact that some firmware files are also found in isdn4k-utils
should not constitute a problem. if they have same name it must contain the
same info, right?

------- Comment #17 From Stefan Briesenick 2004-11-13 14:15:17 0000 -------
ok, back

1. same name, same content. But either we have a single firmware ebuild for all firmwares or we have to split. Dupes are a very bad idea!

2. rpmfind found the ordinary SuSE-package. The best source for it is NOT rpmfind, but the official SuSE FTP server. ;-)

3. AVM don't offer these firmware files on their FTP. It's included in some of their tar.gz for older SuSEs. For 8.1 and above, they say, that "all you need" is included on the SuSE CDs. So believe me, SuSE is the very best source top pickup the firmware files. There's the i4l_firm-xxxxx.rpm packages. We can use them. I used the src.rpm which may be not a good idea because of the size.

------- Comment #18 From Stefan Briesenick 2004-11-13 14:17:49 0000 -------
btw: another source could be the debian mirrors.

But SuSE is really source #1.

------- Comment #19 From Alin Năstac 2004-11-13 16:43:18 0000 -------
So you aren't happy with the rpm found by me at
ftp://ftp.suse.com/pub/suse/i386/9.1/suse/i586/ ? It seems the most up2date and
it does not contain additional garbage!

Yes, dupes are not preferred, but in case the duplicate are the same I think we
could turn the eyes to the other way. It is bad for maintenance to be selective
about files you want to install from an archive.
Besides, I am waiting your promised contribution to isdn4k-utils ;)

------- Comment #20 From Stefan Briesenick 2004-11-13 18:01:59 0000 -------
1. the current capi4k-firmware ebuild is ok for the time being ;)

2. I was too busy today, but tomorrow (this is today, but later after sleep), I will continue my work on isdn4k-utils. But this is a little bit more work than capi4k. But I promised it, I do it. And it will be smart as capi4k! ;-)

3. next topic on the horizon: passive cards + capi. On one hand, we need *working* ebuilds for the AVM Fritz! card series (closed source drivers but with G3 fax support), on the other hand there's mISDN.

------- Comment #21 From Torsten Veller 2004-11-15 07:57:33 0000 -------
* please remove the generated device again (see old ebuilds)

  dodir /dev /usr/share/isdn
  emake DESTDIR=${D} install || die "make install failed"
+ rm -rf ${D}/dev


* files/20041006/config

- CONFIG_MANDIR='/usr/man'
+ CONFIG_MANDIR='/usr/share/man'

------- Comment #22 From Alin Năstac 2004-11-15 08:18:25 0000 -------
reopen at tove's request

------- Comment #23 From Alin Năstac 2004-11-15 08:57:19 0000 -------
no harm done if we create a device (/dev/capi20) which will be overwritten by
udev/devfs, but if udev fails to create it, our users will bless us, especially
when they have RC_DEVICE_TARBALL=yes. motion denied ;)

I've corrected the man path. not issued a new release because the result isn't
in fact any different as precedent (/usr/man is a symlink to /usr/share/man).

------- Comment #24 From Stefan Schweizer 2004-11-15 09:02:19 0000 -------
But we should not add the dev if the user uses udev, because we shoudl not
overwrite the udev device:

if [ -e ${ROOT}/dev/.udev ]
then
   rm ${D}/dev -R
fi

And we should not have the /dev in qpkg -l for udev users.

------- Comment #25 From Alin Năstac 2004-11-15 09:15:21 0000 -------
First, the device doesn't get into qpkg -l, probably because packages cannot
have devices.
Second, if the udev creates its capi20 device, it will overwrite the device
installed by ebuild; udev create devices when the module is loaded.
This is the safe way.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug