From 1f458b24cd44a99799d217b3225b0755119f7b00 Mon Sep 17 00:00:00 2001 From: jmmv Date: Thu, 14 Sep 2006 15:35:46 +0000 Subject: Update to 1.4: - Sort dependencies properly so that, e.g., 2.10 is considered newer than 2.8. This is still a hack and might fail in some cases, but is hopefully much better than before. --- pkgtools/verifypc/Makefile | 4 ++-- pkgtools/verifypc/files/verifypc.sh | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'pkgtools/verifypc') diff --git a/pkgtools/verifypc/Makefile b/pkgtools/verifypc/Makefile index 7c2f543924e..56867703526 100644 --- a/pkgtools/verifypc/Makefile +++ b/pkgtools/verifypc/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.6 2006/03/19 10:49:02 wiz Exp $ +# $NetBSD: Makefile,v 1.7 2006/09/14 15:35:46 jmmv Exp $ # -DISTNAME= verifypc-1.3 +DISTNAME= verifypc-1.4 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/verifypc/files/verifypc.sh b/pkgtools/verifypc/files/verifypc.sh index b9e1ba99f99..6d2dca8c27d 100644 --- a/pkgtools/verifypc/files/verifypc.sh +++ b/pkgtools/verifypc/files/verifypc.sh @@ -1,6 +1,6 @@ #!@SH@ # -# $NetBSD: verifypc.sh,v 1.4 2005/10/09 10:30:23 jmmv Exp $ +# $NetBSD: verifypc.sh,v 1.5 2006/09/14 15:35:46 jmmv Exp $ # # verifypc - Sanity check package dependencies according to pkg-config # Copyright (c) 2005 Julio M. Merino Vidal @@ -124,7 +124,12 @@ main() { # Construct a list of dependency specifications for the current package. SORTED_DEPS=$(${MAKE} show-vars VARNAMES="BUILD_DEPENDS DEPENDS" | tr ' ' ' -' | sort -r | uniq) +' | sed 's,\([.<>=]\)\([0-9][.:n]\),\10\2,g' | \ + sed 's,\([.<>=]\)\([0-9][.:n]\),\10\2,g' | \ + sort -r | \ + sed 's,\([.<>=]\)0\([0-9][.:n]\),\1\2,g' | \ + sed 's,\([.<>=]\)0\([0-9][.:n]\),\1\2,g' | \ + uniq) error=0 lines=$(cat ${log} | sort | uniq | tr ' ' '¬') -- cgit v1.2.3