FreshPorts -- math/ndiff: Compare files, ignoring numeric differences


As an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details
ndiff Compare files, ignoring numeric differences
2.00_5 math =0 2.00_5Version of this port present on the latest quarterly branch.
Maintainer: pizzamig@FreeBSD.org
Port Added: 2004-02-18 23:38:02
Last Update: 2024-03-10 08:59:05
Commit Hash: bf8a003
License: GPLv2
WWW:
https://www.math.utah.edu/~beebe/software/ndiff/
Description:
ndiff is a utility for comparing putatively similar files, ignoring small numeric differences. The utility is written by Nelson H. F. Beebe and covered by the GNU General Public License (GPL), version 2. It may be built with arbitrary precision support (more powerful) or using built-in floating point precision, see Makefile. Assessing the consistency of a numerical program run in multiple environments (operating systems, architectures, or compilers) can be a difficult task for a human, as small differences in numerical output values are expected. File differencing utilites, such as diff(1), will generally produce voluminous output, often longer than the original files. ndiff solves this problem. Taking two text files expected to be identical, or at least numerically similar, it allows to specify absolute and/or relative error tolerances for differences between numerical values in the two files, and then reports only the lines with values exceeding those tolerances. It also tells by how much they differ. A simple example: % ndiff --relative-error 1.0e-3 test019.txt.1 test019.txt.2 ### Maximum relative error in matching lines = 8.64e-51 at line 129 field 4
     ¦ ¦ ¦ ¦

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (6 items)
Collapse this list.
  1. bin/ndiff
  2. share/man/man1/ndiff.1.gz
  3. share/ndiff/ndiff.awk
  4. /usr/local/share/licenses/ndiff-2.00_5/catalog.mk
  5. /usr/local/share/licenses/ndiff-2.00_5/LICENSE
  6. /usr/local/share/licenses/ndiff-2.00_5/GPLv2
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ndiff>0:math/ndiff
To install the port:
cd /usr/ports/math/ndiff/ && make install clean
To add the package, run one of these commands:
  • pkg install math/ndiff
  • pkg install ndiff
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: ndiff
Flavors: there is no flavor information for this port.
distinfo:
SHA256 (ndiff-2.00.tar.gz) = f2bbd9a2c8ada7f4161b5e76ac5ebf9a2862cab099933167fe604b88f000ec2c SIZE (ndiff-2.00.tar.gz) = 230850

Packages (timestamps in pop-ups are UTC):
ndiff
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.00_52.00_52.00_42.00_52.00_5n/an/an/a
FreeBSD:13:quarterly2.00_52.00_52.00_42.00_52.00_5n/an/an/a
FreeBSD:14:latest2.00_52.00_52.00_42.00_52.00_52.00_4-2.00_4
FreeBSD:14:quarterly2.00_52.00_5-2.00_52.00_52.00_42.00_42.00_4
FreeBSD:15:latest2.00_52.00_5n/a2.00_5n/an/a2.00_42.00_4
FreeBSD:15:quarterly2.00_52.00_5n/a-n/an/a--
FreeBSD:16:latest2.00_52.00_5n/a-n/an/a--
This port has no dependencies.
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for ndiff-2.00_5: DOCS=on: Build and/or install documentation GMP=off: GMP (multiple precision arithmetic) support ===> Use 'make config' to modify these settings
Options name:
math_ndiff
USES:
desthack
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. ftp://ftp.math.utah.edu/pub/misc/
Collapse this list.

Number of commits found: 26

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.00_5
10 Mar 2024 08:59:05
 
Gleb Popov (arrowd) 
*: Move manpages to share/man

Approved by:	portmgr (blanket)
2.00_4
31 Dec 2023 00:37:05
 
Muhammad Moinur Rahman (bofh) 
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree

- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
07 Sep 2022 21:58:51
 
Stefan Eßer (se) 
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2.00_4
07 Sep 2022 21:10:59
 
Stefan Eßer (se) 
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
2.00_4
20 Jul 2022 14:22:24
 
Tobias C. Berner (tcberner) 
math: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Aaron Dalton <aaron@daltons.ca>
  *  Alessando Sagratini <ale_sagra@hotmail.com>
  *  Alex Dupre <ale@FreeBSD.org>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Amarendra Godbole <amarendra.godbole@gmail.com>
  *  Anders Nordby <anders@FreeBSD.org>
  *  Andreas Fehlner (fehlner@gmx.de)
  *  Andrew L. Neporada <andrew@chg.ru>
  *  Andrey <gugu@zoo.rambler.ru>
  *  Andrey Zakhvatov
(Only the first 15 lines of the commit message are shown above )
2.00_4
06 Apr 2021 14:31:07
 
Mathieu Arnold (mat) 
Remove # $FreeBSD$ from Makefiles.
2.00_4
29 Aug 2017 13:05:21
 
pizzamig 
Change MAINTAINER email to my new FreeBSD email

Approved by:	lme (mentor)
Approved by:	olivier (mentor)
Differential Revision:	https://reviews.freebsd.org/D12150
2.00_4
01 Apr 2016 14:16:20
 
mat 
Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.

With hat:	portmgr
Sponsored by:	Absolight
2.00_4
20 Dec 2014 19:15:32
 
bapt 
cleanup plist
2.00_4
07 Feb 2014 14:58:07
 
nemysis 
- Fix typo

Reported by:	maintainer
2.00_4
03 Feb 2014 11:09:44
 
nemysis 
- Remove PKGNAMEPREFIX
- Change comment
- Pass maintainership to submitter
- Add license (GPLv2)
- Support STAGEDIR
- Simplify Option handling, change GMP Option
- Add USES desthack, change REINPLACE and patch-Makefile.in
- Use PLIST_FILES and PLIST_DIRS instead of pkg-plist
- Change DOCS and add DOCS Option

PR:		ports/186243
Submitted by:	Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
2.00_4
20 Sep 2013 20:55:06
 
bapt 
Add NO_STAGE all over the place in preparation for the staging support (cat:
math)
2.00_4
08 Jan 2012 07:01:25
 
eadler 
Repeated words are are hard to to find sometimes.

Approved by:    portmgr (itetcu)
2.00_4
23 Sep 2011 22:26:39
 
amdmi3 
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:             157936
Submitted by:   myself
Exp-runs by:    pav
Approved by:    pav
2.00_4
20 Mar 2011 12:54:45
 
miwi 
- Get Rid MD5 support
2.00_4
19 Apr 2010 10:43:43
 
ale 
Switch to use newer GMP version.

PR:             ports/144487
Submitted by:   ale
Approved by:    portmgr (-exp run by erwin)
2.00_3
21 Dec 2009 02:19:12
 
dougb 
For ports maintained by ports@FreeBSD.org, remove names and/or
e-mail addresses from the pkg-descr file that could reasonably
be mistaken for maintainer contact information in order to avoid
confusion on the part of users looking for support. As a pleasant
side effect this also avoids confusion and/or frustration for people
who are no longer maintaining those ports.
2.00_3
13 May 2009 09:46:02
 
ale 
Chase libgmp and bump PORTREVISION.
2.00_2
05 Jan 2009 21:05:49
 
pav 
- Remove conditional checks for FreeBSD 5.x and older
2.00_2
10 May 2006 22:37:39
 
edwin 
Remove USE_REINPLACE from ports starting with M
2.00_2
10 May 2006 14:46:48
 
ale 
Chase gmp library and bump PORTREVISION.
2.00_1
25 Nov 2005 15:48:16
 
pav 
- Add SHA256
2.00_1
16 Dec 2004 07:08:25
 
glewis 
. Respect hier(7).
. Use a better ALL_TARGET.  Having check as part of it tried to install
  some files.  Use check-runs to achieve the desired testing without
  doing any installation.
. ${INSTALL_MAN} -> ${INSTALL_DATA} for doc installation (they aren't
  manual pages).
2.00_1
24 Nov 2004 21:40:41
 
kris 
Add missing directory

XXX This port doesn't seem to conform to hier(7)
2.00_1
02 Jun 2004 17:18:39
 
netchild 
Deal with the libgmp dependency properly:
- Don't depend on math/libgmp-freebsd on FreeBSD <= 500023, use the base
  libgmp instead. On FreeBSD > 500023 depend on math/libgmp4, as
  math/libgmp-freebsd doesn't build on all architectures.
- Don't add PREFIX/include and PREFIX/lib to the search paths by default,
  so on FreeBSD 4 the base libgmp is used. This protects from using one of
  the libgmp ports if installed without registering a dependency on it.
- Keep from auto-detecting libgmp when WITHOUT_GMP is defined by specifying
  the arithmetic to use.
  Note: When using auto-detection and libgmp can't be found ndiff normally
  would check for extended precision arithmetic first and succeed with it.
  But using extended precision arithmetic causes the test suite to fail
  (i.e. lots of differences) on all architectures expect sparc64. Therefore
  specify double precision arithmetic for all other architectures when built
  with WITHOUT_GMP.

Submitted by:   marius
2.00
18 Feb 2004 22:02:39
 
glewis 
Add a port of ndiff:

ndiff is a utility for comparing putatively similar files, ignoring small
numeric differences.  The utility is written by Nelson H.  F. Beebe and
covered by the GNU General Public License (GPL), version 2.  It may be
built with arbitrary precision support (more powerful) or using built-in
floating point precision, see Makefile.

Assessing the consistency of a numerical program run in multiple
environments (operating systems, architectures, or compilers) can be a
difficult task for a human, as small differences in numerical output values
are expected.  File differencing utilites, such as diff(1), will generally
produce voluminous output, often longer than the original files.

ndiff solves this problem. Taking two two text files expected to be
(Only the first 15 lines of the commit message are shown above )

Number of commits found: 26

archive