Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2014 10:51:46 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Andrea Venturoli <ml@netfence.it>, freebsd-ports@freebsd.org
Cc:        portmgr@FreeBSD.org
Subject:   Re: Strange pkg_deinstall behaviour with pkgng
Message-ID:  <53D7C312.1020000@FreeBSD.org>
In-Reply-To: <53D7C1E0.1000204@netfence.it>
References:  <53D69662.6020503@netfence.it> <53D7C1E0.1000204@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Ku6cfAPpAHC8hKkQG2ixH1iS4cEWU39Ax
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 7/29/2014 10:46 AM, Andrea Venturoli wrote:
> On 07/28/14 20:28, Andrea Venturoli wrote:
>> Hello.
>>
>> I was forced to switch to pkgng on a 9.2 box and I'm now noticing a
>> strange behaviour.
>>
>> Before, "pkg_deinstall -R foo" would deinstall foo and all ports on
>> which foo depended, except those who were needed by other ports.
>>
>> Now, "pkg_deinstall -R foo" will deinstall foo, all ports on which foo=

>> depends and all ports depending on the ports on which foo depends.
>>
>> E.g.
>> Port A depends on B
>> Port B depends on C
>> Port D depends on C
>>
>> With the old behaviour, "pkg_deinstall -R A" would deinstall A and B
>> (but not C).
>> Now it will deinstall A, B, C and D.
>=20
> After some investigation, this broke after the upgrade to pkg 1.3, in
> which *by default* "pkg delete" seems to be the same as "pkg delete -R"=
=2E

Yes, pkg now requires -f to have the old behavior. I'll update
portupgrade for it.

>=20
> From what I can tell, there is no flags to "pkg delete" which makes it
> act as it used to and as portupgrade expects, so I cannot easily fix it=
=2E
>=20
>=20
>=20
> I found the previous behaviour very useful, but if it's gone I'll try
> and (sadly) live with it.
> However I think this is a serious bug: someone might light heartedly
> issue a "pkg_deinstall foo" and expect two or three ports being deleted=
,
> while in fact it could now deinstall more than half of the installed po=
rts.
> At the very least, an entry in UPDATING should warn about this!!!
>=20
> Just my 2c.
>=20
>  bye
>     av.


--=20
Regards,
Bryan Drewery


--Ku6cfAPpAHC8hKkQG2ixH1iS4cEWU39Ax
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJT18MSAAoJEDXXcbtuRpfPNF0H/jLD9DwSqOliEm01KhqBTZFp
n04iGkRiDv2faQcxsmzCXPaiwYs9wlNTfkAcGqoxUUba+q0Qfokoxz4bLROTa6sm
tIkPBCAQjrTZjj5QHu/RWogi62i2EcMbB95jjteZSXGivwqSr6G1DPtlLT/vlV9p
DjvhR8Rsja2kp7kIj1d2sHPooxPb/WsS4RyIBrCQSM+7MbfNa4PXmVdYPhMbHKbo
71Ltcx66yys5NpeiS+OspX1ErAY6/4JhUjm8vLOr1BGnu3R+D8pUyiArvLpSm91T
nik02678TeGWOWIaQ3DZvqb25vhN7tFZMF/4bdfpOX5TkWCOPfkWQapSJvMkXxA=
=L/Ct
-----END PGP SIGNATURE-----

--Ku6cfAPpAHC8hKkQG2ixH1iS4cEWU39Ax--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53D7C312.1020000>