Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2012 05:37:27 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Gary Kline <kline@thought.org>
Cc:        freebsd-questions@freebsd.org, Robert Simmons <rsimmons0@gmail.com>
Subject:   Re: any way to grab just One port to upgrade?
Message-ID:  <20120612053727.496f4688.freebsd@edvax.de>
In-Reply-To: <20120612003110.GA2394@thought.org>
References:  <20120611220232.GA29749@thought.org> <CA%2BQLa9D-LStjU7J%2BLnwPbE0muUsVBwqM4Myrp-kYKWTJ=q0cwg@mail.gmail.com> <20120612003110.GA2394@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Jun 2012 17:31:10 -0700, Gary Kline wrote:
> On Mon, Jun 11, 2012 at 06:14:52PM -0400, Robert Simmons wrote:
> > Date: Mon, 11 Jun 2012 18:14:52 -0400
> > From: Robert Simmons <rsimmons0@gmail.com>
> > Subject: Re: any way to grab just One port to upgrade?
> > To: freebsd-questions@freebsd.org
> >=20
> > On Mon, Jun 11, 2012 at 6:02 PM, Gary Kline <kline@thought.org> wrote:
> > > it is easy to cvs or cvsup ports and get a whole slew of ports in
> > > /usr/ports/distfiles, but too often, using portmaster [or another
> > > tool], I'll have only one of two ports that fail because they are
> > > either 1) broken, or 2) out of date. =A0is there any way I can grab
> > > just the ones that fail to compile? =A0I'm down to fewer than 50
> > > ports.
> > > and wedged.
> >=20
> > You don't want to have /usr/ports out of sync.  You want to let
> > cvsup/portsnap do it's thing.  It's ideal to have the whole ports
> > collection up-to-date.  You may want to start with a clean slate and
> > cvsup/portsnap a fresh copy of the ports collection if you think that
> > something is amiss.  You can make a backup of /usr/ports for peace of
> > mind too.
> >=20
> > Also, can you please supply exactly what ports you're talking about
> > and what commands you are running to upgrade?  Error output for the
> > ports you say are broken would be another good thing to supply.
>=20
> 	something in x11-toolkits/gtk20 blew up.  SOOOO.
> 	lolngstoryshrt, I rebuilt from scratch [[ from the very
> 	beginning ]] around 2 hours ago.  it Just died.  here are
> 	the last 20 lines::
>=20
>=20
> gmake[2]: Leaving directory
> `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.24.6/modules'
> Making all in demos
> gmake[2]: Entering directory
> `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.24.6/demos'
> /usr/local/bin/gdk-pixbuf-csource --raw --build-list            \
>         apple_red  ./apple-red.png      \
>                 gnome_foot ./gnome-foot.png     \
>         > test-inline-pixbufs.h                         \
> || (rm -f test-inline-pixbufs.h && false)
> failed to load "./apple-red.png": Couldn't recognize the image file
> format for file './apple-red.png'
> gmake[2]: *** [test-inline-pixbufs.h] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.24.6/demos'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.24.6'
> gmake: *** [all] Error 2
> *** Error code 1
>=20
> Stop in /usr/ports/x11-toolkits/gtk20.
> *** Error code 1
>=20
> Stop in /usr/ports/x11-toolkits/gtk20.
> root@ethic:/tmp#=20
>=20
> 	unless this port is known to be broken, I'll cvsup the ports
> 	tree.

If you're using csup instead of portsnap, you can get "faster"
updates of your ports tree (as portsnap transmits snapshots
which are less frequently taken).

In case you intendedly need to DOWNgrade a port (maybe because
the newer version doesn't work anymore, like the xzgv image
viewer), use the "portdowngrade" tool. As it as been mentioned,
having an out-of-sync ports tree is not recommended and can
lead to trouble.

So for example, if gtk20 fails, remove its cruft ("make clean"
for this port and maybe its dependencies; maybe also remove
the distfiles it downloaded), and update via CVS some hours
after the incident. It sometimes happens that the problems
magically resolve. :-)

It's recommended to restart port builds in a somewhat clean
environment, that's why it sometimes really helps to delete
files of a previous build.

Are you using a port management tool (e. g. portmaster) or do
you operate "on bare ports")?




--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120612053727.496f4688.freebsd>