Longterm Targets of Ports Collection

Also known as sneaking changes.

SHA256 checksum in distinfo

Number of MD5 entries: 23755

Number of SHA256 entries: 23684

That gives us: 0.3% left to fix

find /usr/ports/ -name distinfo*|xargs grep ^MD5|wc -l
find /usr/ports/ -name distinfo*|xargs grep ^SHA256|wc -l

Converting @exec install-info to INFO

Number of ports using INFO: 394

Number of ports with @exec install-info in their pkg-plist: 5

That gives us: 1.3% is rotten

find /usr/ports/ -name Makefile|xargs grep ^INFO=|wc -l
find /usr/ports/ -name pkg-plist|xargs grep -l exec.install-info|wc -l

Better use of RC_SUBR infrastructure

Number of ports with USE_RC_SUBR: 697

Number of ports with USE_RC_SUBR=yes instead of USE_RC_SUBR=filename.sh: 49

Number of ports that install rc script manually (bad use of RC_SUBR and non-RCng scripts): 216

Number of ports that install any rc script: 818

That gives us: 26.4% rotten, and 6.0% using RC_SUBR but not to it's full potential

find /usr/ports/ -name Makefile|xargs grep ^USE_RC_SUBR|wc -l
find /usr/ports/ -name Makefile|xargs grep ^USE_RC_SUBR|grep -i yes$|wc -l
find /usr/ports/ -name pkg-plist|xargs grep -l etc/rc.d/|wc -l
(find /usr/ports/ -name pkg-plist|xargs grep -l etc/rc.d/|awk -F '/' '{print $5}';find /usr/ports/ -name Makefile|xargs grep ^USE_RC_SUBR|awk -F '/' '{print $5}')|sort|uniq|wc -l

Not using :: in patchfile name

Number of patch files with : in the name: 2495

Total number of patch files: 23731

That gives us: 10.5% is rotten

find /usr/ports/ -name 'patch*:*'|wc -l
find /usr/ports/ -name 'patch*'|wc -l

BROKEN quoted

Number of BROKEN strings with quotes: 72

Total number of BROKEN strings: 755

That gives us: 9.5% is rotten

find /usr/ports/ -name Makefile|xargs grep ^BROKEN=|grep '"'|wc -l
find /usr/ports/ -name Makefile|xargs grep ^BROKEN=|wc -l

unexec rmdir

Number of @unexec rmdir lines in plists: 102

Number of @dirrmtrys in plists: 27991

That gives us: 0.4% is rotten

find /usr/ports/ -name pkg-plist*|xargs grep 'unexec.rmdir %D'|wc -l
find /usr/ports/ -name pkg-plist*|xargs grep dirrmtry|wc -l

CPAN ports that use ../../authors as SUBDIR

Number of ports that use MASTER_SITE_SUBDIR=../../authors: 315

Total number of CPAN ports: 3225

That gives us: 9.8% is rotten

find /usr/ports/ -name Makefile|xargs grep ^MASTER_SITE_SUBDIR|grep \.\./*authors|wc -l
find /usr/ports/ -name Makefile|xargs grep ^MASTER_SITE.*CPAN|wc -l

Ports which remove nls/en_US.US-ASCII or nls/POSIX

Total: 0

find /usr/ports/ -name pkg-plist | xargs grep nls/en_US.US-ASCII | wc -l

Ports which don't use USE_DOS2UNIX

See ports/87234

15 ports have :cntrl: in the Makefile:

34 ports have ^M's in the Makefile

141 patch-files have ^M's in them:

nox-- added EXTRACT_BEFORE_ARGS+= -aq because of the ^Ms in projectx

QT/QMAKE settings

Ports which set QMAKESPEC: 42 Ports which set QMAKESPEC: 92

find /usr/ports/ -name Makefile | xargs grep -l QMAKESPEC | wc -l
find /usr/ports/ -name Makefile | xargs grep -l QTDIR | wc -l

PortsLongtermTargets (last edited 2009-01-05 16:35:21 by PavLucistnik)