Utility for safe updating of ports in base system
uspoerlein at gmail.com
Thu Mar 27 14:21:09 PDT 2008
Sorry for the late reply, catching up on emails ...
On Thu, 20.03.2008 at 23:32:49 +0100, Pav Lucistnik wrote:
> Doug Barton píše v čt 20. 03. 2008 v 13:12 -0700:
> > Pav Lucistnik wrote:
> > > Doug Barton píše v c(t 20. 03. 2008 v 01:05 -0700:
> > >> On Thu, 20 Mar 2008, Michel Talon wrote:
> > >>
> > >>> i would venture to say that such an utility
> > >>> should be able to upgrade things based of *binary* packages, and
> > >>> consequently that portmaster is not a suitable candidate.
> > >> That ability is not included in the current requirements document, and was
> > >> not specifically mentioned the last time we had the discussion on the
> > >> list. If the portmgr folks intend that to be a requirement, the current
> > >> ideas list entry should be amended.
> > >
> > > Yes, I think ability to work with packages on a remote FTP site with no
> > > local /usr/ports, solely relying on an INDEX file, is a solid "must
> > > have" requirement. I have added that to the entry in the Ideas page.
Amen. To give people in this thread an idea for a very important use
case for businesses running on FreeBSD:
We have a build machine set up, that will build all our required ports
on certain releases with our custom make.conf settings. All these
releases are revisioned themselves, so we can always tell which exact
version of what binaries where present on those systems. Our FreeBSD
machines themselves do not have any /usr/ports and don't (can't) mount
it via NFS. They solely have to rely on pkg_add(1) using FTP to update
This is where an automatic tool would come in handy :)
Some people mentioned license issues with certain ports that would
disallow the package building: These issues are non-existant if you are
talking about in-house distribution only. All our jdks are pkg_add(1)ed
and would love to be upgraded just the same.
> > I would be more sympathetic to this idea if we could somehow push
> > security-sensitive package builds up to the top of the list (so they
> > would be available ASAP), but the last time I inquired about this I
> > was told it isn't possible.
> It's not possible at the moment.
> There are dreams of having an on-commit action that would trigger a
> rebuild of the changed port and only the changed port on all platforms.
> But I feel this would be fairly hard to implement inside the current
> pointyhat framework.
I hacked something together once, that would more or less make it
trivial to implement this. I used make(1) (of course) to get the package
dependancy in the form
foo.tbz: bar.tbz baz.tbz
# black magic to build foo.tbz inside clean tree
This immediately allows one to use 'make -j64 openoffice.org.tbz' and
one could add the following dependancy, to have the port rebuild after
every commit (to Makefile, or some suitable file of the port)
Though this will trigger quite a hefty rebuild, if you ever touch the
Makefile of the gettext port for example.
It is better to remain silent and be thought a fool,
than to speak, and remove all doubt.
More information about the freebsd-ports