Accepting request 128902 from shells

- Fix qemu-user build by not evaluating ps output that doesn't reflect
  what the virtual processes see (forwarded request 128876 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/128902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ksh?expand=0&rev=80
This commit is contained in:
Stephan Kulow 2012-07-30 18:31:28 +00:00 committed by Git OBS Bridge
commit 2058936b2a
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 13 12:47:35 UTC 2012 - agraf@suse.com
- Fix qemu-user build by not evaluating ps output that doesn't reflect
what the virtual processes see
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 6 12:16:52 UTC 2012 - werner@suse.de Wed Jun 6 12:16:52 UTC 2012 - werner@suse.de

View File

@ -207,6 +207,12 @@ fi
((IGNORED & SIGMASK)) && let ++usesigexec || true ((IGNORED & SIGMASK)) && let ++usesigexec || true
test -t 0 || let ++usesigexec test -t 0 || let ++usesigexec
%if 0%{?qemu_user_space_build:1}
# agraf: In a qemu user space build, ps can not find the actual sigmask
# of processes, so we run into an endless loop. Disable sigexec.
usesigexec=0
%endif
if ((usesigexec > 0)) ; then if ((usesigexec > 0)) ; then
${CC:-gcc} ${RPM_OPT_FLAGS} -o sigexec %{S:42} -lutil ${CC:-gcc} ${RPM_OPT_FLAGS} -o sigexec %{S:42} -lutil
for fd in /proc/$$/fd/*; do for fd in /proc/$$/fd/*; do