Re: [Cooker] find_requires script don't take to statically linked obj

2003-06-06 Thread R.I.P. Deaddog
On 2003-06-06(Fri) 00:20:13 +0200, Stefan van der Eijk wrote:
> It would be perfect if a -static-devel packages would Require it's 
> -devel counterpart (dependency from the .spec file) and get the rest of 
> the info from the files in the package, like the way the current -devel 
> dependencies work. Is this assumption correct?

Any guru knows?


> But how?
> 
> do the same as with the .so dependencies, but then add a Provides: .a" 
> and "Requires: .a" dependencies?

Probably won't work as expected. Quite some packages only have shared
libraries installed, but not static libraries.


> With the numbers as they are above, quite some -devel packages will need 
> to be split up into -static-devel packages, or the ".a" dependencies 
> will just be added to the -devel packages. Why not move the static-devel 
> packages back into the -devel packages?

I always wondered. The main intention of splitting .a files is saving
space; but actually how much space is saved by not installing .a files?


> - quite some packages containing plugins (gnomegames comes to mind) need 
> to be fixed --> .so's need to be built with -avoid-version?? Of course 
> fixes need to be communicated back to the original projects;

Once I have encountered .la files as modules; when I removed those .la
files, the program prints 'foobar.la is missing'. (my memory is vague now)


> - I'd like to see a comprehensive rpm package dependency (and / or 
> naming) standard be made which is distribution independant. Using 
> dependency information based on capabilities is a step forward. This way 
> we can become less dependany on the actual name a package has. I've 
> proposed the .so stuff in redhat's rpm-list, no response from any rpm 
> developers there. If this doesn't get pushed beyond mdk, it's only going 
> to make the "rpm hell" worse, while it _could_ help solve it;

Probably dependency is never an important subject in all distro; even in
Debian, many dependencies are hand-edited.

Abel


> - the find-provides and find-requires in rpm-4.2-7mdk need to be updated 
> to the latest version. The one in -7mdk doesn't pick up the dependencies 
> in the rpm-devel package. Luckily no -devel package I know of Requires 
> rpm-devel, which makes it less urgent.
> 
> regards,
> 
> Stefan



-- 
Abel Cheung
Linux counter #256983   | http://counter.li.org
GPG Key: (0xC67186FF)   | http://deaddog.org/gpg.asc
Key fingerprint: 671C C7AE EFB5 110C D6D1  41EE 4152 E1F1 C671 86FF


pgp0.pgp
Description: PGP signature


Re: [Cooker] find_requires script don't take to statically linked obj

2003-06-06 Thread R.I.P. Deaddog
On 2003-06-05(Thu) 09:17:13 +0200, Götz Waschk wrote:
> Am Donnerstag,  5. Juni 2003, 03:58:38 Uhr MET, schrieb R.I.P. Deaddog:
> > On 2003-06-03(Tue) 10:58:42 +0200, Götz Waschk wrote:
> > > it would be nice if the find_requires script would parse the
> > > dependancies of static libraries, but how to do this? It's easy to
> > > find out the dependant libs of shared libraries, but AFAIK shared
> > > libraries only contain information about which symbols are unresolved,
> > > but no information on where to get that symbols. Has anyone thought

Yes, I discussed with Stefan about static lib dependency too, and don't
have any conclusion about it. Here are the possible difficulties:

For any missing symbol in one static lib, we can possibly find more than
one matches in other static libs. Besides, searching through ALL static
libs in one machine to find matches is very time consuming, and
(unconfirmed) possibly give different results in different machines.

This is not unsolvable, for example, by recording all missing symbols of
static libs somewhere, and grep the lists of symbols instead.

I have a conjecture: dependency of static libs must be a subset of
dependency of dynamic libs. Will it be simpler if my guess is true?

Abel


> > 
> > Seems you can obtain dependency info via objdump too:
> > 
> > [EMAIL PROTECTED] lib]$ objdump -p /usr/lib/libqtmcop.so.1 | grep NEEDED
> 
> Arrgh, that was a typo, I wanted to write 'AFAIK static libraries only
> contain ...'. 
> -- 
> What difference does it make to the dead, the orphans and the
> homeless, whether the mad destruction is wrought under the name of
> totalitarianism or the holy name of liberty or democracy?
> Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"
> 

-- 
Abel Cheung
Linux counter #256983   | http://counter.li.org
GPG Key: (0xC67186FF)   | http://deaddog.org/gpg.asc
Key fingerprint: 671C C7AE EFB5 110C D6D1  41EE 4152 E1F1 C671 86FF


pgp0.pgp
Description: PGP signature


Re: [Cooker] find_requires script don't take to statically linked obj

2003-06-05 Thread Götz Waschk
Am Donnerstag,  5. Juni 2003, 03:58:38 Uhr MET, schrieb R.I.P. Deaddog:
> On 2003-06-03(Tue) 10:58:42 +0200, Götz Waschk wrote:
> > it would be nice if the find_requires script would parse the
> > dependancies of static libraries, but how to do this? It's easy to
> > find out the dependant libs of shared libraries, but AFAIK shared
> > libraries only contain information about which symbols are unresolved,
> > but no information on where to get that symbols. Has anyone thought
> 
> Seems you can obtain dependency info via objdump too:
> 
> [EMAIL PROTECTED] lib]$ objdump -p /usr/lib/libqtmcop.so.1 | grep NEEDED

Arrgh, that was a typo, I wanted to write 'AFAIK static libraries only
contain ...'. 
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"



Re: [Cooker] find_requires script don't take to statically linked obj

2003-06-05 Thread R.I.P. Deaddog
On 2003-06-03(Tue) 10:58:42 +0200, Götz Waschk wrote:
> it would be nice if the find_requires script would parse the
> dependancies of static libraries, but how to do this? It's easy to
> find out the dependant libs of shared libraries, but AFAIK shared
> libraries only contain information about which symbols are unresolved,
> but no information on where to get that symbols. Has anyone thought

Seems you can obtain dependency info via objdump too:

[EMAIL PROTECTED] lib]$ objdump -p /usr/lib/libqtmcop.so.1 | grep NEEDED
  NEEDED  libmcop.so.1
  NEEDED  libdl.so.2
  NEEDED  libqt-mt.so.3
  NEEDED  libpng.so.3
  NEEDED  libz.so.1
  NEEDED  libXext.so.6
  NEEDED  libX11.so.6
  NEEDED  libSM.so.6
  NEEDED  libICE.so.6
  NEEDED  libpthread.so.0
  NEEDED  libstdc++.so.5
  NEEDED  libm.so.6
  NEEDED  libc.so.6
  NEEDED  libgcc_s.so.1

But objdump -p don't show any dep info about static archives.


> about using the libtool .la files to get the dependant libs? Or maybe
> it would be possible to use the dependany information from the shared
> libraries for static libs, that means if libfoo.so depends on
> libbar.so, does libfoo.a depends on libbar.a? 

I don't know much info about it. 

Abel

> -- 
> What difference does it make to the dead, the orphans and the
> homeless, whether the mad destruction is wrought under the name of
> totalitarianism or the holy name of liberty or democracy?
> Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"
> 

-- 
Abel Cheung
Linux counter #256983   | http://counter.li.org
GPG Key: (0xC67186FF)   | http://deaddog.org/gpg.asc
Key fingerprint: 671C C7AE EFB5 110C D6D1  41EE 4152 E1F1 C671 86FF


pgp0.pgp
Description: PGP signature


Re: [Cooker] find_requires script don't take to statically linked obj

2003-06-03 Thread Götz Waschk
Am Dienstag,  3. Juni 2003, 01:43:20 Uhr MET, schrieb Olivier Thauvin:
> [EMAIL PROTECTED] BUILD]$ urpmi vrb
> Some package requested cannot be installed:
> libvrb0-devel-0.4.0-1mdk.i586 (due to unsatisfied linked, due to unsatisfied 
> statically)
> I just build this, i haven't take care, but this ugly script produce 
> statically linked lib. I am fixing my package about this, but would be nice 
> that find_requires take care to this.

Hi,

it would be nice if the find_requires script would parse the
dependancies of static libraries, but how to do this? It's easy to
find out the dependant libs of shared libraries, but AFAIK shared
libraries only contain information about which symbols are unresolved,
but no information on where to get that symbols. Has anyone thought
about using the libtool .la files to get the dependant libs? Or maybe
it would be possible to use the dependany information from the shared
libraries for static libs, that means if libfoo.so depends on
libbar.so, does libfoo.a depends on libbar.a? 
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"



[Cooker] find_requires script don't take to statically linked obj

2003-06-03 Thread Olivier Thauvin
[EMAIL PROTECTED] BUILD]$ urpmi vrb
Some package requested cannot be installed:
libvrb0-devel-0.4.0-1mdk.i586 (due to unsatisfied linked, due to unsatisfied 
statically)

I just build this, i haven't take care, but this ugly script produce 
statically linked lib. I am fixing my package about this, but would be nice 
that find_requires take care to this.
Somes apps can need static linkage, thinks to rescue apps.

Thanks.
-- 
Linux pour Mac !? Enfin le moyen de transformer
une pomme en véritable ordinateur. - JL.
Olivier Thauvin - http://nanardon.homelinux.org/