Subject: wrapper Solaris bug?
To: None <>
From: Gilles Dauphin <>
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
===> [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/ =>        (file not found) =>         (file not found)
/usr/pkg/lib/ =>        (file not found) =>         (file not found)
/usr/pkg/lib/ =>        (file not found) =>         (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

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
[root@redhot 1065] echo "-R/usr/pkg/lib" | nbsed -f transform.sed 
[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
[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?