From owner-freebsd-ports@FreeBSD.ORG Tue May 14 07:58:10 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7BD1264A for ; Tue, 14 May 2013 07:58:10 +0000 (UTC) (envelope-from matthew@freebsd.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 1393D898 for ; Tue, 14 May 2013 07:58:09 +0000 (UTC) Received: from rufus.webfusion.com (mail.heartinternet.co.uk [79.170.40.31]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r4E7vsjl005173 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 14 May 2013 08:58:02 +0100 (BST) (envelope-from matthew@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r4E7vsjl005173 Authentication-Results: smtp.infracaninophile.co.uk/r4E7vsjl005173; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy) X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host mail.heartinternet.co.uk [79.170.40.31] claimed to be rufus.webfusion.com Message-ID: <5191EE81.7030003@freebsd.org> Date: Tue, 14 May 2013 08:57:53 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130503 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: WANTED: Tool to verify installed package/port consistancy References: <73516.1368496384@server1.tristatelogic.com> In-Reply-To: <73516.1368496384@server1.tristatelogic.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 07:58:10 -0000 On 14/05/2013 02:53, Ronald F. Guilmette wrote: > Running my revised version of the script yields this output: > > pkg_sanity: gettext-0.18.1.1: Newer than +CONTENTS file: /usr/local/lib/charset.alias > pkg_sanity: linux_base-f10-10_5: Newer than +CONTENTS file: /compat/linux/etc/ld.so.cache > pkg_sanity: linux_base-f10-10_5: Newer than +CONTENTS file: /compat/linux/var/cache/ldconfig/aux-cache > pkg_sanity: p5-XML-SAX-0.99: /usr/local/lib/perl5/site_perl/5.14.2/XML/SAX/ParserDetails.ini: File failed MD5 checksum > pkg_sanity: p5-XML-SAX-0.99: /usr/local/lib/perl5/site_perl/5.14.2/XML/SAX/ParserDetails.ini: 15bfbb02aa79670b148f21dfbac64843 versus cf8c5cb8a7b6cf7a8db7c53f1ba27148 > > (Oh! And by the way, this date/time stamp pre-check is one that "pkg_info -g" > _should_ really be doing also, but isn't. I'll be filing a PR on that.) There's not much love for the old pkg_tools scripts nowadays, given that their days are clearly numbered. However, I really like your idea of comparing the mtime of package files with the installation time of the package. I may just steal that idea for pkgng... > Hummm... Here's a hint. My current ParserDetails.ini file is shown below. > On a different FreeBSD 9.1 system that I have here, this same file is > present also, but is shorter (9 lines rather than 15) and contains only > the first two sections, rather than four, as seen here. > > ============================================================================= > [XML::SAX::PurePerl] > http://xml.org/sax/features/namespaces = 1 > > [XML::SAX::Expat] > http://xml.org/sax/features/namespaces = 1 > http://xml.org/sax/features/external-general-entities = 1 > http://xml.org/sax/features/external-parameter-entities = 1 > > [XML::LibXML::SAX::Parser] > http://xml.org/sax/features/namespaces = 1 > > [XML::LibXML::SAX] > http://xml.org/sax/features/namespaces = 1 > > > ============================================================================= Check what different SAX related perl modules you have on the two different machines -- it should correspond to the contents of that file. I believe that as you add different modules they will update ParserDetails.ini to register themselves. Which means that ParserDetails.ini should be treated like a user-modifiable configuration file and not belong to any particular package. Cheers, Matthew