On Fri, Aug 02, 2002 at 05:45:29PM +1000, [EMAIL PROTECTED] wrote: > Hi, > I just would like to find out if Redhat linux professional 7.3 include Korn > shell? Don't know, but you can get ksh93 from the Polish Linux Distribution (PLD). See rpmfind.net. In order to build it, you will need to understand how to modify and rebuild an rpm. Set up your own build tree, say under your home directory (untested):
TOPDIR=$HOME/rpm # pick where you'd like it mkdir $TOPDIR cd $TOPDIR mkdir -p BUILD SOURCES SPECS SRPMS RPMS/{athlon,i386,i486,i586,i686,noarch} echo "%_topdir $TOPDIR" > $HOME/.rpmmacros [Why do we need to do this? Because you should avoid building any software as root. Consider the recent OpenSSH trojan. Alternatively, you could change the ownership/permissions on the standard tree at /usr/src/redhat. Before I figured out how to use rpmmacros I used to just chmod a+trwx /usr/src/redhat/{BUILD,SOURCES,SPECS,SRPMS,RPMS/*} but this is a bad idea on a multiuser machine.] Grab the source RPM (.src.rpm) and install it: rpm -ivh ksh93-*.src.rpm This should deposit the source and patches in $TOPDIR/SOURCES and the spec file in $TOPDIR/SPECS Then patch the spec file using the attached patch, or do it by hand: cd $TOPDIR/SPECS patch < ksh93.spec.patch Now build the package: rpmbuild -ba ksh93.spec The result should will end up in $TOPDIR/RPMS/i386. Regards, Bill Rugolsky
--- ksh93.spec.orig Thu Jun 21 14:28:04 2001 +++ ksh93.spec Fri Aug 2 17:42:44 2002 @@ -3,7 +3,7 @@ Summary(pl): Oryginalny shell Korna z AT&T Name: ksh93 Version: 1.1 -Release: 3 +Release: 3rh License: AT&T Open Source Group: Applications/Shells Group(de): Applikationen/Shells @@ -15,10 +15,7 @@ Patch1: %{name}-echo-e.patch Patch2: %{name}-login.patch URL: http://www.kornshell.com/ -%if %{!?_without_static:1}%{?_without_static:0} -BuildRequires: glibc-static -%endif -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) %description KSH-93 is the most recent version of the KornShell Language described @@ -60,7 +57,7 @@ a significant loss in performance. In addition, "sh" scripts can be run on KSH-93 without modification. -This packege contains staticly linked version of ksh93. +This package contains staticly linked version of ksh93. %description static -l pl KSH-93 jest najświeższą wersją języka KornShell opisanego przez Morrisa @@ -81,7 +78,7 @@ # at some moment build stops using CCFLAGS - fix it: (cd src/cmd/nmake -sed -e 's@CC_OPTIMIZE=\$optimize@CC_OPTIMIZE="%rpmcflags"@' make.probe > make.probe.n +sed -e 's@CC_OPTIMIZE=\$optimize@CC_OPTIMIZE="%optflags"@' make.probe > make.probe.n mv -f make.probe.n make.probe ) @@ -89,9 +86,9 @@ LC_ALL=POSIX; export LC_ALL # Yes this sucks, but that's the way (I'm too lazy to fix this stuff) -CCFLAGS="%rpmcflags" LD="`pwd`/ldhack.sh" ./bin/package make ksh93 || : -CCFLAGS="%rpmcflags" LD="`pwd`/ldhack.sh" ./bin/package make ksh93 || : -CCFLAGS="%rpmcflags" LD="`pwd`/ldhack.sh" ./bin/package make ksh93 +CCFLAGS="%optflags" LD="`pwd`/ldhack.sh" ./bin/package make ksh93 || : +CCFLAGS="%optflags" LD="`pwd`/ldhack.sh" ./bin/package make ksh93 || : +CCFLAGS="%optflags" LD="`pwd`/ldhack.sh" ./bin/package make ksh93 cd arch/*/src/cmd/ksh93 %{__cc} -o ksh93 pmain.o -L../../../lib -lksh \