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.

50 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch
  5. # Copyright (C) 2020 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. From c3a80843b7502ec2bfb5f1e5b514658c5f9dd884 Mon Sep 17 00:00:00 2001
  17. From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
  18. Date: Sun, 30 Aug 2020 18:02:28 +0200
  19. Subject: [PATCH] gcc-go: Fix st_{a,m,c}tim fields in generated sysinfo.go
  20. MIME-Version: 1.0
  21. Content-Type: text/plain; charset=UTF-8
  22. Content-Transfer-Encoding: 8bit
  23. There are more than one st_{a,m,c}tim fields in struct stat on time64 machines.
  24. Run the Go-isation on all of them.
  25. Taken from Adélie Linux.
  26. ---
  27. libgo/mksysinfo.sh | 6 +++---
  28. 1 file changed, 3 insertions(+), 3 deletions(-)
  29. diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
  30. index bd2ba32cba1..972e2c379bc 100755
  31. --- a/libgo/mksysinfo.sh
  32. +++ b/libgo/mksysinfo.sh
  33. @@ -510,9 +510,9 @@ fi | sed -e 's/type _stat64/type Stat_t/' \
  34. -e 's/st_size/Size/' \
  35. -e 's/st_blksize/Blksize/' \
  36. -e 's/st_blocks/Blocks/' \
  37. - -e 's/st_atim/Atim/' \
  38. - -e 's/st_mtim/Mtim/' \
  39. - -e 's/st_ctim/Ctim/' \
  40. + -e 's/st_atim/Atim/g' \
  41. + -e 's/st_mtim/Mtim/g' \
  42. + -e 's/st_ctim/Ctim/g' \
  43. -e 's/\([^a-zA-Z0-9_]\)_timeval\([^a-zA-Z0-9_]\)/\1Timeval\2/g' \
  44. -e 's/\([^a-zA-Z0-9_]\)_timespec_t\([^a-zA-Z0-9_]\)/\1Timespec\2/g' \
  45. -e 's/\([^a-zA-Z0-9_]\)_st_timespec_t\([^a-zA-Z0-9_]\)/\1StTimespec\2/g' \