Bug 227663 - [NEW PORT] devel/cligen - CLIgen is a Command-Line Interface generator
Summary: [NEW PORT] devel/cligen - CLIgen is a Command-Line Interface generator
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kirill Ponomarev
URL:
Keywords:
Depends on:
Blocks: 227681
  Show dependency treegraph
 
Reported: 2018-04-21 00:19 UTC by Dave Cornejo
Modified: 2018-04-24 14:50 UTC (History)
2 users (show)

See Also:


Attachments
cligen.shar (2.55 KB, text/plain)
2018-04-21 00:19 UTC, Dave Cornejo
no flags Details
updated shar file (2.64 KB, text/plain)
2018-04-22 05:09 UTC, Dave Cornejo
no flags Details
updated shar (2.67 KB, text/plain)
2018-04-23 18:05 UTC, Dave Cornejo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cornejo 2018-04-21 00:19:23 UTC
Created attachment 192691 [details]
cligen.shar
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2018-04-21 15:04:45 UTC
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....
Comment 2 Dave Cornejo 2018-04-22 05:09:40 UTC
Created attachment 192711 [details]
updated shar file

fix per comments.
Comment 3 Kirill Ponomarev freebsd_committer freebsd_triage 2018-04-22 17:18:42 UTC
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
Comment 4 Dave Cornejo 2018-04-23 18:05:02 UTC
Created attachment 192760 [details]
updated shar

this was validated on a local poudriere
Comment 5 Kirill Ponomarev freebsd_committer freebsd_triage 2018-04-23 18:19:28 UTC
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
Comment 6 Renato Botelho freebsd_committer freebsd_triage 2018-04-24 10:43:44 UTC
(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
Comment 7 Kirill Ponomarev freebsd_committer freebsd_triage 2018-04-24 14:44:41 UTC
Oh, sorry I forgot to add it into Makefile, my fault. I will commit it.
Comment 8 commit-hook freebsd_committer freebsd_triage 2018-04-24 14:50:37 UTC
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