Hack rpmconstant header file to allow targets to build, because...

Wed, 01 Aug 2012 23:49:03 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 01 Aug 2012 23:49:03 +0200
changeset 436
f26e9329b115
parent 435
24700f8ed057
child 437
b9d4495f105f

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 */

mercurial