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

Re: sorting through xlibs-dev dependencies?



On Sat, Dec 18, 2004 at 10:39:37PM +0000, Helen Faulkner wrote:
> Hi,

Hello. 

> I hope this isn't a too dumb question!

;)
 
> I'm the maintainer for xwrits, and partway through the NM process. My 
> application manager (Frank Lichtenheld) has sent me a review of my 
> packages, and I am confused about one of the things he suggested I do.
> 
> xwrits currently depends on xlibs-dev.  Frank suggests that I replace that 
> with only the needed dependencies.
> 
> What I am confused about is how to tell what it really needs and what it 
> doesn't really need.  I don't know that much about X, in general.  
> xlibs-dev seems to be a package that does nothing but depend on a 
> collection of many different X libraries.  But I don't know what all those 
> libraries do (and no, I don't want to read the code for all of them!).
> 
> So, the only thing I thought to do is
>  a) look at every header file that is #included in the xwrits code
>  b) use dlocate or similar to see which packages all those headers are in.
>  c) make xwrits build-depend on those packages.
> 
> But this will take me quite a long time.  I wondered if I am missing 
> something obvious and there is a better way to do it.  Or am I on the right 
> track after all.
> 
> Now, obviously, I don't want someone to actually tell me which things I 
> should be build-depending on.  I want to know how to work out such things 
> for myself in the future :)  (It would also defy the point of my AM asking 
> me this.)  But I would appreciate a hint...

Well I would do it this way:

(fenio@domek)~$ldd /usr/bin/xwrits | grep X11R6
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40025000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4002e000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40045000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4010d000)
(fenio@domek)~$

Then I would do `dpkg -S libSM.so.6` and similar for every other library.
Then just take -dev version of every package.

This should be enough. You can always ensure using pbuilder.

regards
fEnIo

-- 
      _      Bartosz Fenski | mailto:fenio@o2.pl | pgp:0x13fefc40 | IRC:fEnIo
    _|_|_     32-050 Skawina - Glowackiego 3/15 - w. malopolskie - Polska
    (0 0)          phone:+48602383548 | Slackware - the weakest link
ooO--(_)--Ooo  http://skawina.eu.org | JID:fenio@jabber.org | RLU:172001

Attachment: signature.asc
Description: Digital signature


Reply to: