Hasanat Kazmi
2009-May-18 12:05 UTC
Possibility to porting Rsync to NT and other platforms
Hello, I am looking into possibilities of porting RSync for windows. Does anybody have an idea that which libraries and dependencies RSync uses which can not be compiled on windows (so thats why we use cygwin) Regards Hasanat Kazmi -- Hasanatkazmi@gmail.com "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi +923464362473 -------------- next part -------------- HTML attachment scrubbed and removed
i'm using cwRsync on win32 and rsync on linux, did you give a try to cwrsync ? Cheers, CyD On Mon, May 18, 2009 at 2:00 PM, Hasanat Kazmi <hasanatkazmi@gmail.com>wrote:> Hello, > I am looking into possibilities of porting RSync for windows. Does anybody > have an idea that which libraries and dependencies RSync uses which can not > be compiled on windows (so thats why we use cygwin) > > Regards > Hasanat Kazmi > -- > Hasanatkazmi@gmail.com > "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi > +923464362473 > > -- > Please use reply-all for most replies to avoid omitting the mailing list. > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >-------------- next part -------------- HTML attachment scrubbed and removed
Did you try compiling your java code to native machine code, with gcj http://gcc.gnu.org/java/ ? Le 19 mai 09 ? 05:26, Hasanat Kazmi a ?crit :> I want to embed it into a program. So putting in these two will > create licensing issues for me. Any guide of those specif portions > of code where it makes system calls? I have ported rsync to java (I > used same rolling algorithm but used other hashing) but it isn't > fast enough, seems I have to make a native binary version. > > On Tue, May 19, 2009 at 12:58 AM, Mac User FR <macuserfr@free.fr> > wrote: > I'm not on the code of rsync, but it is heavily coded using Unix > system calls. Porting to NT would say to start another program from > the scratch, taking the only the delta algorithm and rsync protocol > compatibility. Good luck with it! > > But, as Cyril says, why would you invest yourself on such a project > and not only use rsync over cygwin? I use it and with cygwin 1.7 > there is no filename length limitation. It works fine. > > Best regards, > > Vitorio > > Le 18 mai 09 ? 19:39, Hasanat Kazmi a ?crit : > >> But cwRsync is basically rsync and cygwin packed into one. Its not >> native to NT. >> I am interested to make a native version for NT, a developer who >> knows about dependencies of rsync can help me. >> Do you have any idea about rsync development or do you know anyone >> who knows these informations? >> >> On Mon, May 18, 2009 at 9:54 PM, Cyril <cyril.drx@gmail.com> wrote: >> i'm using cwRsync on win32 and rsync on linux, did you give a try >> to cwrsync ? >> >> Cheers, >> CyD >> >> On Mon, May 18, 2009 at 2:00 PM, Hasanat Kazmi <hasanatkazmi@gmail.com >> > wrote: >> Hello, >> I am looking into possibilities of porting RSync for windows. Does >> anybody have an idea that which libraries and dependencies RSync >> uses which can not be compiled on windows (so thats why we use >> cygwin) >> >> Regards >> Hasanat Kazmi >> -- >> Hasanatkazmi@gmail.com >> "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi >> +923464362473 >> >> -- >> Please use reply-all for most replies to avoid omitting the mailing >> list. >> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync >> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >> >> >> >> >> -- >> Hasanatkazmi@gmail.com >> "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi >> +923464362473 >> -- >> Please use reply-all for most replies to avoid omitting the mailing >> list. >> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync >> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > > > > > -- > Hasanatkazmi@gmail.com > "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi > +923464362473-------------- next part -------------- HTML attachment scrubbed and removed
Well, in this case it seems clear to me that you will have to rewrite rsync entirely, keeping the delta algorithm and network protocol... Such a huge work! Good luck. Le 19 mai 09 ? 17:30, Hasanat Kazmi a ?crit :> I didn't but even if I do, I wont be able to use some of the native > functions of respective OS (which I will have to use to decorate the > software - outside the domain of Rsync) e.g. I will use windows > forms, not if I compile java to binary, ill lose windows forms thing > > On Tue, May 19, 2009 at 5:42 PM, Mac User FR <macuserfr@free.fr> > wrote: > Did you try compiling your java code to native machine code, with > gcj http://gcc.gnu.org/java/ ? > > Le 19 mai 09 ? 05:26, Hasanat Kazmi a ?crit : > >> I want to embed it into a program. So putting in these two will >> create licensing issues for me. Any guide of those specif portions >> of code where it makes system calls? I have ported rsync to java (I >> used same rolling algorithm but used other hashing) but it isn't >> fast enough, seems I have to make a native binary version. >> >> On Tue, May 19, 2009 at 12:58 AM, Mac User FR <macuserfr@free.fr> >> wrote: >> I'm not on the code of rsync, but it is heavily coded using Unix >> system calls. Porting to NT would say to start another program from >> the scratch, taking the only the delta algorithm and rsync protocol >> compatibility. Good luck with it! >> >> But, as Cyril says, why would you invest yourself on such a project >> and not only use rsync over cygwin? I use it and with cygwin 1.7 >> there is no filename length limitation. It works fine. >> >> Best regards, >> >> Vitorio >> >> Le 18 mai 09 ? 19:39, Hasanat Kazmi a ?crit : >> >>> But cwRsync is basically rsync and cygwin packed into one. Its not >>> native to NT. >>> I am interested to make a native version for NT, a developer who >>> knows about dependencies of rsync can help me. >>> Do you have any idea about rsync development or do you know anyone >>> who knows these informations? >>> >>> On Mon, May 18, 2009 at 9:54 PM, Cyril <cyril.drx@gmail.com> wrote: >>> i'm using cwRsync on win32 and rsync on linux, did you give a try >>> to cwrsync ? >>> >>> Cheers, >>> CyD >>> >>> On Mon, May 18, 2009 at 2:00 PM, Hasanat Kazmi <hasanatkazmi@gmail.com >>> > wrote: >>> Hello, >>> I am looking into possibilities of porting RSync for windows. Does >>> anybody have an idea that which libraries and dependencies RSync >>> uses which can not be compiled on windows (so thats why we use >>> cygwin) >>> >>> Regards >>> Hasanat Kazmi >>> -- >>> Hasanatkazmi@gmail.com >>> "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi >>> +923464362473 >>> >>> -- >>> Please use reply-all for most replies to avoid omitting the >>> mailing list. >>> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync >>> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >>> >>> >>> >>> >>> -- >>> Hasanatkazmi@gmail.com >>> "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi >>> +923464362473 >>> -- >>> Please use reply-all for most replies to avoid omitting the >>> mailing list. >>> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync >>> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >> >> >> >> >> -- >> Hasanatkazmi@gmail.com >> "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi >> +923464362473 > > > > > -- > Hasanatkazmi@gmail.com > "I hate Capitalism,so naturally I love Open Source" -- Hasanat Kazmi > +923464362473-------------- next part -------------- HTML attachment scrubbed and removed
John E. Malmberg
2009-Jun-11 00:49 UTC
Possibility to porting Rsync to NT and other platforms
Hasanat Kazmi wrote:> Hello, > I am looking into possibilities of porting RSync for windows. Does anybody > have an idea that which libraries and dependencies RSync uses which can not > be compiled on windows (so thats why we use cygwin)I have not looked at this in a few years, but the issues is more that rsync initializes some data structures and then forks off processes. But it is doable. I make an experimental proof of concept port where I converted it to use posix threads instead of forked processes. With the code base that I worked on, the main thing was identifying which of the common or static variables are modified by more than one thread. The experimental version was working well enough that I could keep a local copy of the rsync source code in sync on my system with it. I had set up a system to use editor macros to re-apply my changes to the lastest source, but had to move on to other things before I completed the port. I currently use the experimental port binary several times a week for keeping my system up to date with blead-perl source. Good Luck, -John wb8tyw@qsl.net Personal Opinion Only