# Previous version works as expected $ bc --mathlib bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 1 / 2 .50000000000000000000 scale 20 s(1) .84147098480789650665 # Newest one doesn't load mathlib. $ bc --mathlib bc 1.06.94 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 1 / 2 0 scale 0 s(1) Runtime error (func=(main), adr=3): Function s not defined.
The following change to the ebuild fixes it, but it isn't very nice: --- /usr/portage/sys-devel/bc/bc-1.06.94.ebuild 2006-06-11 16:07:20.000000000 +0200 +++ /usr/local/portage/sys-devel/bc/bc-1.06.94.ebuild 2006-06-13 14:04:30.000000000 +0200 @@ -30,6 +30,7 @@ fi use static && append-ldflags -static econf ${myconf} || die + touch bc/libmath.b emake || die } The problem is that libmath.h (in the bc folder) isn't built because its timestamp is newer than the one of libmath.b and libmath.h is a useless file. $ ls -l libmath.* -rw-r--r-- 1 robin robin 7110 2006-06-09 19:09 libmath.b -rw-r--r-- 1 robin robin 4 2006-06-09 19:25 libmath.h $ cat libmath.h {0}
I'm not sure how that version of libmath.h got into the source tarball --- it should either be the fully built libmath.h or _no_ libmath.h, not that stub version used in bootstrapping. In the short term, yes that ugly touch command, or even a "rm -f bc/libmath.h" should serve as a work-around. For the real fix, I'll make sure that 1.06.95 gets packaged correctly. Thanks for pointing this out.
*** Bug 136847 has been marked as a duplicate of this bug. ***
Any idea when 1.06.95 will be available in the portage tree? Or what about a fixed 1.06.94-r1? Most people won't notice this bug, but still I consider it quite severe when basic tools like bc suddenly behave wrong. Yeah, it's ~x86, but still...
Good question... and as fate would have it I was finally getting back to working on the .95 release. I hope to have it out within the week.
nothing is stopping you from downgrading
I did not even upgrade yet :) I was just wondering, no offense intended.
things get upgraded when i get time 1.06.95 now in portage