void-packages/srcpkgs/renderdoc/patches/dostringise.patch
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

33 lines
961 B
Diff

From: Jordan Justen <jordan.l.justen@intel.com>
Date: Fri, 24 Jul 2020 15:36:34 -0700
Subject: renderdoc/serialise: Add DoStringise(const long &el) for 32-bit x86
on GCC
linux_process.cpp was generating linker errors:
undefined reference to `rdcstr DoStringise<long>(long const&)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
---
renderdoc/serialise/serialiser.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/renderdoc/serialise/serialiser.cpp b/renderdoc/serialise/serialiser.cpp
index 460a310..9e53fb1 100644
--- a/renderdoc/serialise/serialiser.cpp
+++ b/renderdoc/serialise/serialiser.cpp
@@ -937,6 +937,14 @@ rdcstr DoStringise(const int16_t &el)
return StringFormat::Fmt("%hd", el);
}
+#if ENABLED(RDOC_LINUX) && ENABLED(RDOC_X86_FAMILY) && DISABLED(RDOC_X64)
+template <>
+rdcstr DoStringise(const long &el)
+{
+ return StringFormat::Fmt("%l", el);
+}
+#endif
+
template <>
rdcstr DoStringise(const float &el)
{