Author Topic: Configuring Lirc-modules For Ever! (ipkg-issue)  (Read 4014 times)

encelo

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://encelo.netsons.org
Configuring Lirc-modules For Ever! (ipkg-issue)
« on: July 26, 2005, 05:33:28 pm »
After having installed lirc-modules I've noticed that every time I install a package with ipkg, lirc-modules will be configured again!


Example:
Code: [Select]
root@neutrino:/home/encelo# ipkg install findutils_4.1.20-r1_arm.ipk
Installing findutils (4.1.20-r1) to root...
Configuring findutils
Configuring lirc-modules
mknod: `/dev/lirc': File exists
postinst script returned status 1
ERROR: lirc-modules.postinst returned 1
Encelo's Blog
[img]http://www.ohloh.net/accounts/8939/widgets/account_detailed.gif\" border=\"0\" class=\"linked-sig-image\" /]
"All problems in computer graphics can be solved with a matrix inversion." —James Blinn

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #1 on: July 27, 2005, 06:42:57 am »
This happens because the postinst script returned 1 (failed). It will try to run the script after every install until it returns 0 (success).

Take a look at the script and see why it failed (looks like it'd trying to mknod, but it already exists) - I'd remove the node and let it recreate it itself, then it should work ok. You could also edit the status file and set it to installed.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

encelo

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://encelo.netsons.org
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #2 on: July 27, 2005, 09:37:39 am »
Quote
Take a look at the script and see why it failed (looks like it'd trying to mknod, but it already exists) - I'd remove the node and let it recreate it itself, then it should work ok. You could also edit the status file and set it to installed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89732\"][{POST_SNAPBACK}][/a][/div]
Nothing changes if I remove the node and let it recreate it, I think I'm going to edit the status file to force it as installed.
« Last Edit: July 27, 2005, 09:38:30 am by encelo »
Encelo's Blog
[img]http://www.ohloh.net/accounts/8939/widgets/account_detailed.gif\" border=\"0\" class=\"linked-sig-image\" /]
"All problems in computer graphics can be solved with a matrix inversion." —James Blinn

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #3 on: July 27, 2005, 10:05:20 am »
Something else in the script may have failed then, that might just happen to be a random bit of text which it outputs.

The other alternative is to edit the script so that it returns 0 anyway,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ajaygautam

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • http://
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #4 on: August 19, 2005, 10:48:48 am »
The same has started to bug me too. removing lirc-modules seem to solve the annoying messages. reinstall did not help either.

A better solution would be really appreciated.

Thanks

Ajay
Zaurus:[/u] SL-5500, 64-0 kernel, OZ 3.5.3-r21
Desktop:[/u] Gentoo Linux / i686 2.6.12-gentoo-r6

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #5 on: August 19, 2005, 11:51:12 am »
Quote
The other alternative is to edit the script so that it returns 0 anyway,
@lardman or any OE scripters,
There are several users having problems with this so I will paste the postinst here:
Code: [Select]
#!/bin/sh
 mknod /dev/lirc c 61 0
 if [ -n $D ]; then exit 1; fi
Please note that /dev/lirc does exist and I have installed lirc and irk succesfully on my collie but do not have a keyboard to test it.

Can they simply change the exit1 to exit 0 ? If not what? For a temporary fix I could build a new ipk with the repaired/hacked postinst.

I'm asking this because it seems to be the main problem with users getting their irk installed and working in many of the threads on this board.

I can find no bugs reported in Bugzilla from searching lirc or irk so I guess it should be reported?

Thanks,

Greg

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #6 on: August 19, 2005, 07:02:58 pm »
FWIW, the lirc-modules postinst has been fixed in OE by someone already.
Code: [Select]
pkg_postinst() {
#!/bin/sh
set -e
if [ ! -c $D/dev/lirc ]; then mknod $D/dev/lirc c 61 0; fi
exit 0
Webmaster of hentges.net & Embedded Linux Developer.

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #7 on: August 19, 2005, 07:12:17 pm »
Thanks for checking... and showing *how* it was fixed

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Configuring Lirc-modules For Ever! (ipkg-issue)
« Reply #8 on: August 19, 2005, 07:42:16 pm »
Quote
Thanks for checking... and showing *how* it was fixed
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92568\"][{POST_SNAPBACK}][/a][/div]

You're welcome  
Webmaster of hentges.net & Embedded Linux Developer.