diff options
author | mat <mat@FreeBSD.org> | 2015-08-17 22:20:40 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-08-17 22:20:40 +0800 |
commit | 92a3a7b1bca5423036bca4932e5384d3e51591bd (patch) | |
tree | 16be3a9188cf2781563095e15839c170074dd7a7 /Tools | |
parent | ed2992b93f898f5612b3952782ac7d9206ed029a (diff) | |
download | freebsd-ports-gnome-92a3a7b1bca5423036bca4932e5384d3e51591bd.tar.gz freebsd-ports-gnome-92a3a7b1bca5423036bca4932e5384d3e51591bd.tar.zst freebsd-ports-gnome-92a3a7b1bca5423036bca4932e5384d3e51591bd.zip |
Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.
Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.
Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)
Reviewed by: antoine, bapt
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3336
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/scripts/README | 2 | ||||
-rw-r--r-- | Tools/scripts/check-latest-link | 80 |
2 files changed, 0 insertions, 82 deletions
diff --git a/Tools/scripts/README b/Tools/scripts/README index 458328bc4f0e..a93227f826cd 100644 --- a/Tools/scripts/README +++ b/Tools/scripts/README @@ -12,8 +12,6 @@ bad-pkgdescrs.sh - locate identical pkg descriptions bump_revision.pl - Small script to bump the PORTREVISION variable of ports which are depending on a port with a changed shared lib version. -check-latest-link - search for duplicate LATEST_LINK values and send nag - mails to the responsible maintainers checkcats.py - verify that master categories in all ports are correct and report any problems. Beware that the full check takes quite some time. diff --git a/Tools/scripts/check-latest-link b/Tools/scripts/check-latest-link deleted file mode 100644 index 97e1f0167052..000000000000 --- a/Tools/scripts/check-latest-link +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/sh -# -# Iterate over the ports collection, assemble the list of LATEST_LINKs and -# then look for duplicates. Send a nag-mail to the responsible maintainers. - -# Sanitize environment -export __MAKE_CONF=/dev/null -export PORT_DBDIR=/nonexistent -export PKG_DBDIR=/nonexistent -export LOCALBASE=/nonexistent - -if [ -z "${PORTSDIR}" ]; then - PORTSDIR=/usr/ports -fi - -if [ "$1" = "-nomail" ]; then - NOMAIL=1 -else - NOMAIL=0 -fi - -cd ${PORTSDIR} -CATEGORIES=$(make -V SUBDIR) - -for cat in ${CATEGORIES}; do - cd ${PORTSDIR}/${cat} - dirs=$(make -V SUBDIR) - - make "PORTSDIR=${PORTSDIR}" "CATEGORY=${cat}" "DIRS=${dirs}" -k -j3 -f - << "EOF" -all: ${DIRS:S/$/.portinfo/} - -.for d in ${DIRS} -${d}.portinfo: - @cd ${PORTSDIR}/${CATEGORY}/${d}; make 'portinfo=$${NO_LATEST_LINK}| $${MAINTAINER} $${.CURDIR:S,${PORTSDIR}/,,} $${LATEST_LINK}' -V portinfo -.endfor -EOF -done | grep '^|' > ${PORTSDIR}/.latest_link - -cd ${PORTSDIR} -(awk '{print " " $4 "$"}' < .latest_link) | sort | uniq -d > .latest_dups - -grep -f .latest_dups .latest_link | sort -i -k4 > .latest_full - -maint=$(awk '{print $2}' < .latest_full | sort -ui | tr '\n' ' ') - -(echo "Dear port maintainers," - echo - echo "The following list includes ports maintained by you that have duplicate" - echo "LATEST_LINK values. They should either be modified to use a unique" - echo "PKGNAME, e.g. by using PKGNAMESUFFIX. Note that NO_LATEST_LINK is" - echo "deprecated. See the portmgr blog post for more information:" - echo "http://blogs.freebsdish.org/portmgr/2013/10/03/package-name-collisions/" - echo - echo - echo "Thanks," - echo "Erwin \"Annoying Reminder Guy III\" Lansing" - echo - echo - - printf "%-20s %-30s %-20s\n" "LATEST_LINK" "PORTNAME" "MAINTAINER" - echo "==========================================================================" - while read dummy i j k; do - printf "%-20s %-30s %-20s\n" $k $j $i - done < .latest_full - - num=$(wc -l .latest_full | awk '{print $1}') - echo - echo "Total: $num ports") > .latest_mail - -if [ "${NOMAIL}" = "0" ]; then - for i in ${maint}; do - mail -s "Ports with duplicate LATEST_LINKs" $i < .latest_mail - done - # Copy to erwin@ - mail -s "Ports with duplicate LATEST_LINKs" erwin@FreeBSD.org < .latest_mail -else - cat .latest_mail -fi - -rm .latest_dups .latest_full .latest_link .latest_mail |