From owner-freebsd-ports@FreeBSD.ORG Tue Aug 21 11:09:56 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 004DF106566C; Tue, 21 Aug 2012 11:09:55 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 24DB38FC0A; Tue, 21 Aug 2012 11:09:54 +0000 (UTC) Received: by bkcje9 with SMTP id je9so2920575bkc.13 for ; Tue, 21 Aug 2012 04:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=AJmuGRdGLEpEmESeKQVwaCkMgDFhm8wIKMxeaZGRY+U=; b=rW0jh3bRNprdinID1SjFPeUJuN0p5Zh6sXe1FcrtFFiQlx7ApA0dIlEUT0vRX7yeY0 p/X25N8Pxh3vA2aiK6bQC/x/3UP6b8vpp1U6z8M8lr2ypskUufzRNlTJAN6NmXWCnoIg fLnryIvr0q54PFrVhe5lN0K4sRjZa0sQ01v9qRF4ChyB14Xjwu5BeRHuAuZHUHtNQNpA XaSdS4Aeilulw5XBq9RSVmQPdn4e/linWzpGnridw33mylnjttBMIZcOhNEyYyTnRv2Z xpP9PZiLkuFYrJxWQdMO3Q6/GMxvLigk51FRJ0O1xX36xlenWPIPFuG4h4Css+9hGbqb ca/g== Received: by 10.204.133.193 with SMTP id g1mr5121067bkt.2.1345547393775; Tue, 21 Aug 2012 04:09:53 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.10.141 with HTTP; Tue, 21 Aug 2012 04:09:23 -0700 (PDT) In-Reply-To: <50336BE1.2000204@FreeBSD.org> References: <201208210847.q7L8likv021105@mech-cluster241.men.bris.ac.uk> <50336BE1.2000204@FreeBSD.org> From: Chris Rees Date: Tue, 21 Aug 2012 12:09:23 +0100 X-Google-Sender-Auth: TtXYkqmhDD7aWwNYD3aI8-OYUPg Message-ID: To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: perl@freebsd.org, Anton Shterenlikht , 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:09:56 -0000 On 21 August 2012 12:07, Andriy Gapon wrote: > 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? :-) D'oh, I forgot that make deinstall using pkg delete -f. Sorry. >> 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). Glad to see I remembered it correctly in my next message. Chris