[patch] reminding developers to check for duplicates in
ObsoleteFiles.inc and tools/build/mk/OptionalObsoleteFiles.inc
Anonymous
swell.k at gmail.com
Fri Nov 19 01:19:33 UTC 2010
Alexander Best <arundel at freebsd.org> writes:
> diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
> index e358ed9..106c10e 100644
> --- a/ObsoleteFiles.inc
> +++ b/ObsoleteFiles.inc
> @@ -13,6 +13,12 @@
> #
> # The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last.
> #
> +# Before you commit changes to this file please check, if any entries in
> +# tools/build/mk/OptionalObsoleteFiles.inc can be removed. The following
> +# command was proposed by Dmitry Morozovsky:
> +# ( grep '+=' /usr/src/ObsoleteFiles.inc | sort -u ; \
> +# grep '+=' /usr/src/tools/build/mk/OptionalObsoleteFiles.inc | sort -u) | \
> +# sort | uniq -d
An easier way to check duplicates that understands `.if ${TARGET_ARCH}...'
$ make -V OLD_FILES -V OLD_LIBS -V OLD_DIRS \
-f Makefile.inc1 check-old \
| sed 'y/ /\n/' | sort | uniq -d
And there are a number of false positives
usr/include/c++/3.4/ext/demangle.h
usr/include/rune.h
usr/lib/libkse.so.1
usr/lib/libpcap.so.3
usr/lib/snmp_atm.so.3
usr/lib/snmp_mibII.so.3
usr/lib/snmp_netgraph.so.3
usr/lib/snmp_pf.so.3
usr/share/man/man3/exp10.3.gz
usr/share/man/man3/exp10f.3.gz
usr/share/man/man3/fgetrune.3.gz
usr/share/man/man3/fpsetsticky.3.gz
usr/share/man/man3/fputrune.3.gz
usr/share/man/man3/fungetrune.3.gz
usr/share/man/man3/gss_krb5_compat_des3_mic.3.gz
usr/share/man/man3/gss_krb5_copy_ccache.3.gz
usr/share/man/man3/mac_is_present_np.3.gz
usr/share/man/man3/mbmb.3.gz
usr/share/man/man3/mbrrune.3.gz
usr/share/man/man3/mbrune.3.gz
usr/share/man/man3/rune.3.gz
usr/share/man/man3/setinvalidrune.3.gz
usr/share/man/man3/setrunelocale.3.gz
usr/share/man/man3/sgetrune.3.gz
usr/share/man/man3/sputrune.3.gz
More information about the freebsd-hackers
mailing list