The build of pdksh-5.2.14-2.2.0.src.rpm fails on SuSE 9.2 Professional
because of a syntax error in the siglist.sh script's rather complex trap
statement.  My CBE (Crude But Effective) fix is to change the #!/bin/sh
line in the script to use the OpenPKG version of bash.

The attached patch is against the Release 2.2 pdksh.spec file.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``Never chastise a Windows user...just smile at them kindly as you would a
disadvantaged child.'' WBM
--- pdksh.spec.orig     2004-11-08 13:23:23.571883304 -0800
+++ pdksh.spec  2004-11-08 13:27:16.931407264 -0800
@@ -34,7 +34,7 @@
 Group:        Shell
 License:      unknown
 Version:      5.2.14
-Release:      2.2.0
+Release:      20041108
 
 #   list of sources
 Source0:      ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-%{version}.tar.gz
@@ -68,6 +68,10 @@
     %setup -q
 
 %build
+       %{l_shtool} subst -s \
+               -e '1s,/bin/sh,%{l_prefix}/lib/openpkg/bash,' \
+               siglist.sh
+
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
     ./configure \

Reply via email to