summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sys-devel/bc: fix cross-compile builds #627126Mike Frysinger2018-09-171-0/+3
| | | | Fixes: https://bugs.gentoo.org/627126
* sys-devel/bc: replace ed usage with sedMike Frysinger2018-09-171-1/+1
| | | | | The ed usage here is minor and easy enough to convert to sed. This avoids a depend that no one else generally has.
* sys-devel/bc: add support for --sandbox & USE=forced-sandboxMike Frysinger2018-09-171-0/+65
The dc tool has an ! command which allows for arbitrary system() calls which is not ideal for processing arbitrary user scripts. First add support for a --sandbox flag at runtime (like sed/gawk gnu tools), then add a USE=forced-sandbox option so people can lock it down. The patches have been sent to upstream, but considering how slow the bc project tends to move, and their lack of a project site/git repo, going to merge this now and just wait for upstream feedback.