yajl-ruby icon indicating copy to clipboard operation
yajl-ruby copied to clipboard

Prefer system yajl.

Open voxik opened this issue 12 years ago • 13 comments

We put heads together with @strzibny and made a few changes necessary to link against system yajl if available (#111). If system yajl is not available, it fall back to bundled yajl. This is made against your 2.0 branch, as we are at yajl 2.0 in Fedora already. Please accept. Thank you.

voxik avatar Jan 23 '13 15:01 voxik

+1. @brianmario any feedback on this? We're blocked on importing Chef into Fedora on account of this -- would be great if you could review and merge/give feedback!

juliandunn avatar Feb 11 '13 00:02 juliandunn

yajl-ruby uses a patched version of yajl (1.0) for performance and to achieve some of the features I wanted in yajl-ruby. I do have a branch (which is still in process) to switch to yajl 2.0 in an attempt to be able to use the system installed version of yajl. I think even yajl 2.0 is missing a feature that I need for yajl-ruby so I may have to patch and bundle it even still.

I haven't had a lot of time lately to continue work on that branch, but I would love to at least get it to a point where I can decide what to do regarding using a system installed version or a patched bundled version.

Is this a blocker for Chef because of the potential conflict with symbol loading if the Ruby process loads a library that is depending on the system installed yajl 2.0 as well as loading yajl-ruby?

Sorry it took so long to reply...

brianmario avatar Feb 11 '13 00:02 brianmario

@brianmario It's a blocker for Chef in Fedora because Fedora's policy is to not permit vendoring of libraries. They prefer to have any necessary patches upstreamed. That's for the benefit of the overall community, so I think it's actually a good thing.

Since I'm not actually intimately familiar with the changes you need, maybe @voxik and @strzibny could work with you to get a patch suitable for submitting to the YAJL people to be included into 2.x? They have been helping immensely with the Chef packaging effort.

juliandunn avatar Feb 11 '13 00:02 juliandunn

Yeah the yajl project has been incredibly helpful in the past. I'll see what I can do about taking another crack at that branch soon and opening a pull request so we can get some dialog going about what direction to take it.

brianmario avatar Feb 11 '13 01:02 brianmario

According to @strzibny, there is only one difference against upstream yajl:

https://github.com/brianmario/yajl-ruby/issues/111#issuecomment-12542826

voxik avatar Feb 11 '13 07:02 voxik

@brianmario Any new progress on this?

strzibny avatar Mar 27 '13 10:03 strzibny

Ping ... any chance we could proceed with this? We'd love to Chef in Fedora and this unfortunately blocks us :/

voxik avatar Jul 18 '13 07:07 voxik

Ping ... this is blocker for me as well. Please consider this PR.

xsuchy avatar Jul 29 '13 12:07 xsuchy

This blocks Gitorious in Fedora as well. (yajl-ruby -> pygments.rb -> makeup -> libdolt -> Gitorious)

ktdreyer avatar Nov 02 '13 06:11 ktdreyer

@brianmario Any progress on this? Similar issues are #100 and #64

Would be great to have the ability to specify a system version for yajl. (Ideally bundle newest version though.)

bryanyork avatar Dec 16 '13 18:12 bryanyork

@brianmario, would you mind merging this so we can build against the system yajl? It will make it a lot easier to ship this package in Fedora.

ktdreyer avatar Feb 15 '14 20:02 ktdreyer

+1

someara avatar Feb 23 '14 20:02 someara

Any progress here?

xsuchy avatar Jan 19 '15 07:01 xsuchy