OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: encelo on July 26, 2005, 05:33:28 pm

Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: encelo 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
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: lardman 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
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: encelo 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.
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: lardman 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
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: ajaygautam 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
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: Greg2 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
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: CoreDump 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
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: Greg2 on August 19, 2005, 07:12:17 pm
Thanks for checking... and showing *how* it was fixed
Title: Configuring Lirc-modules For Ever! (ipkg-issue)
Post by: CoreDump 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