Project

General

Profile

Bug #5111

/usr/bin/dc is missing

Added by Sacha B about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Very High
Category:
Operating System
Target version:
Start date:
09/07/2015
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.2.x
Affected Architecture:
All

Description

/usr/bin/bc is missing:

bc: cannot find dc: No such file or directory

This is required by several scripts.

History

#1 Updated by Chris Buechler about 4 years ago

  • Status changed from New to Not a Bug
  • Affected Version deleted (2.2.4)

not required by anything we ship. you can copy it over yourself if you're adding custom code that needs it.

#2 Updated by Kill Bill about 4 years ago

Well, it's unfortunately used in /usr/local/bin/ping_hosts.sh

#3 Updated by Jim Thompson about 4 years ago

  • Category set to Operating System
  • Status changed from Not a Bug to Duplicate
  • Assignee set to Renato Botelho
  • Target version set to 2.2.5
  • Affected Architecture set to All

https://github.com/pfsense/pfsense/blob/master/src/usr/local/bin/ping_hosts.sh#L113 uses /usr/bin/bc and bc is a driver for bc.

See: https://github.com/pfsense/FreeBSD-src/blob/devel/usr.bin/bc/bc.y#L1192

So Jakub / Kill Bill / Doctor Notor is correct here, and this is a bug.

No idea why I can't take this out of "Duplicate or Not a bug" status. I've moved it to "Duplicate" (even though it isn't) because it is a bug.

#4 Updated by Jim Thompson about 4 years ago

  • Affected Version set to 2.2.x

Git blame says it was Renato in Dec 2013

https://github.com/pfsense/pfsense/commit/67e861292a48f6d94f8136699f8b74f21429af32

Apparently nobody has noticed.

Just put both 'bc' and 'dc' on the build, and we'll be fine.

#6 Updated by Sacha B about 4 years ago

thanks guys for being so reactive.

#7 Updated by Sacha B about 4 years ago

Chris Buechler wrote:

not required by anything we ship. you can copy it over yourself if you're adding custom code that needs it.

this is a standard shell application !

#8 Updated by Chris Buechler about 4 years ago

  • Status changed from Duplicate to Feedback

thanks Kill Bill, et. al., I missed that.

#9 Updated by Chris Buechler about 4 years ago

  • Status changed from Feedback to Resolved

fixed, thanks

Also available in: Atom PDF