Am Freitag, 9. Februar 2007 18:04 schrieb Jonas Pfenniger: > Hi, Hi zimbatm,
> attached, you'll find an ipkg for the ruby interpreter. The package is > pretty big (1.6M compressed and 7.1M uncompressed) and was only tested for > successful compilation. I guess there is still some work to do on the > targets. really looks not bad for your first attempts. And because of files are stored compressed on freewrt devices, the actual needed space will be definitly less than 7MB, but you are right, it's pretty big at the moment. > == Usage : > * Extract in package/, you should get a new ruby folder > * Edit package/Config.in to add that package You also have to add it to package/Makefile > * Select the package with `make menuconfig`. Module compilation is highly > recommended because of it's size. That depends on your needs. If you definitly need ruby on your freewrt plattform, then I would suggest not building it as module, because the compression for the overlayfs is not as good as for the rootfs, which never changes and is generated at built-time. for testing ruby the module/ipkg option is better of course. > == Package developper's comments > > This is my first package for the FreeWRT community. It took me the whole > day (like 8 hours) because I'm not really used to the gcc and auto* > toolchain. The whole process also lacks of documentation, but some nice ppl > on irc gave me the initial help that I needed to dive in (thanks n0-1 and > loswillios !). My only other package management background is gentoo's > ebuild. the ipkg stuff is quite compareable to the debian style. so if you need documentation about the control, postinst, preinst, conffiles, etc stuff. take a look at the debian developer policy and the debian tools. but not everything that in debian works also works with ipkg. it's more or less the core features that are very equal between ipkg and debian. > == Query > > Can somebody look how to make that package smaller ? I think that the .so > file can be remove but I'm not quite sure since I didn't run it on a > target. This would gain like 1.1M. I don't think it can be removed. But you can try to strip all the comments out of each plaintext files, but I don't can imagine that it really saves much though. You can, and probably should try to split the ruby package in multiple packages. I am not an ruby expert at all, but I guess not everybody needs every ruby module (class, or whatever these files/extensions are called in ruby). This saves no space for a full installation, but by splitting packages, the majority of users can save a lot of space by justing installing the really needed packages for their individual need. there are a lot of other singular source packages that result in multiple binary ipkg files, that you can use as template. Let me (or even better the developers-list) know if you need help or more infos. I would like to sponsor ruby into freewrt's trunk, when it's splitted into multiple packages and if it's tested and reported to basicly work (which I haven't tested for now). thx for your effort so far! -- Ralph _______________________________________________ freewrt-developers mailing list [email protected] https://www.freewrt.org/lists/listinfo/freewrt-developers
