swig~pkg-renamed-XXX prevents upgrading swig
Baptiste Daroussin
bapt at FreeBSD.org
Sun Jan 25 19:25:56 UTC 2015
On Sun, Jan 25, 2015 at 08:15:30PM +0100, Xavier wrote:
> Hi,
>
> I cannot upgrade/reinstall swig (1.3 & 2.0) because a package name change :
>
> | [root at valinor ~]# portupgrade -vf devel/swig20
> | ---> Session started at: Sun, 25 Jan 2015 19:58:08 +0100
> | [Reading data from pkg(8) ... - 650 packages found - done]
> | ** Detected a package name change: swig~pkg-renamed~5AF8 |
> | (devel/swig20) -> 'swig' (devel/swig20)
> | ---> Reinstallation of devel/swig20 started at: Sun, 25 Jan 2015
> | 19:58:23 +0100
> | ---> Reinstalling 'swig~pkg-renamed~5AF8-2.0.12_1' (devel/swig20)
> | ---> Build of devel/swig20 started at: Sun, 25 Jan 2015 19:58:23 |
> | +0100
> | [...]
> | ---> Uninstallation of swig~pkg-renamed~5AF8-2.0.12_1 started at:
> | Sun, 25 Jan 2015 20:02:20 +0100
> | ---> Fixing up dependencies before creating a package
> | ---> Backing up the old version
> | pkg: No installed package matching "swig~pkg-renamed~5AF8-2.0.12_1"
> | found
> | ** Backup failed.
> | ---> Uninstallation of swig~pkg-renamed~5AF8-2.0.12_1 ended at: Sun,
> | 25 Jan 2015 20:02:23 +0100 (consumed 00:00:02)
> | ---> Reinstallation of devel/swig20 ended at: Sun, 25 Jan 2015
> | 20:02:23 +0100 (consumed 00:03:59)
> | ---> ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
> | ---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
> ! devel/swig20 (swig~pkg-renamed~5AF8-2.0.12_1) (backup error)
>
> However these packages are registered :
>
> | [root at valinor ~]# pkg info swig\*
> | swig~pkg-renamed~5AF8-2.0.12_1
> | swig~pkg-renamed~8A1C-1.3.40
>
> But cannot be deleted :
>
> | [root at valinor ~]# pkg delete -f swig~pkg-renamed~5AF8-2.0.12_1
> | Checking integrity... done (0 conflicting)
> | Package(s) not found!
>
> Many thanks for any help.
>
The following should work:
pkg set -n swig~pkg-renamed~5AF8:swig
pkg set -n swig~pkg-renamed~8A1C:swig13
or you have the hammer way:
pkg delete -fg swig*
Then reinstall swig. somehow your setup never catches the swig package renaming
which occurs long ago.
Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150125/287baa96/attachment.sig>
More information about the freebsd-ports
mailing list