NetBSD Problem Report #51203
From www@NetBSD.org Tue May 31 13:40:40 2016
Received: from mail.netbsd.org (mail.netbsd.org [126.96.36.199])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2ACB77A13C
for <gnats-bugs@gnats.NetBSD.org>; Tue, 31 May 2016 13:40:40 +0000 (UTC)
Date: Tue, 31 May 2016 13:40:39 +0000 (UTC)
Subject: symlink Symlink:../lib/<blah> is not same as recorded value, not deleting:
>Synopsis: symlink Symlink:../lib/<blah> is not same as recorded value, not deleting:
>Arrival-Date: Tue May 31 13:45:00 +0000 2016
>Last-Modified: Tue May 31 13:55:00 +0000 2016
>Originator: Richard PALO
SunOS omnis 5.11 omnios-master-5409e8f i86pc i386 i86pc
Finally getting around to file an issue on this one.
pkgsrc adjusts full path symlinks during install which consequently creates an issue during "bmake replace".
Here is an example with firefox24:
richard@omnis:/home/richard/src/pkgsrc/www/firefox24$ bmake replace
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Replacing for firefox24-24.8.1nb8
=> Becoming ``root'' to make su-replace (pfexec)
Creating binary package: firefox24-24.8.1nb8
Creating package /tmp/pkgsrc/www/firefox24/work/firefox24-24.8.1nb8
Full pathname symlink `/opt/local/lib/firefox24/firefox' is target of `/opt/local/bin/firefox24' - adjusting to `../lib/firefox24/firefox'
Full pathname symlink `/opt/local/lib/firefox24' is target of `/opt/local/lib/firefox24-sdk/bin' - adjusting to `../../lib/firefox24'
Full pathname symlink `/opt/local/share/idl/firefox24' is target of `/opt/local/lib/firefox24-sdk/idl' - adjusting to `../../share/idl/firefox24'
Full pathname symlink `/opt/local/include/firefox24' is target of `/opt/local/lib/firefox24-sdk/include' - adjusting to `../../include/firefox24'
Full pathname symlink `/opt/local/lib/firefox24-sdk/sdk/lib' is target of `/opt/local/lib/firefox24-sdk/lib' - adjusting to `../../lib/firefox24-sdk/sdk/lib'
===> Updating using binary package of firefox24-24.8.1nb8
/opt/local/sbin/pkg_add -K /opt/local/pkg -U -D /tmp/pkgsrc/www/firefox24/work/.packages/firefox24-24.8.1nb8.tgz
symlink Symlink:../lib/firefox24/firefox is not same as recorded value, not deleting: /opt/local/bin/firefox24
symlink Symlink:../../lib/firefox24 is not same as recorded value, not deleting: /opt/local/lib/firefox24-sdk/bin
symlink Symlink:../../share/idl/firefox24 is not same as recorded value, not deleting: /opt/local/lib/firefox24-sdk/idl
symlink Symlink:../../include/firefox24 is not same as recorded value, not deleting: /opt/local/lib/firefox24-sdk/include
symlink Symlink:../../lib/firefox24-sdk/sdk/lib is not same as recorded value, not deleting: /opt/local/lib/firefox24-sdk/lib
pkg_delete: couldn't entirely delete package `firefox24-24.8.1nb8'
=> Dropping ``root'' privileges.
replace logic should be aware and deal with the full path symlink optimisation.
From: Richard PALO <email@example.com>
Subject: Re: pkg/51203: symlink Symlink:../lib/<blah> is not same as recorded
value, not deleting:
Date: Tue, 31 May 2016 15:55:06 +0200
Another way to see these easily via pkg_info
> richard@omnis:/home/richard/src/pkgsrc/www/firefox24$ pkg_info -f firefox24 |ggrep -B1 Symlink
> File: bin/firefox24
> Comment: Symlink:/opt/local/lib/firefox24/firefox
> File: lib/firefox24-sdk/bin
> Comment: Symlink:/opt/local/lib/firefox24
> File: lib/firefox24-sdk/idl
> Comment: Symlink:/opt/local/share/idl/firefox24
> File: lib/firefox24-sdk/include
> Comment: Symlink:/opt/local/include/firefox24
> File: lib/firefox24-sdk/lib
> Comment: Symlink:/opt/local/lib/firefox24-sdk/sdk/lib
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.