RPM

Comment 2 for bug 1219067

Revision history for this message
Tim Mooney (tim-mooney) wrote :

So I'm taking the recommended approach of ifdef'ing out the code that depends on the gcc-array initializer ( ... ), using

#if __GNUC__

#endif

around any code that uses the ... array-initialization extension. This has resulted in me having to ifdef out quite a bit of code from rpmio/set.c, including

  char_to_num
  decode_base62 (it uses char_to_num)
  word_to_num
  decode_base62_golomb (it uses char_to_num and word_to_num)
  decode_set (it uses decode_base62 and decode_base62_golomb)
  cache_decode_set (it uses decode_set)
  test_set (it uses decode_set)

and, problematically,

  rpmsetCmp (it uses cache_decode_set and decode_set)

That becomes a problem, because rpmds.c from lib/librpm needs rpmsetCmp.

At this point I'm stuck. I'm not certain what could be done to replace the call to rpmsetCmp from rpmds.c