Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 14:50:49 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: [portmaster/pkg] Detecting build-only dependencies
Message-ID:  <536E2EB9.8070107@FreeBSD.org>
In-Reply-To: <20140510132949.GA29029@spectrum.skysmurf.nl>
References:  <20140510132949.GA29029@spectrum.skysmurf.nl>

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

On 10/05/2014 14:29, A.J. 'Fonz' van Werven wrote:
> A quick question if I may: in a setup using Portmaster and pkg, is ther=
e
> any way (some kind of "pkg query" perhaps?) to obtain a list of which
> currently installed ports are build-only dependencies?

pkg(8) only deals with run-time dependencies.  It also marks ports that
were not specifically requested to be installed as candidates for
automatic removal.  Build dependencies should fit the conditions for
autoremoval -- flagged as suitable and not having anything else
depending on them -- so try running 'pkg autoremove -n' and inspect the
output to see what looks suitable.

Of course, this will not be completely accurate.  You may have installed
a specific port by hand so it doesn't get the build dependency flag.
You may have packages installed that used to be dependencies of
something else, since removed.  You're going to have to use your own
skill and judgement to decide.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTbi7CXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATOWUQAIVAQWFbb+o7mwAKteeF20Tp
/ngE30R5ueqO5UKqbO9JrZVwDbwj8o8X/YMXRbKtUQJ+hzc4Poy+ztmD3RONMf98
GoPhM2tvQymnZmvyU1hNK9hyWfZDsCYUkMsm/JrCQH4AlzcWE4eXblEucdznCIbs
4H21N6pDtikOuZmJHtOZgM2rjvtj0u1Rs0LgoS1CuBpmmqtqe3fqg7LA3RKyiScz
hNL0oeLhzUyGXuG0WB+8Nt8djQpG1/raE2CbcvmO6eyKR8xX0YYeFxMnMYjFEkOk
5RONnoufz3xzSmdhEPlOBpOHxMeUMhYaYQboeUE8heDI/N9slyYGQcGfB6aOP+S+
odY2FQR7gBjwaeyxgtNuTDXd5og7+glQfwdZsIogOG27QcuvZ/1r9k3It4EVEnkN
B1TROQfr9WhJRPZU6mZAt8YUrqlXwzFSb9kYJOS9e09ac54o8L67v7pcWHoyVSyz
fPFNjoq8QtybKQsOrodUKwozhiTmesWyNg1dKfTL8JSc4Ycow9PovoIT1A4qJtFA
yyaiB7FmfdjmAhJu8DJtDTl7PR5S+P/rnrg/HSDoe2Sy6hJ+Ct4oGCmDad/sBZKF
x2wsyEXngPb8LAgOxiJxxneFfwCJ7PqnIG5kEkfuWAIhLRfTDsBp+Pw/wQOGDbYz
SYGlpiXXd43XJ7chnzti
=GdaH
-----END PGP SIGNATURE-----

--ataJkjNJq4ifSHxRhVfjmLJcMmXlAKQQB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?536E2EB9.8070107>