RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/lib/ formats.c rpm/rpmdb/ pkgio.c rpm/rpmio/ rpmmessage...

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Mon 12 Nov 2007 - 14:29:01 CET
Message-ID: <20071112132901.GA21418@engelschall.com>
On Mon, Nov 12, 2007, Jeff Johnson wrote:

> How are you detecting these?

Well, I build RPM with "devtool standalone" on as much *different*
Unix platforms as possible. The "different" here especially means
that one needs at least the combinations of 32/64 bit architectures,
BSD/Linux/Solaris flavors and GCC/Sun/Intel compilers. If one at least
builds any piece of C code under those max 2x3x3 combinations (or at
least a fair subset of them) one usually always is able to detect such
issues.

Addtionally, I regularily use the commercial FlexeLint tool. This is
not open source (like the "splint" you are using), but IMHO worth the
investment as it is really the best C/C++ linter available on the market
since years. A quick run of this tool very often already sheds some
light on pending code issues.

These particular issues here for instance popped up when I built under
an AMD64 platform where the sizes were actually different. On IA32
platforms the sizes by coincidence matched so you have not seen the
mismatches yourself, Jeff. I guess you are coding mainly under a IA32
Fedora platform, right?

> [...]
> I lack a functional methodology ...

No, I guess you just lack the necessary number of *different*
platforms...
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Mon Nov 12 14:31:24 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.