Subject: wrapper Solaris bug?
To: None <tech-pkg@NetBSD.org>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 10/20/2005 10:34:30
I set in LDFLAGS in mk.conf to -R/usr/pkg/lib -R/usr/sfw/lib
I unset LD_LIBRARY_PATH to compile postfix

but when i want to install some package with c++ stuff i got this
message:
-------------------------------------------------
===> [Automatic ELF shared object handling]
===> Registering installation for glu-6.2.1nb1
glu-6.2.1nb1 requires installed package MesaLib-6.2.1nb2
/usr/pkg/lib/libGLU.so:         libstdc++.so.6 =>        (file not found)
        libgcc_s.so.1 =>         (file not found)
/usr/pkg/lib/libGLU.so.1:       libstdc++.so.6 =>        (file not found)
        libgcc_s.so.1 =>         (file not found)
/usr/pkg/lib/libGLU.so.1.0.3:   libstdc++.so.6 =>        (file not found)
        libgcc_s.so.1 =>         (file not found)
*** The above programs/libs will not find the listed shared libraries
    at runtime. Please fix the package (add -Wl,-R.../lib in the right places)!
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/glu
-----------------------------------------

I thinks there is a bug in the wrapper for solaris.
I found this line in /usr/pkgsrc/graphics/glu/work/.wrapper/tmp/logic
    arg=`$echo "X$arg" | $Xsed $transform_sed`

and when i execute manually this line I got thoses result:
-------------------------------------------------
[root@redhot 1064] pwd
/usr/pkgsrc/graphics/glu/work/.wrapper/tmp
[root@redhot 1065] echo "-R/usr/pkg/lib" | nbsed -f transform.sed 
-R/usr/pkg/lib
[root@redhot 1066] echo "-R/usr/sfw/lib" | nbsed -f transform.sed

[root@redhot 1067] echo "-R/usr/lib/../sfw/lib" | nbsed -f transform.sed
-R/usr/lib/../sfw/lib
[root@redhot 1068]
----------------------------------------

setting -R/usr/sfw/lib in mk.conf do nothing!
So i use , now, -R/usr/lib/../sfw/lib as a workaround

Any idea?
Thanks,
Gilles