# HG changeset patch # User Michael Schloh von Bennewitz # Date 1343857743 -7200 # Node ID f26e9329b115957e5b08610db1967a9b00b0075d # Parent 24700f8ed0577f578a59a7ce3231d38414529995 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. diff -r 24700f8ed057 -r f26e9329b115 openpkg/openpkg.spec --- a/openpkg/openpkg.spec Wed Aug 01 23:42:52 2012 +0200 +++ b/openpkg/openpkg.spec Wed Aug 01 23:49:03 2012 +0200 @@ -1193,6 +1193,11 @@ ( br=`pwd` cd rpm-%{V_rpm_major}.%{V_rpm_minor} + # remove unused and undefined methods + sh $shtool subst \ + -e 's;^\(#include *<[^>][^>]*>\);/*\1*/;g' \ + rpmconstant/rpmconstant.h + # provide nonstandard constructs cat > nonstandard.h <