Summary: | irda-utils broken | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | simon <csimonut> |
Component: | [OLD] Unspecified | Assignee: | Peter Johanson (RETIRED) <latexer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | brianr, cadik60070, rigo, st_lim |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Updated .ebuild to go with the gentoo-patch
Patch to add gentoo-specific /etc files to irda-utils /etc/init.d/irda |
Description
simon
2002-04-15 04:46:03 UTC
I've done some work on this problem, first off using the (newer) 0.9.14 source, I've updated the .ebuild file and added a patch to add the proper gentoo files (1 each in /etc/conf.d and /etc/init.d) to the source tree. I'm still wrestling my IR on my notebook, so testing will have to be tried by someone else :) (Hint: _Always_ build IrDA support as modules -- irattach has a fit if you don't) There are a few questions I had/have that perhaps someone more knowledgable can answer. First, the patch only adds 2 files. I wasn't sure if we wanted to clutter-up the portage */*/files directory with them, or version-specific patch files instead. Easy to fix either way. Second, the old .ebuild has a line in unpack() to change autoconf version information. I have removed that because it seems to compile just fine either way. If there was a reason this was done that escapes me, feel free to un-comment it in the ebuild file. (Or if you have problems compiling - I'm using 1.3a ATM) In any case, please take a good look over the changes/additions and let me know if this works for you. Created attachment 1777 [details]
Updated .ebuild to go with the gentoo-patch
Created attachment 1778 [details, diff]
Patch to add gentoo-specific /etc files to irda-utils
Created attachment 2860 [details]
/etc/init.d/irda
corrected the usage of start-stop-daemon, now the service start and stop
correctly.
Wanted to test the changes, but I can't find irda-utils-0.9.14 or something like that in portage tree or cvs. Or do I have to get the ebuild an patches from the attachements? Am I missing something? Simon Okay, guys, thanks for the updates. I have (finally) committed 0.9.15 with your changes and some others. Please try it out, and let me know how it works. *** Bug 6494 has been marked as a duplicate of this bug. *** *** Bug 8452 has been marked as a duplicate of this bug. *** Thank you, it works (for me ;o) bea portage # irdadump 19:18:51.296924 xid:cmd d26657f8 > ffffffff S=6 s=0 (14) 19:18:51.386914 xid:cmd d26657f8 > ffffffff S=6 s=1 (14) 19:18:51.476916 xid:cmd d26657f8 > ffffffff S=6 s=2 (14) 19:18:51.566913 xid:cmd d26657f8 > ffffffff S=6 s=3 (14) 19:18:51.656913 xid:cmd d26657f8 > ffffffff S=6 s=4 (14) 19:18:51.746910 xid:cmd d26657f8 > ffffffff S=6 s=5 (14) 19:18:51.836914 xid:cmd d26657f8 > ffffffff S=6 s=* bea hint=0400 [ Computer ] (19) 19:18:54.296924 xid:cmd d26657f8 > ffffffff S=6 s=0 (14) 19:18:54.386912 xid:cmd d26657f8 > ffffffff S=6 s=1 (14) 19:18:54.476914 xid:cmd d26657f8 > ffffffff S=6 s=2 (14) 19:18:54.566912 xid:cmd d26657f8 > ffffffff S=6 s=3 (14) 19:18:54.656908 xid:cmd d26657f8 > ffffffff S=6 s=4 (14) 19:18:54.749892 xid:rsp d26657f8 < 7d17c103 S=6 s=4 xxxxxxxxx xxxxxxxxx hint=8220 [ PDA/Palmtop IrOBEX ] (36) emerged irda-utils-0.9.15, set the correct device in /etc/conf.d/irda and started /etc/init.d/irda. The modules irda and irtty were loaded automatic. after loading ircomm and ircomm-tty I could sync my Sony Clie with jpilot-sync (/dev/ircomm0). I have not tried to get this working for my normal user (get Permission denied) or with FIR and so on. But it is just for my Clie and connection to Internet via cell, so speed does not matter. There are still (useless) files in /etc/sysconfig/. Thank you very much, Simon Hi, Added # irda irda irtty ircomm ircomm-tty to /etc/modules.autoload added a group irda irda::28:simon and /etc/devfs.d/irda REGISTER ^ircomm* PERMISSIONS root.irda 660 simon@bea simon $ ls -al /dev/ircomm0 crw-rw---- 1 root irda 161, 0 Dec 16 20:58 /dev/ircomm0 Don't know if that is the "correct" or best way to do that or if the gid is normally occupied by someone else. But it works for me. Simon Simon, I am guessing the /etc/sysconfig stuff is left over from a previous ebuild. It should be safe to remove it (if it all just irda stuff). The ebuild shouldn't be installing anything there now, though. Your devfs settings look like exactly the way to go. I'll see about adding them. The files in /etc/sysconfig are still being written with v0.9.15 I'm happy to test any changes - I'm running gNokii with a Nokia 6310i phone. Philip Actually, 0.9.15 does install both /etc/sysconfig and /etc/rc.d stuff, as can be gleaned from /var/db/pkg/sys-apps/irda-tools-0.9.15/CONTENTS The script install-etc installs files in /etc/sysconfig if that directory exists on the system. I put a fix in the ebuild for this, which I think closes this bug. |