openpkg/buildquick.sh

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 253
27f2b2f863ff
child 441
96a355979688
permissions
-rw-r--r--

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 #! /bin/sh
     3 #
     4 # Build a new bootstrap package,
     5 # producing openpkg-<date>-<date>.src.sh
     6 #
     7 TOPDIR=openpkg
     8 TOPUSE=openpkg
     9 BASEID=900
    10 time ./openpkg.boot -bs --prefix=/$TOPDIR \
    11                     --tag=$TOPDIR --user=$TOPUSE --group=$TOPUSE \
    12                     --muid=${BASEID}1 --ruid=${BASEID}2 --nuid=${BASEID}3 \
    13                     --mgid=${BASEID}1 --rgid=${BASEID}2 --ngid=${BASEID}3 \
    14                     --use_tar=/$TOPDIR/bin/tar --use_make=/$TOPDIR/bin/make \
    15                     --use_cc=/$TOPDIR/bin/cc --use_ar=/$TOPDIR/bin/ar \
    16                     --use_ld=/$TOPDIR/bin/ld --use_as=/$TOPDIR/bin/as \
    17                     --use_strip=/$TOPDIR/bin/strip \
    18                     2>&1 | tee buildlog.txt

mercurial