RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Size limit on tag values?

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 26 Dec 2007 - 23:42:27 CET
Message-Id: <C46DEBCC-5EC2-4863-A81B-154F105A135E@mac.com>

On Dec 26, 2007, at 2:59 PM, Ralf S. Engelschall wrote:

> On Thu, Dec 13, 2007, Jeff Johnson wrote:
>
>> On Dec 13, 2007, at 2:34 PM, Ralf S. Engelschall wrote:
>>
>> [...]
>>> BUT: one question remains which I was not easily able to figure  
>>> out from
>>> the sources: WHAT IS THE SIZE LIMIT OF TAGS IN RPM 5?
>>
>> Hard to say absolutely, but the previously imposed tag data store
>> limit has been changed from 32Mb to 1Gb AFAIK. There are other limits
>> that constrain the "WHAT IS THE SIZE LIMIT OF TAGS IN RPM 5?"
>> such as the total size of the data store, which is (afaik) 2GB  
>> because
>> of the necessity to keep the offset a int32_t, the sign change is  
>> used
>> as a immutable region marker. The additional constraints prevent  
>> giving
>> a precise answer.
>> [...]
>
> I finally poked around in the code a lot deeper and IMHO the precise
> answer is: 10*BUFSIZE which on most platforms mean just 10KB, because
> build/rpmspec.h shows a "char lbuf[10*BUFSIZ];" which internally is
> used for the macro expansion on lines during the .spec file  
> parsing. If
> I'm not completely wrong here, this unfortuntely means we can entirely
> forget putting rather large amounts of data into a tag via RPM Lua  
> macro
> expansions (or generation via Lua print())... :-(
>

So do you wish to raise the size of the parse buffer to, say, 200K?

Anything else is going to hard to fit into rpm-5.0 ...

73 de Jeff
Received on Wed Dec 26 23:43:05 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.