Subject: Re: pkg/36797: lang/scsl-jre15 won't build with modular xorg
To: None <gnats-bugs@NetBSD.org>
From: Johnny C. Lam <jlam@pkgsrc.org>
List: pkgsrc-bugs
Date: 08/29/2007 03:27:27
On Sat, Aug 18, 2007 at 03:25:03AM +0000, Takahiro Kambe wrote:
>  Some commmands and libraries in jre-1_5_0-p3-bin-duh1-bsd-i586.tar.bz2
>  linked with libstdc++.so.5:
>  
>  jre1.5.0/bin/unpack200:
>          -lstdc++.5 => /usr/lib/libstdc++.so.5
>          -lm.0 => /usr/lib/libm387.so.0
>          -lm.0 => /usr/lib/libm.so.0
>          -lpthread.0 => /usr/lib/libpthread.so.0
>          -lc.12 => /usr/lib/libc.so.12
>  jre1.5.0/lib/i386/libfontmanager.so:
>          -lawt => not found
>          -ljava => not found
>          -ljvm => not found
>          -lstdc++.5 => /usr/lib/libstdc++.so.5
>          -lm.0 => /usr/lib/libm387.so.0
>          -lm.0 => /usr/lib/libm.so.0
>          -lpthread.0 => /usr/lib/libpthread.so.0
>  jre1.5.0/lib/i386/libunpack.so:
>          -ljvm => not found
>          -ljava => not found
>          -lstdc++.5 => /usr/lib/libstdc++.so.5
>          -lm.0 => /usr/lib/libm387.so.0
>          -lm.0 => /usr/lib/libm.so.0
>          -lpthread.0 => /usr/lib/libpthread.so.0
>  
>  One possible solution is provide something emulator/compat4 pacakge?
>  libstdc++.so.5 was included until NetBSD 3.x.

It looks like libstdc++.so.5 was last available in NetBSD/i386 on the
netbsd-3 branch.  I think you should be able to express this using
the new emulator framework and the recently committed compat* packages
by adding the following lines to the scsl-jre15 Makefile:

    EMUL_PLATFORMS=		netbsd-i386
    EMUL_REQD=			netbsd>=3.0
    EMUL_MODULES.netbsd=	base

	Cheers,

	-- Johnny Lam <jlam@pkgsrc.org>