On Thu, Nov 02, 2006, Simon J Mudd wrote: > To followup my own post: > > Simon J Mudd <[EMAIL PROTECTED]> writes: > > > Well it should be easy enough tomorrow for me to hack shtool to use > > bash as the shell and at least see if that allows the build to > > complete. > > Changing the installed openpkg shtool shell manually to > $prefix/lib/openpkg/bash does not fix the problem. > > I _think_ it is because the real problem is that the /bin/sh invoked > from the %prep part of the python build is having a problem converting > the glob into a parameter list to pass to shtool. > > This appears to be the line causing the problem. > > %{l_shtool} subst -q \ > -e 's;\+ *sys\.version\[:3\];;g' \ > -e 's;\+ *get_python_version();;g' \ > Lib/*.py Lib/*/*.py Lib/*/*/*.py > > Should it be possible to split this into 3 invocations for each of the > globs in the last line? > > Ralf, if you are following this thread, have you not come across > issues similar to this before? (native /bin/sh limitations compared to > Linux's /bin/sh which is normally /bin/bash?)
Your problem seems to be more that AIX' shell command line buffer is not large enough for the glob. The usual attempt to solve such an issue is by rewriting the above via xargs(1): find Lib -name "*.py" -print |\ xargs %{l_shtool} subst -q \ -e 's;\+ *sys\.version\[:3\];;g' \ -e 's;\+ *get_python_version();;g' Please try this and if this works we can apply this to the package. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org