RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [Rpm-devel] headerSprintf howto

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 14 Dec 2007 - 19:11:26 CET
Message-Id: <947FBEE8-2914-48D3-884C-9F30720D0E94@mac.com>

On Dec 14, 2007, at 12:51 PM, Vento Neicapelli wrote:

>
> Dear 73 de Jeff,
>
> Thank you very much for your answer and your advices: I hope in  
> your example....Unfortunately I cannot use rpm 5.0 in my project I  
> must use 4.4.2.x.
>

Then the correct list to ask questions about rpm-4.4.2.x is
	<rpm-maint@lists.dulug.duke.edu>

Apologies for the mis-direction.

>
> >Hmmm, you can go through the hdrVec vector, but headerSprintf()  
> instead is recommended.
> >Both rpm-4.4.2.2 and rpm-5.0 have nuked hdrVec AFAIK.
>
> How can I use headerSprintf() without passing through hdrVec (in  
> 4.4.2.1)? headerSprintf() is declared in hdrinline.h but as  
> static...or I'm wrong...?
>

Yes, static inline C code prsent in hdrinline.h. What is likely
unexpected and surprising to you is finding a subtoutine, not
a data definition, in the hdrinline.h subroutine.

> .....omissis....
>
> >
> >Lemme hack up a "tqa.c" program that uses --queryformat and  
> headerSprintf()
> >as in rpm-5.0. I'll post to < rpm-devel@rpm5.org> in a couple of  
> hours ...
>

I'll leave it to Panu to write the rpm-4.4.2.x example illustrating
how to use headerSprintf() then.

> >hth
>
> >73 de Jeff
>
> Thank for your help,
>

np

73 de Jeff
Received on Fri Dec 14 19:12:29 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.