Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190285 - media-tv/gentoo-vdr-scripts-0.4.0 and irtrans
Summary: media-tv/gentoo-vdr-scripts-0.4.0 and irtrans
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo VDR Project
URL: http://overlays.gentoo.org/proj/vdr
Whiteboard:
Keywords:
Depends on: 190669
Blocks:
  Show dependency tree
 
Reported: 2007-08-26 10:47 UTC by Mario Fetka (geos_one)
Modified: 2014-12-26 11:52 UTC (History)
0 users

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


Attachments
add irtrans support (gentoo-vdr-scripts-0.4.0-irtrans-1.patch,1.83 KB, patch)
2007-08-26 10:50 UTC, Mario Fetka (geos_one)
Details | Diff
depend on lirc instead of lircd (gentoo-vdr-scripts-0.4.2-depend-on-lirc-1.patch,635 bytes, text/plain)
2007-11-24 19:48 UTC, Mario Fetka (geos_one)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Fetka (geos_one) 2007-08-26 10:47:48 UTC
the gentoo vdr scripts starts the lirc init script if the confd file sets IR_CTRL to lirc

so the lircd reassigns the /dev/lircd socket to the lirc server and so overrides the already provided lircd socket from the irtrans server.

Reproducible: Always
Comment 1 Mario Fetka (geos_one) 2007-08-26 10:50:10 UTC
Created attachment 129213 [details, diff]
add irtrans support

this patch adds a new IR_CTRL named irtrans this way "when set right" the irtrans server is started to provide the lircd socket and no reasigning is done.
Comment 2 Matthias Schwarzott gentoo-dev 2007-08-26 10:56:15 UTC
Maybe it also works to add some kind of "provide lircd" to irtrans init-script
Comment 3 Mario Fetka (geos_one) 2007-08-26 11:02:07 UTC
(In reply to comment #2)
> Maybe it also works to add some kind of "provide lircd" to irtrans init-script
> 
this would be a hack as the following output shows:

media vdr # /etc/init.d/vdr restart
 * Caching service dependencies ...
 *  Cannot add provide 'lircd', as a service with the same name exists!                                                                                                                           [ ok ]
 * Stopping vdr watchdog ...                                                                                                                                                                      [ ok ]
 * Stopping vdr ...                                                                                                                                                                               [ ok ]
 * Starting lircd ...                                                                                                                                                                             [ ok ]
 * Preparing start of vdr:
 *   config files ...                                                                                                                                                                             [ ok ]
 * You have not set a charmap! (LANG in /etc/env.d/02locale or /etc/conf.d/vdr)
 * Automatically using locale en_US.utf8 to get most of vdr utf8 support.
 *   Skipped these plugins:
 *     Not Existing:      reelchannelscan wirbelscan setup
 *   Waiting for prerequisits (devices nodes etc.) ...                                                                                                                                            [ ok ]
 * Starting vdr ...                                                                                                                                                                               [ ok ]
 *   Waiting for working vdr ...                                                                                                                                                                  [ ok ]
 * Starting vdr watchdog ...                                                                                                                                                                      [ ok ]
media vdr #                       

wfg
Mario

Comment 4 Mario Fetka (geos_one) 2007-08-26 11:03:29 UTC
(In reply to comment #2)
> Maybe it also works to add some kind of "provide lircd" to irtrans init-script
> 
and as you can see it will also start the lircd (bad)
Comment 5 Matthias Schwarzott gentoo-dev 2007-08-26 21:32:07 UTC
For now we can use your version (or similar stuff).
I also had the idea: one could depend on lirc (not lircd as it is now). And add provide lirc to both: lirc-init-script and irtrans one.
Comment 6 Mario Fetka (geos_one) 2007-08-27 06:24:30 UTC
(In reply to comment #5)
> For now we can use your version (or similar stuff).
> I also had the idea: one could depend on lirc (not lircd as it is now). And add
> provide lirc to both: lirc-init-script and irtrans one.
> 
yes the second one would be the right way to do this.
but adding an virtual/lirc wouldn't that be a little extreme for that ?

wfg
Mario
Comment 7 Mario Fetka (geos_one) 2007-08-27 07:06:39 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > For now we can use your version (or similar stuff).
> > I also had the idea: one could depend on lirc (not lircd as it is now). And add
> > provide lirc to both: lirc-init-script and irtrans one.
> > 
> yes the second one would be the right way to do this.
> but adding an virtual/lirc wouldn't that be a little extreme for that ?
> 
> wfg
> Mario
> 
oh i scewed up the irtrans wont provide lirc headers so something like virtual/lirc is not needed ha.
so only the provides are requred.
Comment 8 Mario Fetka (geos_one) 2007-09-09 09:19:49 UTC
i have tested adding "provide lirc" to both init scipts it works great

media ~ # /etc/init.d/irtrans-server stop
 * Stopping IRTrans ...                                                                                                                                                  [ ok ]
media ~ # /etc/init.d/lircd stop
 * WARNING:  lircd has not yet been started.
media ~ # /etc/init.d/vdr restart
 * Stopping vdr watchdog ...                                                                                                                                             [ ok ]
 * Stopping vdr ...                                                                                                                                                      [ ok ]
 * Starting IRTrans ...
IRTRans Send Done: 1
Name   :
Version: D5.04.13
FW SNo : 14110
Capab  : Power On;
FW Cap : 3964953
USB SNo:
Node   : /dev/ttyUSB0
                                                                                                                                                                         [ ok ]
 * Preparing start of vdr:
 *   config files ...                                                                                                                                                    [ ok ]
 * You have not set a charmap! (LANG in /etc/env.d/02locale or /etc/conf.d/vdr)
 * Automatically using locale en_US.utf8 to get most of vdr utf8 support.
 *   Skipped these plugins:
 *     Not Existing:      reelchannelscan wirbelscan setup
 *   Waiting for prerequisits (devices nodes etc.) ...                                                                                                                   [ ok ]
 * Starting vdr ...                                                                                                                                                      [ ok ]
 *   Waiting for working vdr ...                                                                                                                                         [ ok ]
 * Starting vdr watchdog ...                                                                                                                                             [ ok ]
media ~ # 

so adding "provide lirc" to init.d/lircd init.d/irtrans-irserver
and changing lircd to lirc in the init.d/vdr 

will do it great
Comment 9 Mario Fetka (geos_one) 2007-11-13 22:09:05 UTC
(In reply to comment #5)
> For now we can use your version (or similar stuff).
> I also had the idea: one could depend on lirc (not lircd as it is now). And add
> provide lirc to both: lirc-init-script and irtrans one.
> 
Matthias can you plz comment on # 190669
so this bug can be solved.
Comment 10 Mario Fetka (geos_one) 2007-11-24 19:48:07 UTC
Created attachment 136914 [details]
depend on lirc instead of lircd
Comment 11 Mario Fetka (geos_one) 2009-09-07 12:16:30 UTC
any news about this modification

thx
Mario
Comment 12 Joerg Bornkessel (RETIRED) gentoo-dev 2011-01-25 00:21:43 UTC
This should be fixed on
gentoo-vdr-scripts-0.4.7

17 Nov 2009; Matthias Schwarzott <zzam@gentoo.org>                                                 
  usr/share/vdr/rcscript/pre-start-30-parameter.sh, etc/init.d/vdr:                                  
  Use new lirc socket path if it exists. Now depend on virtual service lirc 
to be able to use different lirc daemons.


Don't know, why isn't this bug closed...

Mario is the bug still present, please reopen