Skip to content

new(github.com/lcn2/calc): calc 3.0.1.0#13506

Closed
tannevaled wants to merge 1 commit into
pkgxdev:mainfrom
tannevaled:new/calc
Closed

new(github.com/lcn2/calc): calc 3.0.1.0#13506
tannevaled wants to merge 1 commit into
pkgxdev:mainfrom
tannevaled:new/calc

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Adds calc (Landon Curt Noll) — arbitrary-precision C-style interactive calculator. C. The Makefile's install path vars are hardcoded absolutes (not derived from PREFIX), so BINDIR/LIBDIR/INCDIR/CALC_SHAREDIR/MANDIR are each set to {{prefix}}/…; readline disabled to keep deps empty. The baked CALC_SHAREDIR resolves post-install (PREFIX is the final dir); a runtime.env CALCPATH mirrors calc's defaults as belt-and-suspenders. Verified linux/arm64 from a clean dir: calc -v → 3.0.1.0, echo '2+2' | calc -p → 4, sqrt(2) loads a .cal lib.

@tannevaled

Copy link
Copy Markdown
Contributor Author

Withdrawing for now: calc's Makefile fails to build cleanly under the CI toolchain (the calc.usage target can't exec the freshly-built calc against libcalc.so mid-build, Error 127), and GNU bc already covers the basic-calculator need in the pantry. Will revisit if there's interest with a proper fix.

@tannevaled tannevaled closed this Jun 23, 2026
@tannevaled tannevaled deleted the new/calc branch June 23, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant