Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442908 - app-emulation/free42 should (optionally) build/install decimal version
Summary: app-emulation/free42 should (optionally) build/install decimal version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chema Alonso Josa (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-11-12 19:02 UTC by James Cloos
Modified: 2012-11-13 22:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Cloos 2012-11-12 19:02:50 UTC
Free42 supports both binary and decimal floats.

The ebuild builds and installs the (default) binary version.

I should build and install the decimal version.

Free42 emulates a handheld calculator; those all use decimal.

Binary’s only advantage is speed, but that is irrelevant for this application.  At least on any hardware on which Gentoo runs.

The fix is easy.  Add BCD_MATH=1 to the emake and change to dobin from gtk/free42bin to gtk/free42dec:

--- a/free42/free42-1.4.75.ebuild	2012-11-11 14:31:40.000000000 -0500
+++ b/free42/free42-1.4.75.ebuild	2012-11-12 14:00:31.995940676 -0500
@@ -41 +41 @@
-	emake -j1 CXX="$(tc-getCXX)" ${myconf} -C "${S}/gtk"
+	emake -j1 CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C "${S}/gtk"
@@ -46 +46 @@
-	dobin gtk/free42bin
+	dobin gtk/free42dec
Comment 1 Chema Alonso Josa (RETIRED) gentoo-dev 2012-11-13 22:25:22 UTC
Thanks for reporting and providing patch. =app-emulation/free42-1.4.75 now builds and installs the decimal version.

+  13 Nov 2012; Chema Alonso <nimiux@gentoo.org> free42-1.4.75.ebuild:
+  Fix bug #442908. Thanks to James Cloos for reporting and providing patch.
+