76acfa2dd2
```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 ```
17 lines
444 B
Diff
17 lines
444 B
Diff
Source: https://mail-archives.apache.org/mod_mbox/mesos-reviews/201610.mbox/%3C20161014170728.1720.54446@reviews.apache.org%3E
|
|
Upstream: No
|
|
Reason: fixes compilation with musl that doesn't define W* macros.
|
|
|
|
--- a/src/widget.cc
|
|
+++ b/src/widget.cc
|
|
@@ -28,6 +28,10 @@
|
|
#include "vtegtk.hh"
|
|
#include "debug.h"
|
|
|
|
+#ifndef W_EXITCODE
|
|
+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
|
|
+#endif
|
|
+
|
|
using namespace std::literals;
|
|
|
|
namespace vte {
|