[opensuse-arm] AArch64 shell problem
Hi, our current bootstrap rootfs has a shell (/bin/sh) which does not understand the 'function' keyword. The problem is that some SPEC files uses it. A workaround is to remove this keyword but it would be better if our shell understand it. Our /bin/sh is a busybox shell which seems to miss some features. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 01/02/2013 12:17, Guillaume Gardet a écrit :
Hi,
our current bootstrap rootfs has a shell (/bin/sh) which does not understand the 'function' keyword. The problem is that some SPEC files uses it.
A workaround is to remove this keyword but it would be better if our shell understand it.
Our /bin/sh is a busybox shell which seems to miss some features.
We also lack pushd popd commands which are widely used in spec files. So, we have to switch to bash as shell instead of sh. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 01/02/2013 13:00, Guillaume Gardet a écrit :
Le 01/02/2013 12:17, Guillaume Gardet a écrit :
Hi,
our current bootstrap rootfs has a shell (/bin/sh) which does not understand the 'function' keyword. The problem is that some SPEC files uses it.
A workaround is to remove this keyword but it would be better if our shell understand it.
Our /bin/sh is a busybox shell which seems to miss some features.
We also lack pushd popd commands which are widely used in spec files. So, we have to switch to bash as shell instead of sh.
export SHELL=/bin/bash, run bash, init=/bin/bash, nothing fix rpmbuild. It seems rpmbuild use /bin/sh hardcoded. A temp workaround is to symlink /bin/sh to /bin/bash: mv /bin/sh /bin/sh.busybox ln -s /bin/bash /bin/sh I pushed this workaround to git repo so that we have a working rootfs to build RPM. Feel free to revert it if you have a better fix. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (1)
-
Guillaume Gardet