usr.bin/bc: remove OpenBSD derived bc and dc commandsIn 2020, an improved implementation of the bc and dc commandsdeveloped by Gavin D. Howard has been imported into FreeBSD.It has replaced the O
usr.bin/bc: remove OpenBSD derived bc and dc commandsIn 2020, an improved implementation of the bc and dc commandsdeveloped by Gavin D. Howard has been imported into FreeBSD.It has replaced the OpenBSD-derived versions of these commandsin all currently supported FreeBSD releases.The OpenBSD versions could still be built using the WITHOUT_GH_BCoption. There have been no reports of problems or unexpecteddeviations from the OpenBSD version for some time, thereforekeeping the OpenBSD version is no longer required in FreeBSD.This commit removes the option to build the OpenBSD version andcorresponding source files from -CURRENT. No MFC is planned, allcurrently released FreeBSD versions should retain the build option.The WITHOUT_GH_BC option is no longer accepted and will causemake buildworld to fail.Reviewed by: des, emasteApproved by: desRelnotes: yesDifferential Revision: https://reviews.freebsd.org/D46876
show more ...
Update Makefile.depend filesAfter building packages we have a number of newand updated Makefile.depend filesReviewed by: stevek
Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
Drop "All rights reserved" from the files I ownAlso, add SPDX tags where needed.MFC after: 2 weeks
dc(1): fix modulo operations with fractional inputsOur dc(1) has never correctly calculated remainders with fractional inputs.Both bmod and bdivmod seem to have copy/pasted code from bdiv, which r
dc(1): fix modulo operations with fractional inputsOur dc(1) has never correctly calculated remainders with fractional inputs.Both bmod and bdivmod seem to have copy/pasted code from bdiv, which resultsin the remainder having the wrong output scale.PR: 162495Reported by: anonymousReviewed by: pfgDifferential Revision: https://reviews.freebsd.org/D13390
dc(1): fix input of non-decimal fractional numbersInputting fractional non-decimal numbers has never worked correctly in ourOpenBSD-derived dc(1). It truncates the input to a number of decimal pla
dc(1): fix input of non-decimal fractional numbersInputting fractional non-decimal numbers has never worked correctly in ourOpenBSD-derived dc(1). It truncates the input to a number of decimal placesequal to the number of hexadecimal (or whatever base) places given on theinput. That's unacceptable, because many numbers require more precision torepresent in base 10 than in their original bases.Fix this bug by using as many decimal places as needed to represent theinput, up to the maximum of the global scale factor.This has one mildly surprising side effect: the scale of a number entered innon-decimal mode will no longer necessarily equal the number of hexadecimal(or whatever base) places given on the input. I think that's an acceptablebehavior change, given that inputting fractional non-decimal numbers neverworked in the first place, and the man page doesn't specify whether trailingzeros on the input should affect a number's scale.PR: 206230Reported by: nibbana@gmx.usReviewed by: pfgDifferential Revision: https://reviews.freebsd.org/D13336