pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: converting a package to modular xorg



On Fri, 17 Aug 2007 12:10:03 -0500 (CDT)
"Jeremy C. Reed" <reed%reedmedia.net@localhost> wrote:

> On Fri, 17 Aug 2007, Steven M. Bellovin wrote:
> 
> > What is the proper way to convert a package to modular xorg?  Doing
> > a pkg_comp build to convert some of my machines, I found three
> > packages that won't work with it: net/pload, net/mtr, and
> > x11/stalonesystray. I'm the maintainer of stalonesystray, so I
> > can't ask someone else to fix it, but I don't know how...
> > Stalonesystray and pload both use x11.buildlink3.mk only, and no
> > other X libraries.  mtr uses it and gtk -- not gtk2 -- which I seem
> > to recall is deprecated.
> 
> If you can, start with running ldd (or objdump) on the binaries to
> see what libraries are needed.

See below.
> 
> Get rid of the x11.buildlink3.mk include. And include the 
> x11/libX11/buildlink3.mk instead. Then add the other buildlink3.mk 
> includes as you see are need to building or running.

I'd thought of t hat, but do I need to make that conditional on modular
xorg being used?  The DESCR file for libX11 describes it as being part
of modular xorg.
> 
> I think if a package includes gtk, then you can remove the 
> x11.buildlink3.mk include.
> 
I'll try that.

Meanwhile, here is ldd output from these programs built with monolithic
xorg:

b154$ ldd /usr/pkg/sbin/mtr
/usr/pkg/sbin/mtr:
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lcurses.6 => /usr/lib/libcurses.so.6
        -lgmodule.13 => /usr/pkg/lib/libgmodule.so.13
        -lglib.13 => /usr/pkg/lib/libglib.so.13
        -lX11.6 => /usr/pkg/xorg/lib/libX11.so.6
        -lXext.6 => /usr/pkg/xorg/lib/libXext.so.6
        -lXi.6 => /usr/pkg/xorg/lib/libXi.so.6
        -lintl.0 => /usr/lib/libintl.so.0
        -lgtk.12 => /usr/pkg/lib/libgtk.so.12
        -lgdk.12 => /usr/pkg/lib/libgdk.so.12
        -lc.12 => /usr/lib/libc.so.12
b155$ ldd /usr/pkg/bin/pload
/usr/pkg/bin/pload:
        -lX11.6 => /usr/pkg/xorg/lib/libX11.so.6
        -lICE.6 => /usr/pkg/xorg/lib/libICE.so.6
        -lSM.6 => /usr/pkg/xorg/lib/libSM.so.6
        -lXt.6 => /usr/pkg/xorg/lib/libXt.so.6
        -lXext.6 => /usr/pkg/xorg/lib/libXext.so.6
        -lXmu.6 => /usr/pkg/xorg/lib/libXmu.so.6
        -lXpm.4 => /usr/pkg/xorg/lib/libXpm.so.4
        -lXp.6 => /usr/pkg/xorg/lib/libXp.so.6
        -lXaw.8 => /usr/pkg/xorg/lib/libXaw.so.8
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lc.12 => /usr/lib/libc.so.12
b156$ ldd /usr/pkg/bin/stalonetray
/usr/pkg/bin/stalonetray:
        -lICE.6 => /usr/pkg/xorg/lib/libICE.so.6
        -lSM.6 => /usr/pkg/xorg/lib/libSM.so.6
        -lX11.6 => /usr/pkg/xorg/lib/libX11.so.6
        -lXext.6 => /usr/pkg/xorg/lib/libXext.so.6
        -lXpm.4 => /usr/pkg/xorg/lib/libXpm.so.4
        -lc.12 => /usr/lib/libc.so.12



                --Steve Bellovin, http://www.cs.columbia.edu/~smb



Home | Main Index | Thread Index | Old Index