[katello-devel] Redcarpet and development mode

Lukas Zapletal lzap at redhat.com
Thu Dec 13 15:44:37 UTC 2012


Thanks for this!

LZ

On Thu, Dec 13, 2012 at 07:17:42AM -0500, Ivan Necas wrote:
> The switch from redcarpet to maruku is in this PR. I'm waiting for the gems to build
> in koji. I will do one final scratch build for this PR once the deps are ready,
> my local tests went fine.
> 
> https://github.com/Katello/katello/pull/1249
> 
> -- Ivan
> ----- Original Message -----
> > 
> > 
> > ----- Original Message -----
> > > 
> > > 
> > > ----- Original Message -----
> > > > On Wed, Dec 12, 2012 at 12:10:28PM -0800, Michael McCune wrote:
> > > > > On 12/12/2012 11:06 AM, Lukas Zapletal wrote:
> > > > > >Hey,
> > > > > >
> > > > > >for some reason, Redcarpet segfaults for me when I try start
> > > > > >Katello in
> > > > > >development mode. This is very limiting for me, is there a
> > > > > >workaround?
> > > > > >I think this was working, not sure what is wrong.
> > > > > >
> > > > > >Thanks
> > > > > >
> > > > > 
> > > > > I get the same on EL 6.3, haven't found a workaround yet.
> > > > 
> > > > Redcarpet is not used in production mode, so subject should be
> > > > maybe:
> > > > 
> > > > Redcarpet does not work on RHEL 6.3 at all.
> > > > 
> > > > There is a bunch of bugreports on their site, about 10 segfaults.
> > > > I
> > > > wonder if we have chosen the right dependency.
> > > > 
> > > > ps - When choosing a dependency, always select the one without
> > > > any
> > > > native code. This is an old good Java rule. No optimalization
> > > > when
> > > > we
> > > > do
> > > > not need it. Mixing interpreted and native code is challenging.
> > > 
> > > That's why I've emphased on making this dependency only development
> > > level.
> > > Switching to another library that conversts markdown to html is
> > > really easy:
> > > implementing a 10 lines class (including empty lines:) like this
> > > 
> > > https://github.com/Pajk/apipie-rails/blob/master/lib/apipie/markup.rb#L19
> > > 
> > > The reasons there is RedCarpet used as default are:
> > > 
> > > - large user base (github uses it for rendering their stuff, what
> > > else you can wish)
> > > - already packaged for Fedora
> > > - it worked :)
> > > 
> > > I will try different renderer
> > 
> > >From fast survey I've made here is the winner:
> > 
> > https://www.ruby-toolbox.com/projects/maruku
> > 
> > Features:
> > 
> > - converts markdown to html (quite expected:)
> > - pure ruby
> > - packaged for fedora
> > http://koji.fedoraproject.org/koji/packageinfo?packageID=10063
> > 
> > Expect PR and RPMs for f16 and epel in the afternoon.
> > 
> > -- Ivan
> > 
> > > 
> > > -- Ivan
> > > 
> > > > 
> > > > LZ
> > > > 
> > > > --
> > > > Later,
> > > > 
> > > >  Lukas "lzap" Zapletal
> > > >  #katello #systemengine
> > > > 
> > > > _______________________________________________
> > > > katello-devel mailing list
> > > > katello-devel at redhat.com
> > > > https://www.redhat.com/mailman/listinfo/katello-devel
> > > > 
> > > 
> > > _______________________________________________
> > > katello-devel mailing list
> > > katello-devel at redhat.com
> > > https://www.redhat.com/mailman/listinfo/katello-devel
> > > 
> > 
> > _______________________________________________
> > katello-devel mailing list
> > katello-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/katello-devel
> > 
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel

-- 
Later,

 Lukas "lzap" Zapletal
 #katello #systemengine




More information about the katello-devel mailing list