https://bugs.openldap.org/show_bug.cgi?id=10582
--- Comment #4 from Peter Dyballa Peter_Dyballa@Web.DE --- (In reply to Howard Chu from comment #3)
This ticket looks invalid to me. In particular, on MacOSX the manpage states:
No. You are citing a man page from "macOS". Try /usr/bin/sw_vers. It will report something like:
ProductName: macOS ProductVersion: 14.8.9 BuildVersion: 23J631
On my ancient PowerBook it reports:
ProductName: Mac OS X ProductVersion: 10.5.8 BuildVersion: 9L31a
And the manual page has (only):
-r, --reference=FILE display the last modification time of FILE
Anyway, for "MacPorts internal use" the 'all' script can be patched that 'date -j' becomes 'gdate -j'. If the 'coreutils' are not installed and so gdate does not exist, the value of $? will be not equal to 0 and therefore DATEOPT will become "-d @", which will work on Mac OS X.
A test to "check for BSD vs GNU date" is not sufficient in the case of ancient Mac OS X, because it was going a third way…