OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/strace/strace-linux-ptrace-header.patch
  5. # Copyright (C) 2014 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Original patch was taken from sabotage linux:
  17. https://github.com/sabotage-linux/sabotage/blob/master/KEEP/strace-kernelhdr_3.12.6.patch
  18. The second part which includes sys/sysinfo.h in the original patch needed
  19. to be removed to be able to compile strace with OpenSDE's current kernel
  20. headers of linux 3.10.29.
  21. --- strace-4.8.org/process.c
  22. +++ strace-4.8/process.c
  23. @@ -55,19 +55,6 @@
  24. # endif
  25. #endif
  26. -#ifdef HAVE_LINUX_PTRACE_H
  27. -# undef PTRACE_SYSCALL
  28. -# ifdef HAVE_STRUCT_IA64_FPREG
  29. -# define ia64_fpreg XXX_ia64_fpreg
  30. -# endif
  31. -# ifdef HAVE_STRUCT_PT_ALL_USER_REGS
  32. -# define pt_all_user_regs XXX_pt_all_user_regs
  33. -# endif
  34. -# include <linux/ptrace.h>
  35. -# undef ia64_fpreg
  36. -# undef pt_all_user_regs
  37. -#endif
  38. -
  39. #if defined(SPARC64)
  40. # define r_pc r_tpc
  41. # undef PTRACE_GETREGS