From owner-freebsd-ports@FreeBSD.ORG Tue Aug 21 11:07:18 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7221F106564A; Tue, 21 Aug 2012 11:07:18 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5E4948FC0C; Tue, 21 Aug 2012 11:07:17 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA12190; Tue, 21 Aug 2012 14:07:15 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1T3mIl-000GCV-6Q; Tue, 21 Aug 2012 14:07:15 +0300 Message-ID: <50336BE1.2000204@FreeBSD.org> Date: Tue, 21 Aug 2012 14:07:13 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120728 Thunderbird/14.0 MIME-Version: 1.0 To: Chris Rees , Anton Shterenlikht References: <201208210847.q7L8likv021105@mech-cluster241.men.bris.ac.uk> In-Reply-To: X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: perl@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: pkgng, textproc/p5-XML-SAX-Expat: Syntax error: "{" unexpected (expecting "then") X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2012 11:07:18 -0000 on 21/08/2012 12:08 Chris Rees said the following: > On 21 August 2012 09:47, Anton Shterenlikht wrote: >> # cd /usr/ports/textproc/p5-XML-SAX-Expat >> # make deinstall && make reinstall >> ===> Deinstalling for textproc/p5-XML-SAX-Expat >> ===> Deinstalling p5-XML-SAX-Expat-0.40 >> The following packages will be deinstalled: >> >> p5-XML-SAX-Expat-0.40 >> >> The deinstallation will free 22 kB >> Deinstalling p5-XML-SAX-Expat-0.40...p5-XML-SAX-Expat-0.40 is required by: p5-XML-Simple-2.20 icon-naming-utils-0.8.90, deleting anyway >> Syntax error: "{" unexpected (expecting "then") >> pkg: DEINSTALL script failed >> *** [deinstall] Error code 3 >> >> Stop in /usr/ports/textproc/p5-XML-SAX-Expat. >> >> # pkg -vvv >> version: 1.0-rc6 >> abi: freebsd:10:ia64:64 >> db dir: /var/db/pkg >> cache dir: /var/cache/pkg >> ports dir: /usr/ports >> Log into syslog: yes >> Assume always yes: no >> Handle rc scripts: no >> Track shlibs: no >> Automatic dependency tracking: no >> Custom keywords directory: none >> Developer mode: no >> Repository: ftp://ftp.freebsd.org/pub/pkgng >> # > > How long have you had this installed? > > Steve Wills [1] fixed the pkg-deinstall script yesterday, but > evidently you still have an older version. Right, but it's hard to upgrade to the new version without deinstalling the old version, isn't it? :-) > If pkg delete hasn't removed it, try pkg delete -f, then reinstall. pkg delete -f won't help (as already shown in the original message). Instead, as Baptiste advised me: cd /usr/ports/textproc/p5-XML-SAX-Expat make install FORCE_PKG_REGISTER=1 In the case of pkgng the above command should do the right thing in this case (in-place upgrade). > [1] http://www.freebsd.org/cgi/cvsweb.cgi/ports/textproc/p5-XML-SAX-Expat/pkg-deinstall -- Andriy Gapon