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.
openpkg/openpkg.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/openpkg/openpkg.spec Wed Aug 01 23:42:52 2012 +0200 1.2 +++ b/openpkg/openpkg.spec Wed Aug 01 23:49:03 2012 +0200 1.3 @@ -1193,6 +1193,11 @@ 1.4 ( br=`pwd` 1.5 cd rpm-%{V_rpm_major}.%{V_rpm_minor} 1.6 1.7 + # remove unused and undefined methods 1.8 + sh $shtool subst \ 1.9 + -e 's;^\(#include *<[^>][^>]*>\);/*\1*/;g' \ 1.10 + rpmconstant/rpmconstant.h 1.11 + 1.12 # provide nonstandard constructs 1.13 cat > nonstandard.h <<EOF 1.14 /* MSvB: define missing nonstandard GCC builtin extensions */