RPM Community Forums

Mailing List Message of <popt-devel>

Re: POPT 2.0: version stamping in includes

From: Michael Jennings <mej@kainx.org>
Date: Fri 18 Jun 2010 - 19:45:28 CEST
Message-ID: <20100618174528.GC31998@kainx.org>
On Friday, 18 June 2010, at 10:52:22 (-0400),
Jeff Johnson wrote:

> (aside)
> Instead of a #define version, I typically us a "de facto" check
> for POPT in compatibilities. E.g. in order to use POPT 2.0
> in rpm-5.3.2 I'll likely do
> 		... this is POPT 2.0 ...
> 	#else
> 		... this is NOT POPT 2.0 ...
> 	#endif

I've always preferred this technique myself.  Versioning macros and
such often fail to account for things like SVN snapshots or human
error.  Always better to look for what you're actually trying to


Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@kainx.org>
Linux Server/Cluster Admin, LBL.gov       Author, Eterm (www.eterm.org)
 "A little learning is a dangerous thing;  Drink deep, or taste not
  the Pierian spring:  There shallow draughts intoxicate the brain,
  And drinking largely sobers us again."
                            -- Alexander Pope, "An Essay on Criticism"
Received on Fri Jun 18 19:53:20 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.