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: build/Makefiles/gmake/targetdirs.mak
2 --- build/Makefiles/gmake/targetdirs.mak.orig 2009-01-07 23:43:14.257973250 +0100
3 +++ build/Makefiles/gmake/targetdirs.mak 2009-01-07 23:43:20.537852206 +0100
4 @@ -80,10 +80,7 @@
6 define createdirs
7 @for d in $@ ; do \
8 - if [ -e $$d -a -f $$d ] ; then \
9 - echo "ERROR: Regular file $$d present, directory instead expected" ; \
10 - exit 1; \
11 - elif [ ! -d $$d ] ; then \
12 + if [ ! -d $$d ] ; then \
13 mkdir -p $$d ; \
14 fi ; \
15 done
16 Index: stlport/stl/config/host.h
17 --- stlport/stl/config/host.h.orig 2009-01-07 23:44:43.751377659 +0100
18 +++ stlport/stl/config/host.h 2009-01-07 23:44:20.070524718 +0100
19 @@ -316,9 +316,7 @@
20 /*
21 #define __SunOS_5_9
22 */
23 -/*
24 #define __SunOS_5_10
25 - */
26 #endif
28 #if defined(__sun)