[ragel-users] Re: Packaging ragel for Fedora Extras

Gilles J. Seguin s... at infonet.ca
Thu Mar 29 11:19:22 UTC 2007

On Thu, 2007-03-29 at 02:08 -0400, Gilles J. Seguin wrote:
> On Fri, 2007-03-23 at 18:26 -0600, Jeremy Hinegardner wrote:
> > Hi all,
> > 
> > I'm packaging up ragel for inclusion in Fedora Extras
> thanks a lot
> > and I came across a parallel make dependency bug.  It seems
> > the dependency graph as it
> > currently stands can start building some of the command line
> > applications before the common and redfsm libraries are complete. The
> > attached patch should fix it.  
> interesting, problem was not showing up here, from log
> + make -j2
> make[1]: Entering directory `/h1/rpmbuild/BUILD/ragel-5.19/ragel'

this build is put on hold because prerequisite is not meet,
that is common.a

> make[1]: Entering directory `/h1/rpmbuild/BUILD/ragel-5.19/common'
> ar -cr common.a common.o

now prerequisite is done
starting parallel build

that is, if common and redfsm are the directory in subdir macro
the parallel build start sooner

> make[1]: Leaving directory `/h1/rpmbuild/BUILD/ragel-5.19/common'
> make[1]: Entering directory `/h1/rpmbuild/BUILD/ragel-5.19/redfsm'
> ar -cr redfsm.a redfsm.o gendata.o xmltags.o xmlscan.o xmlparse.o 
> make[1]: Leaving directory `/h1/rpmbuild/BUILD/ragel-5.19/redfsm'
> make[1]: Entering directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-cd'
> g++  -o ragel main.o parsetree.o parsedata.o fsmstate.o fsmbase.o
> fsmattach.o fsmmin.o fsmgraph.o fsmap.o xmlcodegen.o rlscan.o
> rlparse.o ../common/common.a
> make[1]: Leaving directory `/h1/rpmbuild/BUILD/ragel-5.19/ragel'
> make[1]: Entering directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-java'
> make[1]: Leaving directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-java'
> make[1]: Entering directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-ruby'
> g++  -o rlgen-ruby main.o
> rubycodegen.o ../common/common.a ../redfsm/redfsm.a 
> make[1]: Leaving directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-ruby'
> make[1]: Entering directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-dot'
> g++  -o rlgen-dot main.o
> gvdotgen.o ../common/common.a ../redfsm/redfsm.a
> make[1]: Leaving directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-dot'
> g++  -o rlgen-cd main.o fsmcodegen.o tabcodegen.o ftabcodegen.o
> flatcodegen.o fflatcodegen.o gotocodegen.o fgotocodegen.o
> ipgotocodegen.o splitcodegen.o ../common/common.a ../redfsm/redfsm.a
> make[1]: Leaving directory `/h1/rpmbuild/BUILD/ragel-5.19/rlgen-cd'
> > I've also made a patch for the ragel(1) man page. It was referencing
> > rlcodegen(1) which doesn't appear to exist anymore, and didn't mention
> > ragel created ruby code.  It is also attached.
> > 
> > I personally haven't used ragel for any of my projects, just seen it via
> > other projects and noticed it hadn't been built for Fedora yet, so i
> > thought I would do that.
> a spec file was on previous release, should have release my spec earlier
> but my spec file was not able to produce the debuginfo rpm package
> though everything else was working fine
> i got
> + /usr/lib/rpm/find-debuginfo.sh /h1/rpmbuild/BUILD/ragel-5.19
> finish stripping
> 0 blocks

i am in shock, option -s for install utility.
I have wasted lot of time.

> that last line means that the cpio utility has empty source from the
> stripping.
> And more crazy if i run the script manually, it work !!

do you have a patch to allow short-circuit for rpm install :-)
sure it was working, I was by passing the install -s
doing it manually

More information about the ragel-users mailing list