[CentOS] Is there a way to _remove_ dependencies from an RPM built from source?

Sun Feb 26 20:38:27 UTC 2012
Antonio da Silva Martins Junior <asmartins at uem.br>

----- "Michael Lampe" <lampe at gcsc.uni-frankfurt.de> escreveu:

> De: "Michael Lampe" <lampe at gcsc.uni-frankfurt.de>
> Para: "CentOS mailing list" <centos at centos.org>
> Enviadas: Domingo, 26 de Fevereiro de 2012 17:29:05 (GMT-0300) Auto-Detected
> Assunto: Re: [CentOS] Is there a way to _remove_ dependencies from an RPM built from source?
> Frank Cox wrote:
> >> Gimme a trick: How to unregister an implicit but formally
> > unavailable runtime dependency in a spec file?
> >
> > I've given you the solution twice.  Here is a more detailed
> > description of the
> > exact lines that you need to edit in the spec file:
> >
> > http://www.rpm.org/max-rpm/s1-rpm-depend-manual-dependencies.html
> We are talking about different things:
> My stuff is linked against 'libfoo'. When the package is finally
> build, it records this depedency because of that. Now this package requires 
> libfoo to be installed. It's there but not registered with rpm!
> That's what I want to get rid of. Something like 'Unrequire' perhaps.
> Or another trick: IIRC, at some time taking the x bit from libs achieved
> that, but it's not working anymore since quite some time.


   Have you tried to make a fake src.rpm package that "provides" this 'libfoo' and
install it ? It didn't need to install anything just tell to the rpm library that it 
"provides" 'libfoo'.

    Another way is to just force the install, but, doing it you will have some problems
during updates.

          Antonio Jr.

| Antonio S. Martins Jr. - Support Analyst | "Only The Shadow Knows     |
| Universidade Estadual de Maringá - Brasil|   what evil lurks in the   |
| NPD - Núcleo de Processamento de Dados   |       Heart of Men!"       |
| E-Mail: asmartins at uem.br / shadow at uem.br | !!! Linux User: 52392 !!!  |
     "Real Programmers don’t need comments — the code is obvious."

Esta mensagem foi verificada pelo sistema de antivirus e
 acredita-se estar livre de perigo.