Page MenuHomeDevCentral

Provide roll on devserver role
Open, NormalPublic

Description

roll is a C software to parse dice notation grammar like 1D6 and roll a die accordingly.

WindRiver
$ ./roll 3D12
20

$ ./roll -v 3D12
d12 -> 1
d12 -> 2
d12 -> 11
14

Repository: https://github.com/matteocorti/roll
Man page: https://linux.die.net/man/1/roll

Apparently not packaged for FreeBSD, repository contains instructions for Debian and Fedora.

Event Timeline

dereckson triaged this task as Normal priority.Mon, Sep 30, 23:54
dereckson created this task.

Build instructions

$ git clone git@github.com:matteocorti/roll.git
$ cd roll
$ ./regen.sh
$ ./configure
$ make

Some clang warnings to report upstream, as the software is somewhat maintained.

dereckson moved this task from Backlog to Working on on the Servers board.
dereckson moved this task from Backlog to New port on the freebsd-port-wanted board.

Packaged. Can be published on Nasqueron repository, but I'm going to submit it upstream too.

Two dependencies was needed:

  • pkg-config (the issue above)
  • bison as the .y script isn't POSIX compatible

With those fixes, ready for submission.

upstream https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281872