portupgrade and ICU libraries

Jung-uk Kim jkim at FreeBSD.org
Fri May 10 22:41:28 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-05-10 17:52:35 -0400, Mikhail T. wrote:
> On 10.05.2013 17:02, Jung-uk Kim wrote:
>>> FreeBSD stopped using minor numbers long ago (when a.out was
>>>> replaced by elf). It is the libicuuc.so.54, that needs to be 
>>>> "Actual library", not libicuuc.so.54.3 for portupgrade to
>>>> not fail.
>> I think it is irrelevant in this case because ICU is not ours.
> 
> Well, it is "yours" on FreeBSD -- because you are the 
> port-maintainer(s). The port can certainly alter this behavior of
> the upstream package.

Sure, if someone's willing to fix all dependencies. ;-)

Seriously, the file names and linking procedures are well-defined by
the upstream.  I don't see any point of changing it.

>> IMHO, a correct fix is to teach portupgrade to find SONAME and
>> copy the actual library if they do not match.
> Yes, this was the 1. in my original e-mail and, yes, portupgrade
> should handle this. But icu has something to correct as well, if
> possible without too much difficulty.

It should be much easier to fix portupgrade, e.g., something like this
pseudo function (sorry, I am not very familiar with Ruby):

/*
 * Copy file `lib' (not symlink!) to directory `dir'.
 */
static int
copy_library(const char *lib, const char *dir)
{
	char *dst;

	dst = get_soname(lib);
	if (dst == NULL)
		dst = basename(lib);

	/* Actually copy. ;-) */
	return (copy_file(lib, dir, dst));
}

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJRjXbRAAoJECXpabHZMqHODKIIAJy3gOk/m/PHRuzzfIUCeHqz
1+E+86KdpLzO5FjFVayYrO4uLPZCG1qTNuvUTI+37Z2mG/bhEKXdquiF0t3bKhW8
1J24mHfOz6NiQg/gDfLQNkkbD+u6UCJw0QBlMytOLxY6vvj/KQ6VfeLM0v0v7nVY
Q78FT/sRXrgpzGQWkqNmzEhYmWl3Kmg30fosnR7dr6bLteiTQVvon3TIA/LHuiAn
gRqaUp2jA2RjprwWs1/mwTgPcKSJXzwkW7AZlu7ui8a/OFredk7W9wFxNJvXOAPQ
baxZ9dXS5MVr8iI2aBUt2etHXeLocv3JoiUb71YYMFt6VOAXQOks1EUKl0cpTq4=
=WZR+
-----END PGP SIGNATURE-----


More information about the freebsd-office mailing list