Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jun 2008 13:33:19 -0500
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Pietro Cerutti" <gahr@freebsd.org>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: dependency problem on sparc64
Message-ID:  <op.ub4whtmb9aq2h7@mezz.mezzweb.com>
In-Reply-To: <484426A3.7070009@FreeBSD.org>
References:  <48440239.4020608@FreeBSD.org> <op.ub4pybdb9aq2h7@mezz.mezzweb.com> <484426A3.7070009@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 02 Jun 2008 11:58:11 -0500, Pietro Cerutti <gahr@FreeBSD.org>  =

wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Jeremy Messenger wrote:
> | On Mon, 02 Jun 2008 09:22:49 -0500, Pietro Cerutti <gahr@FreeBSD.org=
>
> | wrote:
> |
> | Hi list,
> |
> | I found that glib20 isn't recognized as should be on sparc64
> | (7.0-RELEASE)
> |
> | I can solve the problem with:
> |
> | --- bsd.gnome.mk        24 Mar 2008 15:59:55 -0000      1.146
> | +++ bsd.gnome.mk        2 Jun 2008 14:20:31 -0000
> | @@ -251,7 +251,7 @@
> | ~ pygnome_RUN_DEPENDS=3D
> | ${pygnome_DETECT}:${PORTSDIR}/x11-toolkits/py-gnome
> | ~ pygnome_USE_GNOME_IMPL=3D        gtkhtml pygtk
> |
> | -_glib20_LIB_DEPENDS=3D   glib-2.0.0:${PORTSDIR}/devel/glib20
> | +_glib20_LIB_DEPENDS=3D   glib-2.0:${PORTSDIR}/devel/glib20
> | ~ _glib20_DETECT=3D
> | ${LOCALBASE}/libdata/pkgconfig/glib-2.0.pc
> | ~ _glib20_USE_GNOME_IMPL=3D        gnometarget pkgconfig
> |
> |
> |
> | Here's some output:
> |
> | | pkg_info glib\*
> | Information for glib-2.16.3:
> |
> | Comment:
> | Some useful routines of C programming (current stable version)
> |
> | Description:
> | GLib provides a simple, abstract, and highly portable set of C suppo=
rt
> | routines such as lists, trees, hashes, memory allocation, and much, =
 =

> much
> | more. It is a foundation for writing portable applications.
> |
> | WWW: http://www.gtk.org/
> |
> | | cat Makefile
> | PORTNAME=3D test
> | USE_GNOME=3D glib20
> | .include <bsd.port.mk>
> |
> | | make depends
> | =3D=3D=3D> test- depends on shared library: glib-2.0.0 - not found
> | =3D=3D=3D> Verifying install for glib-2.0.0 in /usr/ports/devel/glib=
20
> | =3D=3D=3D> Returning to build of test-
> | Error: shared library "glib-2.0.0" does not exist
> | *** Error code 1
> | Stop in /home/gahr.
> |
> | | d /usr/local/lib/libglib-2.0.*
> | -rw-r--r-- 1 root wheel 1.5M Jun 2 15:53 /usr/local/lib/libglib-2.0.=
a
> | -rwxr-xr-x 1 root wheel 939B Jun 2 15:53 /usr/local/lib/libglib-2.0.=
la
> | lrwxr-xr-x 1 root wheel 19B Jun 2 15:53 /usr/local/lib/libglib-2.0.s=
o  =

> ->
> | libglib-2.0.so.1600
> | -rwxr-xr-x 1 root wheel 904K Jun 2 15:53
> | /usr/local/lib/libglib-2.0.so.1600
> |
> |> This is busted. How old is your bsd.gnome.mk? Or maybe something
> |> (libtool) that doesn't work correct for sparc64? See mine:
>
> I think not much older than yours:
>
> $FreeBSD: ports/Mk/bsd.gnome.mk,v 1.147 2008/05/29 16:34:11 mezz Exp $=

> ~ $NetBSD: $
> ~  $MCom: ports/Mk/bsd.gnome.mk,v 1.447 2008/03/12 03:42:31 marcus Exp=
 $
>
> and libtool is 1.5.24

You have latest version.

> |> We have a hack called ltverhack in bsd.gnome.mk to force any librar=
y  =

> to
> |> get correct ABI version that way it won't get bump until ABI change=
.  =

> For
> |> example, ltverhack gets our glib20 to have libglib-2.0.so.0 instead=
 of
> |> like your for libglib-2.0.so.1600. If that ltverhack doesn't work f=
or
> |> sparc64, then it will need to be figure out why.
>
> Any clue how to debug it?

Probably have to dig in libtool, bsd.gnome.mk and others (if there is  =

any?). My time is a bit limit right now for a few days, so I will explai=
n  =

how ltverhack works in case if you want to dig in.

-----------------------------------------------------
- Copy /usr/local/share/libtool/ltmain.sh to ${WRKDIR}/gnome-ltmain.sh
- Copy /usr/local/bin/libtool to ${WRKDIR}/gnome-libtool
- Hack in both files by this:

   ${REINPLACE_CMD} -e \
   '/freebsd-elf)/,/;;/ s|major=3D"\.$$current"|major=3D.`expr $$current=
 -  =

$$age`|; \
   /freebsd-elf)/,/;;/ s|versuffix=3D"\.$$current"|versuffix=3D"$$major"=
|' \
   ${WRKDIR}/$$file;
-----------------------------------------------------

You can view in bsd.gnome.mk at 667 to 693 line. Maybe you can attach yo=
ur  =

both files, ltmain.sh and libtool, for us to compare with these files. I=
  =

don't know if it will helping as I am not skill on libtool, but won't hu=
rt  =

thought.

Cheers,
Mezz

> Thanks,
>
> |> Mezz
>
> - --
> Pietro Cerutti
> gahr@FreeBSD.org
>
> PGP Public Key:
> http://gahr.ch/pgp
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (FreeBSD)
>
> iEYEAREKAAYFAkhEJqEACgkQwMJqmJVx946OvwCeJ1grH0UYJR92h25YCVufsvHP
> 9CIAoMBgnVe8lVEMp44kLJaJty/UWMkG
> =3Ds6md
> -----END PGP SIGNATURE-----


-- =

mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org



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