Ralf S. Engelschall wrote:
On Mon, Oct 02, 2006, Doug Summers wrote:
I'm trying to edit the emacs.spec file to make a change to configure.in
for this line (#589):
rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) # current
rs6000-ibm-aix5.* | powerpc-ibm-aix5.* ) # new
I want to add the change under the %prep section:
case "%{l_platform -p}" in
ix86-fedora4 ) %{l_shtool} subst -e 's;/\* \(#define
CANNOT_DUMP\) \*/;\1
1;' src/m/intel386.h ;;
powerpc-aix5.*) ;;
esac
Can you give me some help on the 'subst -e' syntax?
%{l_shtool} subst -e 's;-aix5\.1;-aix5.*;g' configure
should do the trick for you...
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List openpkg-users@openpkg.org
Here's what I added to the %prep section to make emacs build for AIX 5.1
through 5.3 machines:
%patch -p0
case "%{l_platform -p}" in
ix86-fedora4 ) %{l_shtool} subst -e 's;/\* \(#define
CANNOT_DUMP\) \*/;\1 1;' src/m/intel386.h ;;
powerpc-aix5.*) %{l_shtool} subst -e
's;rs6000-ibm-aix5\.1;rs6000-ibm-aix5\.;g' configure ;
%{l_shtool} subst -e 's;powerpc-ibm-aix5\.1;powerpc-ibm-a
ix5\.;g' configure ;;
esac
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List openpkg-users@openpkg.org