Wed, 01 Aug 2012 23:49:03 +0200
Hack rpmconstant header file to allow targets to build, because...
Solaris studio cc(1) fails to build targets in rpmconstant with errors:
'undefined symbol first referenced in file constant.o' regarding symbols:
rpmdsInit, rpmdsNext, rpmdsTagN, rpmHeaderFormats, hdrVec, rpmTagTable,
rpmdsSearch, rpmdsResult, rpmTags, rpmdsIx, rpmdsDNEVR, rpmdsSetResult.
It seems that these symbols are not used by RPM in any way, and thus
the build configuration can succeed without including the nasty headers.
1 Index: IPC-ShareLite-0.17/Makefile.PL
2 --- IPC-ShareLite-0.17/Makefile.PL.orig 2011-06-19 23:39:44.000000000 +0200
3 +++ IPC-ShareLite-0.17/Makefile.PL 2011-06-19 23:52:49.000000000 +0200
4 @@ -55,11 +55,10 @@
6 my @exclude = qw( Devel::CheckLib IO::CaptureOutput );
7 my $pad = ' ' x 4;
8 - die "Can't parse Makefile fragment"
9 - unless $lines[-2] =~ /^([^"']*(["'])).*?(\2[^"']*)$/;
10 splice @lines, -1, 0, map { "$1$_$3" } (
11 'no_index:', "${pad}package:", map { "${pad}${pad}- $_" } @exclude
12 );
14 return join "\n", @lines;
15 }
16 +