Ralf,

I see what you mean. Many simple packages have no "Provides" directives in
their spec files and yet they work fine with openpkg-tools. Hmmm....

I can't quite completely reconstruct events at this point (I did this
several weeks ago), but as I recall, I was using openpkg-tools to create an
index and then build a script. On one occasion when I did this, the "openpkg
build" failed with one of those frood can't be found messages, in this case
perl-dbi/DBD::ODBC (or freetds) required unixodbc but "openpkg build" did
not seem to be able to find it. So I added a "Provides: unixodbc" directive
to the unixodbc spec file, reran "openpkg index" and "openpkg build", and
the problem went away.

The commands I used were:
openpkg index -r "PSR/Source" -o 00INDEX.rdf -i [my source rpm directory]
openpkg build -R "[prefix]/bin/openpkg rpm" -r [my source rpm directory] -A
>[build-script]

I know it doesn't make much sense, but I don't have time right now to
reproduce the problem, so maybe we need to wait until it happens again.

Thanks for your help.

Dennis

P.S. "openpkg rpm -qi" only reports what is explicitly provided by a package
(i.e., via "Provides" directives). It does not report the implicit "provide
self" that you mention that all packages have.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ralf S. 
> Engelschall
> Sent: Thursday, September 16, 2004 8:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Dependency problem with unixodbc
> 
> 
> On Wed, Sep 15, 2004, Dennis McRitchie wrote:
> 
> > The spec file in unixodbc-2.2.9-2.1.0.src.rpm lacks a "Provides: 
> > unixodbc" directive. This is required by perl-dbi when 
> > with_dbd_odbc=yes and by freetds.
> >
> > I have uploaded a modified spec file with this directive added.
> 
> This cannot be. An RPM package "foo" always implicitly does a 
> "Provides: foo". So, adding a "Provides: unixodbc" to 
> unixodbc.spec is redundant AFAIK. Your problem has to be 
> something else. Can you recheck this issue? You can see what 
> a package provides with "rpm -qi" or "rpm -qpi".
> 
>                                        Ralf S. Engelschall
>                                        [EMAIL PROTECTED]
>                                        www.engelschall.com
> 
> ______________________________________________________________________
> The OpenPKG Project                                    www.openpkg.org
> Developer Communication List                   [EMAIL PROTECTED]
> 

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to