Summary: | [NEW PORT] devel/cligen - CLIgen is a Command-Line Interface generator | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Dave Cornejo <dave+n> | ||||||||
Component: | Individual Port(s) | Assignee: | Kirill Ponomarev <krion> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Only Me | CC: | garga, krion | ||||||||
Priority: | --- | ||||||||||
Version: | Latest | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 227681 | ||||||||||
Attachments: |
|
It seems it requires bison, and poudriere fails while compiling it: cc -I. -I. -DYY_NO_INPUT -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -c lex.cligen_parse.c mv y.tab.c cligen_parse.tab.c mv: y.tab.c: No such file or directory gmake[1]: *** [Makefile:190: cligen_parse.tab.c] Error 1 gmake[1]: *** Waiting for unfinished jobs.... Created attachment 192711 [details]
updated shar file
fix per comments.
It still fails while building it in poudriere: bison -y -l -d -p cligen_parse cligen_parse.y # -t is debug date +"const char CLIGEN_BUILDSTR[64]=\"%Y.%m.%d %H:%M by `whoami` on `hostname`"\"\; >> build.c; bison -y -l -d -p cligen_parse cligen_parse.y # -t is debug echo "const char CLIGEN_VERSION[64]=\"3.7.0-PRE\""\; >> build.c; cc -I. -I. -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -c build.c cligen_parse.y: warning: 2 shift/reduce conflicts [-Wconflicts-sr] cligen_parse.y: warning: 2 shift/reduce conflicts [-Wconflicts-sr] mv y.tab.c cligen_parse.tab.c mv y.tab.c cligen_parse.tab.c mv y.tab.h cligen_parse.tab.h mv: y.tab.c: No such file or directory gmake[1]: *** [Makefile:191: cligen_parse.tab.h] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving directory Created attachment 192760 [details]
updated shar
this was validated on a local poudriere
Same error as well: mv y.tab.c cligen_parse.tab.c mv y.tab.h cligen_parse.tab.h mv y.tab.c cligen_parse.tab.c flex -Pcligen_parse cligen_parse.l # -d is debug mv: y.tab.c: No such file or directory gmake[1]: *** [Makefile:189: cligen_parse.tab.c] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving (In reply to Kirill Ponomarev from comment #5) I'm wondering what is different in your test env and on mine. I've tested it for David and after add MAKE_JOBS_UNSAFE=yes it passed on my personal poudriere without any issues Oh, sorry I forgot to add it into Makefile, my fault. I will commit it. A commit references this bug: Author: krion Date: Tue Apr 24 14:49:54 UTC 2018 New revision: 468216 URL: https://svnweb.freebsd.org/changeset/ports/468216 Log: Add devel/cligen: cligen builds and interprets datastructures (a parse-tree) which a library (libcligen) interprets in runtime. It is fast and efficient and helps you develop CLIs easier. You enter a CLI syntax either in a text file, you write callback functions where you call the right library routines. WWW: http://cligen.se/ PR: 227663 Submitted by: Dave Cornejo <dcornejo@netgate.com> Changes: head/devel/Makefile head/devel/cligen/ head/devel/cligen/Makefile head/devel/cligen/distinfo head/devel/cligen/pkg-descr head/devel/cligen/pkg-plist |
Created attachment 192691 [details] cligen.shar