Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 16:03:06 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Akinori MUSHA <knu@iDaemons.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/graphics/autotrace Makefile ports/graphics/graphviz Makefile ports/graphics/libafterimage Makefile ports/graphics/librsvg Makefile ports/graphics/libwmf Makefile ports/graphics/sdl_ttf Makefile ports/print/ft2demos Makefile ...
Message-ID:  <20020312160305.A1457@straylight.oblivion.bg>
In-Reply-To: <86zo1daofp.wl@archon.local.idaemons.org>; from knu@iDaemons.org on Tue, Mar 12, 2002 at 10:46:50PM %2B0900
References:  <200203111725.g2BHPVF52248@freefall.freebsd.org> <20020312134137.B447@straylight.oblivion.bg> <86zo1daofp.wl@archon.local.idaemons.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 12, 2002 at 10:46:50PM +0900, Akinori MUSHA wrote:
> At Tue, 12 Mar 2002 13:41:37 +0200,
> Peter Pentchev wrote:
> > As soon as I saw this, a bell rang out, loudly: what about www/mod_php4?
> > This is not the first time this has happened - a shared library version
> > bump, followed by a commit which does *not* catch ALL dependent ports.
> >=20
> > People, PLEASE take note that there are ports which do not depend direc=
tly
> > on others!  The PHP ports are one example - a lot of the dependencies a=
re
> > configured dynamically, using dialog(1), at build time.  Sometimes there
> > is *no* substitute for a find/grep over the whole of the ports tree to =
fish
> > out the ports which reference the older library version.
> >=20
> > In this particular case, the following command:
> >=20
> > find /usr/ports -type f | xargs fgrep -le freetype.8 -e freetype.so.8
>=20
> Unfortunately, this is not sufficient because someone removed the
> shlib major part of freetype2 and some other libraries' LIB_DEPENDS
> entries from his ports.  You should grep for -w freetype2 instead to
> catch by the port name.

In this case, I was only interested in the shared library's version number;
I did not bump the three ports' PORTREVISION, because.. well, because it
would be weird to bump PORTREVISION on only these three, when it was not
bumped on any of the other 2,000+ that Maxim referred to.

Since it was just the shlib major number I was interested in, it was just
the shlib major number that I looked for, hence the .8 :)

> > I will commit a patch updating those three ports in a minute, but please
> > take note of this situation and try not to miss "hidden" dependencies
> > in the future! :)
>=20
> Actually many ports that have explicit dependencies in their Makefiles
> were left untouched too. (Read other mails on this thread, you can
> find my getting sobomax' OK to deal with ImageMagic, gd and
> XFree86-4-libraries)

None of these referred to the shlib's major version number; all of these
would be caught by a proper package depencies' registration within
/var/db/pkg (@pkgdep and +REQUIRED_BY).  All right, so sometimes
the /var/db/pkg dependencies are not recorded quite correctly; I personally
use a one-line shell script - 'egrep "^@pkgdep $*" */+CONTENTS' - to see
which packages depend on an older version that I am about to remove before
installing the new one.

Again, my reply only referred to the shlib version number.  Still,
the find/fgrep could be done in such a way as to catch all ports depending
in some way on print/freetype2 - simply search for that :)

find /usr/ports -type f | xargs fgrep -l print/freetype2

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
What would this sentence be like if it weren't self-referential?

--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjyOCpkACgkQ7Ri2jRYZRVPtXgCfc+D0B6yzRjvma8qVH78BGMHM
cUkAnjdz0nEgEHSnUnUbv8AmyfIzJzrw
=C+kY
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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