How far I got (so far)

1 view
Skip to first unread message

Pascal Belloncle

unread,
Jul 16, 2007, 1:05:43 AM7/16/07
to joyent-con...@googlegroups.com
I started playing with the Joyent Connector almost as soon as it got released and it took a bit to get going.  Hopefully, with the now available instructions, it should not be as difficult.

So anyway, here's what I have got to work so far:

I've been using postfix+dovecot (for imap) with virtual users (in mysql) Running on gentoo.  (No spam filter yet, but I'm using gmail first).  On top of that, I got the connector installed with MySQL and running with mongrel (in dev mode on Mac OS X) and planning to deploy on gentoo when I get everything wrinkle free.
Email reception works fine directly off the same file structure dovecot is using, and I'm using gmail to send emails (can't use my installation of postfix yet as my isp, in their infinite wisdom is blocking port 25 and I have not setup ssl yet).
Most features of the connector appear to be working fine as well once I created an organization.

Feels like there is lots more to explore but I'm almost at a point where I can start using it :D

What's your experience?

Cheers,
Pascal.
--
http://blog.nanorails.com

Mark James Adams

unread,
Jul 16, 2007, 2:21:19 AM7/16/07
to Joyent Connector Development
On Jul 16, 2:05 pm, "Pascal Belloncle" <p...@nanorails.com> wrote:

> What's your experience?

I am getting hung up on the build instructions. The develepment
bootstrap rake tasks fails since there is no recurrence_descriptions
relation.

Following the alternate method for creating the fixtures, I'm running
into errors applying the patch (I know it would be simple enough to
just copy/paste the code, but if I want to contribute to the project I
know I'll have to figure out how to use patch file).

There must be something wrong with the way that I am copying the patch
file out of the wiki into a new file. I've tried it in two different
browser, two different text editors, and two different operating
systems.

In all cases I am clicking on the wiki edit button and copying out the
diff file (everything between {{{}}}). On OS X, I copy the diff file
into a new file in TextMate and save it as bootstrap.patch. From the
the connector directory, I then run

$ patch -p 0 <bootstrap.patch
patching file lib/tasks/joyent.rake
Hunk #1 succeeded at 10 with fuzz 1.
patch: **** malformed patch at line 30:

So the first difference is being applied but not the second.

On an Accelerator, I paste the diff file into a new file in vim via
Terminal. I still get an error, but it is different

$ patch -p 0 < bootstrap.patch
Looks like a unified context diff.
I can't seem to find a patch in there anywhere.

Any ideas? Is there some weird whitespace/line ending thing I am
running into?

Thanks.

- Mark

--
Mark James Adams

Pascal Belloncle

unread,
Jul 16, 2007, 2:42:47 AM7/16/07
to joyent-con...@googlegroups.com
Mark,

the command you use looks right.  Maybe the patch gets munged by the wiki.  I'll try to apply it like you did on a clean source and see what I get.
On 7/15/07, Mark James Adams <mark.jam...@gmail.com> wrote:

On Jul 16, 2:05 pm, "Pascal Belloncle" < p...@nanorails.com> wrote:

> What's your experience?

I am getting hung up on the build instructions. The develepment
bootstrap rake tasks fails since there is no recurrence_descriptions
relation.

Following the alternate method for creating the fixtures, I'm running
into errors applying the patch (I know it would be simple enough to
just copy/paste the code, but if I want to contribute to the project I
know I'll have to figure out how to use patch file).

There must be something wrong with the way that I am copying the patch
file out of the wiki into a new file. I've tried it in two different
browser, two different text editors, and two different operating
systems.

In all cases I am clicking on the wiki edit button and copying out the
diff file (everything between {{{}}}). On OS X, I copy the diff file
into a new file in TextMate and save it as bootstrap.patch . From the

Pascal Belloncle

unread,
Jul 16, 2007, 3:29:54 AM7/16/07
to joyent-con...@googlegroups.com
Mea Culpa.  Never tweak a patch by hand.  I removed 2 commented lines so it would look better but did not updated the line count... :(  Sorry for the trouble.

I've updated the instructions with the correct patch (or use the attached patch).  Let me know if that one works for you.

To get the patch, you indeed need to copy what's in between the {{{ and }}} otherwise you may end up with extra spaces and the patch will fail.  Maybe filing as ticket would be preferable.


Cheers,
Pascal.
--
http://blog.nanorails.com

patch3

Mark James Adams

unread,
Jul 16, 2007, 3:49:42 AM7/16/07
to Joyent Connector Development
On Jul 16, 4:29 pm, "Pascal Belloncle" <p...@nanorails.com> wrote:
> Mea Culpa. Never tweak a patch by hand. I removed 2 commented lines so it
> would look better but did not updated the line count... :( Sorry for the
> trouble.

Your patch file worked. Thank you.

- Mark

Reply all
Reply to author
Forward
0 new messages