Bug 140 - Solaris 8 cannot create pkg in OpenSSH 3.1p1
Summary: Solaris 8 cannot create pkg in OpenSSH 3.1p1
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: UltraSPARC Solaris
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-08 04:53 AEDT by Don Cranford
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don Cranford 2002-03-08 04:53:21 AEDT
Hello,
I have just successfully compiled OpenSSH 3.1p1 and tried to create the Solaris 
pkg from contrib/solaris/buildpkg.sh, all is fine, seeing as this machine had 
OpenSSH 3.0.2p1 installed. However when running the buildpkg.sh script I error 
out with this

Building pkginfo file...
Building prototype file...
Building package..
## Building pkgmap from package prototype file.
## Processing pkginfo file.
pkgmk: ERROR: parameter <VERSION> cannot be null
## Packaging was not successful.
pkgtrans: ERROR: unable to complete package transfer
    - no packages were selected from </tmp/openssh-3.1p1/contrib/solaris>
Comment 1 Don Cranford 2002-03-08 08:33:30 AEDT
Ok found the bug,

In $openSSH/contrib/solaris/buildpkg.sh
line 13:
VERSION=`tail -1 ../../version.h | sed -e 's/.*_\([0-9]\)/\1/g' | sed 's/\"$//'`
needs to change to
line 13:
VERSION=`tail -2 ../../version.h | sed -e 's/.*_\([0-9]\)/\1/g' | sed 's/\"$//'`

This fixes the pkgcreation problem on Solaris 8
Comment 2 Kevin Steves 2002-03-31 06:02:06 AEST
blank like at end of version.h.  fixed.
this script should grep for SSH_VERSION.
Comment 3 Ben Lindstrom 2002-04-06 07:30:07 AEST
Fixed in CVS tree
Comment 4 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED