OpenSSH-3.1p1 AIX packaging bug [patch]
Darren Tucker
dtucker at zip.com.au
Fri Mar 8 10:44:18 EST 2002
Hello,
The change in release number broke some some assumptions in
buildbff.sh:
* SSH_VERSION was always on the last line of version.h
* The OpenSSH version number would give a valid installp version (which
must have four parts).
Thanks to Mandar Mirashi for pointing this out.
Anyone affected can try the following patch which works for me and
hopefully will behave sanely in future.
-Daz.
diff -c -r openssh-3.1p1/contrib/aix/buildbff.sh openssh-3.1p1-aix/contrib/aix/buildbff.sh
*** openssh-3.1p1/contrib/aix/buildbff.sh Tue Mar 5 13:38:37 2002
--- openssh-3.1p1-aix/contrib/aix/buildbff.sh Fri Mar 8 09:08:03 2002
***************
*** 15,23 ****
PATH=$PATH:`pwd` # set path for external tools
export PATH
! ## Extract common info requires for the 'info' part of the package.
! VERSION=`tail -1 ../../version.h | sed -e 's/.*_\([0-9]\)/\1/g' | sed 's/\"$//'`
! BFFVERSION=`echo $VERSION | sed 's/p/./g'`
echo "Building BFF for $PKGNAME $VERSION (package version $BFFVERSION)"
PKGDIR=package
--- 15,34 ----
PATH=$PATH:`pwd` # set path for external tools
export PATH
! #
! # Extract common info requires for the 'info' part of the package.
! # AIX requires 4-part version numbers
! #
! VERSION=`grep SSH_VERSION ../../version.h | sed -e 's/.*_\([0-9]\)/\1/g' | sed 's/\"$//'`
! MAJOR=`echo $VERSION | cut -f 1 -d p | cut -f 1 -d .`
! MINOR=`echo $VERSION | cut -f 1 -d p | cut -f 2 -d .`
! PATCH=`echo $VERSION | cut -f 1 -d p | cut -f 3 -d .`
! PORTABLE=`echo $VERSION | cut -f 2 -d p`
! if [ "$PATCH" = "" ]
! then
! PATCH=0
! fi
! BFFVERSION=`printf "%d.%d.%d.%d" $MAJOR $MINOR $PATCH $PORTABLE`
echo "Building BFF for $PKGNAME $VERSION (package version $BFFVERSION)"
PKGDIR=package
More information about the openssh-unix-dev
mailing list