RPM Community Forums

Mailing List Message of <rpm-devel>

Re: missing fixes for QNX in 5.0.x branch

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 07 Feb 2008 - 15:41:08 CET
Message-Id: <362A19B5-4391-4C9A-BC6E-5486F5FFE03D@mac.com>

On Feb 7, 2008, at 9:12 AM, Peter Kalbus wrote:

> I just tried to get rpm-5.0.2 compiled for QNX. But there are some  
> fixes from the main branch missing:
>
>    http://rpm5.org/cvs/chngview?cn=9423    (makedev 3 parameter)

Added.

>    http://rpm5.org/cvs/chngview?cn=9465    (u_int32_t / uint32_t)

(aside) It's just a steenkin' cast, that ultimately does not matter,  
_BUT_ I have
to fiddle these casts when checking rpm sources using splint, and I'd
rather not get into a endlessly tedious repair loop ...

Berkeley DB db.h has this:

/* Key/data structure -- a Data-Base Thang. */
struct __db_dbt {
         void     *data;                 /* Key/data */
         u_int32_t size;                 /* key/data length */

         u_int32_t ulen;                 /* RO: length of user  
buffer. */
         u_int32_t dlen;                 /* RO: get/put record  
length. */
         u_int32_t doff;                 /* RO: get/put record  
offset. */

	u_int32_t size;

on linux/i386.

What is the data type in db.h on QNX? if "u_int32_t" is being used in  
db.h,
then changing the cast is not the right fix in rpmdb.c.

73 de Jeff
Received on Thu Feb 7 15:41:36 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.