Hi,
I am attaching the new set of patches. Once these are found to be
acceptable, I will rework the ARC proposal.
1. Expect version is 5.43
2. The demo scripts & their man pages get installed into /usr/demo/expect
3. Expect picks tcl/tk sources from ${SRC}. Which means tcl/tk source
tarballs should have been untarred (this pre-requisite is met when
they are built before expect)
4. /usr/lib/libexpect5.43.so & /usr/lib/expect5.43/libexpect5.43.a are
the expect libs that are installed. (I believe some apps might need a
static lib as well. Among the 2 copies in the earlier setup, I have
maintained on of the copies)
Other details are in the attached patches (all level 0 patches).
Steps to follow are as below:
==============================================================================
Patching details
=======================
$ pwd
/ws/sfwnv
$ bzcat ../sfw-src-b74-20070917.tar.bz2 |tar -xf -
$ mkdir usr/src/cmd/expect
$ mkdir usr/src/pkgdefs/SUNWexpect
#Apply the patch to make expect part of SFW build and Package creation Makefiles
$ gpatch -p0 < patches/expect-01-integrate-build-and-pkg-creation.diff
patching file usr/src/Targetdirs
patching file usr/src/cmd/Makefile
patching file usr/src/pkgdefs/Makefile
#Copy expect sources and package definitions from CCD
#Expect is to have the package name SUNWexpect
$ cp -r /ws/CCD/usr/src/cmd/expect usr/src/cmd/
$ cp -r /ws/CCD/usr/src/pkgdefs/SFWexpct usr/src/pkgdefs/SUNWexpect
#Replace expect-5.39 sources with expect-5.43 sources &
$ cp ../Downloads/expect-5.43.0.tar.gz usr/src/cmd/expect/expect-5.43.tar.gz
$ rm usr/src/cmd/expect/expect-5.39.tar.gz
#Remove the patch that is no longer required.
#This patch modified the examples scripts to have the right expect
path. Now expect is in /usr/bin
$ rm usr/src/cmd/expect/fixline1.patch
#Apply the patch to make expect build clean within SFW
$ gpatch -p0 < patches/expect-02-buildchanges.diff
patching file usr/src/cmd/expect/Makefile.sfw
patching file usr/src/cmd/expect/install-sfw
#Apply the patch to get the proper package definition files
$ gpatch -p0 < patches/expect-03-package-definitions.diff
patching file usr/src/pkgdefs/SUNWexpect/copyright
patching file usr/src/pkgdefs/SUNWexpect/pkginfo.tmpl
patching file usr/src/pkgdefs/SUNWexpect/prototype_com
patching file usr/src/pkgdefs/SUNWexpect/prototype_i386
patching file usr/src/pkgdefs/SUNWexpect/prototype_sparc
Build the expect sources
=======================================
$ cd $SRC ; make setup
$ cd $SRC/lib/tcl ; make -f Makefile.sfw install
$ cd $SRC/lib/tk ; make -f Makefile.sfw install
$ cd $SRC/cmd/expect ; make -f Makefile.sfw install
$ cd $SRC/pkgdefs ; make all
$ cd SUNWexpect ; make install
Install the package
=======================================
# pkgadd -d . SUNWexpect
Processing package instance <SUNWexpect> from
</ws/sfwnv/packages/i386/nightly-nd>
expect - Programmed dialogue with other interactive programs(i386)
11.11.0,REV=2007.09.30.00.03
Written by: Don Libes, NIST, 3/23/93
Design and implementation of this program was paid for by U.S. tax
dollars. Therefore it is public domain. However, the author and NIST
would appreciate credit if this program or parts of it are used.
Any further changes to the copyright text will be done after the
clearance from legal review
Using </> as the package base directory.
## Processing package information.
## Processing system information.
8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing expect - Programmed dialogue with other interactive
programs as <SUNWexpect>
## Installing part 1 of 1.
/usr/bin/expect
/usr/bin/expectk
/usr/demo/expect/autoexpect
/usr/demo/expect/autopasswd
/usr/demo/expect/cryptdir
/usr/demo/expect/decryptdir
/usr/demo/expect/dislocate
/usr/demo/expect/ftp-rfc
/usr/demo/expect/kibitz
/usr/demo/expect/lpunlock
/usr/demo/expect/man/man1/autoexpect.1
/usr/demo/expect/man/man1/cryptdir.1
/usr/demo/expect/man/man1/decryptdir.1
/usr/demo/expect/man/man1/dislocate.1
/usr/demo/expect/man/man1/kibitz.1
/usr/demo/expect/man/man1/mkpasswd.1
/usr/demo/expect/man/man1/multixterm.1
/usr/demo/expect/man/man1/passmass.1
/usr/demo/expect/man/man1/tknewsbiff.1
/usr/demo/expect/man/man1/unbuffer.1
/usr/demo/expect/man/man1/xkibitz.1
/usr/demo/expect/mkpasswd
/usr/demo/expect/multixterm
/usr/demo/expect/passmass
/usr/demo/expect/rftp
/usr/demo/expect/rlogin-cwd
/usr/demo/expect/timed-read
/usr/demo/expect/timed-run
/usr/demo/expect/tknewsbiff
/usr/demo/expect/tkpasswd
/usr/demo/expect/unbuffer
/usr/demo/expect/weather
/usr/demo/expect/xkibitz
/usr/demo/expect/xpstat
/usr/include/expect.h
/usr/include/expect_comm.h
/usr/include/expect_tcl.h
/usr/include/tcldbg.h
/usr/lib/expect5.43/libexpect5.43.a
/usr/lib/expect5.43/pkgIndex.tcl
/usr/lib/libexpect5.43.so
/usr/share/man/man1/expect.1
/usr/share/man/man1/expectk.1
/usr/share/man/man3/libexpect.3
[ verifying class <none> ]
Installation of <SUNWexpect> was successful.
==============================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expect-5.43-into-sfw-patches.tar
Type: application/x-tar
Size: 25088 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/sfwnv-discuss/attachments/20070930/956e7e3c/attachment.tar>