upgrading ports/packages: mixing portupgrade/portmaster with binary dependencies
Matthew Seaman
matthew at FreeBSD.org
Mon Sep 8 23:25:48 UTC 2014
On 08/09/2014 21:53, Dmitry Morozovsky wrote:
> (and, yes, I know I should plan, prepare and deploy poudriere server for the
> most correct answer to my question ;-P)
>
> is there a shortcut way to source-upgrade ports which configured differently
> comparing to the master default, having install dependencies (which are usually
> needed only for building, not for running) from default pkg repository?
>
> something like old (pre-pkg era) portupgrade -a -PP ; portupgrade -a
>
> And, after all of this dance, it would be great to run ``pkg autoremove'' and
> see installed package list much shorter ;)
Not yet. This sort of thing is definitely on the drawing board though.
At the moment I guess it would be a small matter of writing some scripts
to work out what build deps are needed, use pkg to install them from the
repo and mark them for automatic removal while doing so, and then do a
build from ports of the software you want to apply special options to.
Or you could take the easy way out and run a poudriere instance to build
just the ports you want custom options on. Well, except that will also
build everything those ports depend on as well. But you should be able
to use your custom repo in parallel with the official repos. Just be a
bit careful to match the revision of the ports tree you build your
custom stuff with to the revision used to build the latest official
package set.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20140908/fbd80f28/attachment.sig>
More information about the freebsd-pkg
mailing list