**** BEGIN LOGGING AT Mon Oct 15 03:00:02 2012 Oct 15 10:01:43 wiki will be down for one minute Oct 15 10:04:07 ok Oct 15 10:50:47 wiki back Oct 15 12:45:18 hi, folks. I'm wondering what's the best way to update packages in openwrt. I mean, it's not just enough to put them in a repository, it's necessary to deal with changes in config file... Oct 15 12:45:48 I saw that opkg saves the new config file with another filename if they differ... Oct 15 12:47:00 jwendell: it does so only if the config file differs from the (old) package provided one; if it's the same it just replaces it (afaik) Oct 15 12:47:14 yep Oct 15 12:47:34 in my case I don't want to end up with 2 config files Oct 15 12:47:41 I'd like to merge them Oct 15 12:47:47 (even if manually) Oct 15 12:48:17 I thought about using uci-defaults to set some config, but it only runs on reboot Oct 15 12:48:29 you can add a post-install hook to the package Oct 15 12:48:38 so, I'm thinking about put a lot of stuff in postinstall Oct 15 12:48:59 I'm wondering if there's something more 'elegant' :) Oct 15 12:50:43 is there any variable that expands into opkg's destdir? Oct 15 12:56:09 I mean, if in postinst script I do 'cp /etc/....' it's technically wrong, once DESTDIR can be different than / Oct 15 12:57:23 $IPKG_INSTROOT Oct 15 12:58:41 oops Oct 15 12:58:46 $PKG_ROOT is set by opkg Oct 15 12:58:53 :) Oct 15 12:59:05 thanks! Oct 15 12:59:15 anyhow, you can answer such questions yourself by reading the opkg source Oct 15 12:59:28 I too had to run grep -r setenv build_dir/linux-*/opkg-*/ Oct 15 12:59:41 so, every script in postinst hooks should use that variable, right? Oct 15 12:59:51 its futile Oct 15 13:00:06 we do not really support alternative destinations Oct 15 13:00:29 ah Oct 15 13:00:40 it cannot work if the package is not prepared for it Oct 15 13:00:50 it will still search itsl ibraries in /usr/lib Oct 15 13:00:55 still search its configs in /etc Oct 15 13:01:02 still place its pid in /var/run Oct 15 13:01:03 etc. Oct 15 13:01:10 I see Oct 15 13:01:51 opkg --dest is mainly useful for preparing stuff liek chroots Oct 15 13:02:01 or to prepare another rootfs Oct 15 13:03:43 we could drop 'dest ram /tmp' from opkg.conf then Oct 15 13:03:54 thats actually useful Oct 15 13:04:41 I commonly use opkg install -d ram install tcpdump; LD_LIBRARY_PATH=/tmp/usr/lib:/usr/lib:/lib /tmp/usr/sbin/tcpdump Oct 15 13:04:49 for units with little ram Oct 15 13:04:54 erm little flash Oct 15 14:11:11 danitool: I can't get your hg553 patch to apply, it seems to be seriously borked; can you resend it as an attachment (unzipped)? Oct 15 14:11:20 ah Oct 15 14:11:22 too slow Oct 15 15:40:32 my wgt634u build of r33760 went okay last night, so my net45xx kernel build must be something specific to it Oct 15 19:36:33 hey guys, how are your relationship to opkg team? Oct 15 19:36:56 I see there are local patches that are perfectly applicable upstream but are stick in our sources Oct 15 19:37:04 is there a reason? Oct 15 19:37:16 I mean, are they unresponsive, or dead? Oct 15 19:38:05 example: 014-errors-to-stderr.patch Oct 15 19:50:03 this patch was rejected upstream Oct 15 19:50:31 I have commit access to the upstream repo but since there was no agreement on this patch I just kept it in openwrt Oct 15 19:51:34 good Oct 15 19:52:17 jow_laptop, why upgrade was restricted to a package? Oct 15 19:52:36 (009-remove-upgrade-all.patch) Oct 15 19:52:37 because it does not work as expected on most deployments Oct 15 19:53:28 it's no the same as get the list-upgradable and call upgrade on them? Oct 15 19:53:36 it's *not* the same as get the list-upgradable and call upgrade on them? Oct 15 19:54:06 it is Oct 15 19:54:27 so, why doesn't it work as expected? Oct 15 19:54:37 because it fills up the overlay Oct 15 19:54:42 it implicitely upgrades kmods Oct 15 19:54:53 it gives users the impression that they can just dist-upgrade their firmware Oct 15 19:55:04 which fails spectaculary and results in a brick 90% of the time Oct 15 19:55:56 I see... I'm working on a jffs2-only firmware, which doesn't have this space-problem Oct 15 19:56:39 and we are going to use the repository thing to update individual packages Oct 15 19:57:09 (of course we are going to use our own repository) Oct 15 20:01:27 ok Oct 15 20:37:31 what is a good supported router these days for openwrt? Oct 15 20:45:15 several AR71xx routers (TPlink and D-link) and the Alix boards are excellent Oct 16 01:41:14 * russell-- has built for wgt634u, alix2, ar71xx, all okay, x86-generic-net45xx not okay... some kind of kernel config problem **** ENDING LOGGING AT Tue Oct 16 03:00:01 2012