Make the 'systemtap-testsuite' rpm require 'nc' for ipaddr.exp.
Make pr13158.exp test results less random.

* testsuite/systemtap.base/pr13158.exp: Make test result less random, by
  making sure the first copy of the module is loaded before trying to load
  the second copy.
BZ998595, systemtap.spec fix disagreement between %file attrs and explicit chmods
PR15900 fix syntax errors in server_local.exp test case
PR15900 weaken & simplify server_locale.exp test case

The server_locale.exp test case need only confirm that selected
local-related environment variables are passed to the server.  A
smaller & simpler set of tests are sufficient for that.

This also reverts commit dcd8a2ebbcc00ab6aed227ebd721346d81c26a7b.
staprun requires elfutils 0.142+, so always assume we have elf_getshdrstrndx().

* staprun/common.c (usage): Always assume we have elf_getshdrstrndx().
* staprun/staprun.c (init_staprun): Ditto.
* staprun/staprun_funcs.c: Ditto.
* configure.ac: For staprun, the lowest version of elfutils we require is
0.142+, which has elf_getshdrstrndx(). So, if elf_getshdrstrndx()
doesn't exist in libelf, fail.
* Makefile.in: Regenerated.
* aclocal.m4: Ditto.
* config.in: Ditto.
* configure: Ditto.
* doc/Makefile.in: Ditto.
* doc/SystemTap_Tapset_Reference/Makefile.in: Ditto.
* doc/beginners/Makefile.in: Ditto.
* java/Makefile.in: Ditto.
* man/Makefile.in: Ditto.
* stapdyn/Makefile.in: Ditto.
* staprun/Makefile.in: Ditto.
* NEWS: Mention staprun requiring elfuilts 0.142+.
Add note to NEWS for PR15805.
Add some dyninst XFAILS in sdt_misc.exp.

* testsuite/systemtap.base/sdt_misc.exp: XFAIL tests that attach to
  processes when testing dyninst.
Update badname.stp example for newer kernels (with inlined may_create()).

* testsuite/systemtap.examples/general/badname.stp: Since may_create() is
  now always inlined (and we can't find its arguments), probe
  may_create()'s callers instead.
Improved spawned process cleanup in bz6850.exp and fib.exp.

* testsuite/systemtap.base/bz6850.exp: Improved cleanup logic.
* testsuite/systemtap.context/fib.exp: Ditto.
Improve skipping .plt tests on unsupported systems.

* testsuite/lib/systemtap.exp (plt_probes_p): New function.
* testsuite/systemtap.base/list.exp: Uses 'plt_probes_p' to know to mark
  .plt probe tests as 'untested'.
* testsuite/systemtap.base/plt.exp: Uses 'plt_probes_p'.
* testsuite/systemtap.pass1-4/semok.exp: Ditto.
* testsuite/systemtap.unprivileged/unprivileged_myproc.exp: Ditto.
* testsuite/systemtap.unprivileged/unprivileged_probes.exp: Ditto.
man page error::pass2: mention stap-prep
Fix failures in uprobes_filtering.exp by improving as_non_root().

* testsuite/lib/systemtap.exp (as_non_root): If we're using user 'nobody',
  override SYSTEMTAP_DIR to '/tmp/.systemtap-nobody'.
PR15906: staprun: suppress loading of stap modules in FIPS mode

* staprun/staprun.c (insert_stap_module): Check & fear
  /proc/sys/crypto/fips_enabled.
Make systemtap.examples/check.exp look for an example's optional tcl file.

* testsuite/systemtap.examples/check.exp: If the example has an associated
  tcl file, run it.
* testsuite/systemtap.examples/README: Mention new tcl file that can be
  optionally associated with an example.
* testsuite/systemtap.examples/stapgames/pingpong.meta: Add a
  'test_support' tag.
* testsuite/systemtap.examples/virtualization/kvm_service_time.meta: Make
  the 'test_support' tag more specific.
* testsuite/systemtap.examples/process/auditbt.tcl: Skip the example if we
  don't have uprobes.
* testsuite/systemtap.examples/process/mutex-contention.tcl: Ditto.
* testsuite/systemtap.examples/process/threadstacks.tcl: Ditto.
* testsuite/systemtap.examples/profiling/pf4.tcl: Ditto.
* testsuite/systemtap.examples/process/ltrace.tcl: Skip the example if we
  don't have .plt probes.
* testsuite/systemtap.examples/interrupt/scf.tcl: Skip the example if
  we're on ia64, which has no dwarf unwinding support.
* testsuite/systemtap.examples/io/io_submit.tcl: Ditto.
* testsuite/systemtap.examples/io/mbrwatch.tcl: Ditto.
* testsuite/systemtap.examples/process/chng_cpu.tcl: Ditto.
* testsuite/systemtap.examples/process/sleepingBeauties.tcl: Ditto.
* testsuite/systemtap.examples/profiling/latencytap.tcl: Ditto.
* testsuite/systemtap.examples/process/strace.tcl: Skip the example if
  we're on ia64, which doesn't have nd_syscall support.
* testsuite/systemtap.examples/process/thread-business.tcl: Ditto.
Fix minidebuginfo.exp testcase problems.

* testsuite/systemtap.base/minidebuginfo.exp: If the tested system doesn't
  have uprobes, mark as untested.
* testsuite/systemtap.base/create-minidebug.sh: Change "/usr/bin/bash" to
  "/bin/bash", so older systems can run the script.
Mark systemtap.base/pthread_stacks.exp untested when necessary.

* testsuite/systemtap.base/pthread_stacks.exp: Don't run test if we're not
  doing install testing or if we don't have uprobes.
Improve skipping perf probe tests on unsupported systems.

* testsuite/lib/systemtap.exp (perf_probes_p): New function.
* testsuite/systemtap.stress/conversions.exp: Use new 'perf_probes_p'
  function instead of an explicit test.
* testsuite/systemtap.base/perf.exp: If we don't have perf probes, mark
  test as untested.
* testsuite/systemtap.base/pt_user_mode.exp: Skip test if we're not doing
  an install test. We don't need to check for perf probe support.
* testsuite/systemtap.examples/profiling/perf.tcl: Skip the example if we
  don't have perf probes or uprobes.
Don't run target_set_thread.exp if we don't have uprobes.
Properly read user memory in target_set.stp.

* testsuite/systemtap.base/target_set.stp: Be sure to read user memory
  with user_long().