Edward Pilatowicz's Weblog

Friday Aug 29, 2008

running filemerge on opensolaris

to continue with the theme of my last post, i recently discovered teamware filemerge doesn't run on opensolaris because of missing X and tool talk components. at first you might might think this is a non-issue because OS/Net has moved away from teamware to hg. but aside from having to deal with older non-hg workspaces, i've discovered that hgsetup(1) (a onbld utility that configures hg for working with OS/Net sources) configures hg to use teamware's filemerge for resolving merge conflicts. (luckily the hg merge command fails gracefully when filemerge fails to run.) a little digging revealed that the problem can be solved by installing the following packages:

    SUNWdtcor SUNWdtdmr SUNWtltk SUNWxwrtl SUNWmfrun
once again, if you have acces to SWAN, you can run the following commands to fix the problem:
    plat=x; [ `uname -p` = sparc ] && plat=s
    ver=`uname -v | sed 's:.*_::'`
    dir=/net/netinstall.eng/export/nv/$plat/$ver/Solaris_11/Product
    pkgadd -d $dir SUNWdtcor SUNWdtdmr SUNWtltk SUNWxwrtl SUNWmfrun
    

Tuesday Aug 26, 2008

building OS/Net on opensolaris

i use my desktop as my primary build machine, so i was a little surprised after upgrading my desktop to opensolaris i could no longer do full ON (aka OS/Net) nightly builds. i discovered that there were two problems. the first is a known bug:

    6733971 Lint targets not POSIX shell (=ksh93) safe in OS/Net
which you can easily workaround by replacing /sbin/sh (which in opensolaris is ksh93) with the old sh from nevada. if you have access to SWAN the following commands, run as root, should fix the problem:
    ver=`uname -v | sed 's:.*_::'`
    plat=`uname -p`
    rm /sbin/sh
    cp -p /net/onnv.eng/export/snapshot/onnv_$ver/proto/root_$plat/sbin/sh /sbin/
    

the second issue i ran into is a problem caused by missing wbem header files and .jar archives. this issue can be worked around by installing the following nevada packages:

    SUNWadmj SUNWwbapi SUNWwbdev SUNWjsnmp SUNWwbcou
once again, if you have acces to SWAN, you can run the following commands to fix the problem:
    plat=x; [ `uname -p` = sparc ] && plat=s
    ver=`uname -v | sed 's:.*_::'`
    dir=/net/netinstall.eng/export/nv/$plat/$ver/Solaris_11/Product
    pkgadd -d $dir SUNWadmj SUNWwbapi SUNWwbdev SUNWjsnmp SUNWwbcou
    

Calendar

Feeds

Search

Links

Navigation

Referrers