Re: [yast-devel] y2r again -- success!

Got it! I managed to convert my module to Ruby using y2r. Here’s what I did: 1) install openSUSE 13.1 from scratch (don’t forget to add C/C++ development tools) 2) install all updates and reboot (important! there’s a newer yast2-core in the “oss” repo.) 3) install some needed packages: # zypper in ruby-devel libxml2-devel libxslt-devel unsquashfs 4) extract y2r-master.zip (from https://github/yast/y2r) and run (as root): # gem install y2r (beware that it needs to download some sources from the internet) 5) extract the base installation media root image: # unsquashfs <openSUSE 13.1 DVD mount point>/boot/x86_64/root This will create a “squashfs-root” directory. It contains all possible YaST modules that may be referenced in the code. 6) run y2r: # y2r2.0 -M squashfs-root/usr/share/YaST/modules <your YCP module> And the magic happens. Now on to debug the Ruby code :) Erico M. Mendonça Dedicated Support Engineer SUSE Rua Joaquim Floriano, 466 – Ed. Corporate 12º andar, Itaim Bibi – São Paulo – SP / Brasil Tel: +55 (11) 3345-3900 Cel: + 55 (61) 8594-9557 erico.mendonca@suse.com www.suse.com Em [DATE], "[NAME]" <[ADDRESS]> escreveu:

On Thu, 28 Jan 2016 18:09:06 +0000 Erico Mendonca <Erico.Mendonca@suse.com> wrote:
Great that you succeed, just please do not forget to check if you are affected by well known bugs in y2r - https://github.com/yast/y2r/blob/master/KNOWN_BUGS.md especially escaped characters can do some mess. Usually easiest way to check it is grep ycp source for escaped characters and manually fix ruby sources. If you need any help with debugging ruby source, don't hesitate to ask here or on our IRC freenode#yast Josef
-- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Erico Mendonca
-
Josef Reidinger