Subject: pkg/23051: fonts/Xft2 doesn't install same library between systems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <juan@xtraeme.unixbsd.org>
List: netbsd-bugs
Date: 10/04/2003 10:42:03
>Number:         23051
>Category:       pkg
>Synopsis:       fonts/Xft2 doesn't install same library between systems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 04 08:41:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Juan RP
>Release:        NetBSD 1.6ZC
>Organization:
>Environment:
System: NetBSD Insomnio 1.6ZC NetBSD 1.6ZC (Insomnio) #6: Tue Sep 30 08:35:43 CEST 2003 juan@Nocturno:/home/juan/httpd/nbsd/obj/sys/arch/i386/compile/Insomnio i386
Architecture: i386
Machine: i386
>Description:

When installing fonts/Xft2 or x11/Xrender, the library installed is not
the same between all systems, on Linux maybe it has an extra number, over
FreeBSD library.so.$(MAJOR_VERSION).$(MINOR_VERSION) is not built.

===> Installing for Xft2-2.1.2nb1
===> Becoming root@Nocturno to install Xft2.
/usr/pkg/bin/sudo gmake[1]: Entering directory `/usr/pkgsrc/fonts/Xft2/work/xft-2.1.2'
/bin/sh ./mkinstalldirs /usr/pkg/bin
 install -c -o root -g wheel -m 555 xft-config /usr/pkg/bin/xft-config
/bin/sh ./mkinstalldirs /usr/pkg/lib
 /bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g wheel  libXft.la /usr/pkg/lib/libXft.la
/usr/bin/install -c -o root -g wheel .libs/libXft.so.2 /usr/pkg/lib/libXft.so.2
(cd /usr/pkg/lib && rm -f libXft.so && ln -s libXft.so.2 libXft.so)
(cd /usr/pkg/lib && rm -f libXft.so && ln -s libXft.so.2 libXft.so)
/usr/bin/install -c -o root -g wheel .libs/libXft.lai /usr/pkg/lib/libXft.la
/usr/bin/install -c -o root -g wheel .libs/libXft.a /usr/pkg/lib/libXft.a
ranlib /usr/pkg/lib/libXft.a
chmod 644 /usr/pkg/lib/libXft.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/pkg/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ./mkinstalldirs /usr/pkg/include/X11/Xft
mkdir -p -- /usr/pkg/include/X11/Xft
 install -c -o root -g wheel -m 444 Xft.h /usr/pkg/include/X11/Xft/Xft.h
 install -c -o root -g wheel -m 444 XftCompat.h /usr/pkg/include/X11/Xft/XftCompat.h
/bin/sh ./mkinstalldirs /usr/pkg/man/man3
 install -c -o root -g wheel -m 444 ./Xft.3 /usr/pkg/man/man3/Xft.3
/bin/sh ./mkinstalldirs /usr/pkg/lib/pkgconfig
 install -c -o root -g wheel -m 444 xft.pc /usr/pkg/lib/pkgconfig/xft.pc
gmake[1]: Leaving directory `/usr/pkgsrc/fonts/Xft2/work/xft-2.1.2'
===> [Automatic ELF shared object handling]
ls: /usr/pkg/lib/libXft.so.2.1: No such file or directory
===> Registering installation for Xft2-2.1.2nb1
pkg_create: can't stat `/usr/pkg/lib/libXft.so.2.1'
Xft2-2.1.2nb1 requires installed package Xrender-0.8.3nb1
Xft2-2.1.2nb1 requires installed package expat-1.95.6nb1
Xft2-2.1.2nb1 requires installed package fontconfig-2.2.1nb1
Xft2-2.1.2nb1 requires installed package freetype2-2.1.5


FreeBSD Nocturno 5.1-RELEASE-p9 FreeBSD 5.1-RELEASE-p9 #1: Fri Oct  3 16:35:22 CEST 2003     root@Nocturno:/usr/obj/usr/src/sys/Nocturno  i386

>How-To-Repeat:

$ cd pkgsrc/fonts/Xft2 && bmake install

>Fix:

Maybe upgrade our libtool from pkgsrc to >=1.5 ? or as temporary fix
use PLIST_SUBST between systems.
>Release-Note:
>Audit-Trail:
>Unformatted: