```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 ```
66 lines
2.2 KiB
Diff
66 lines
2.2 KiB
Diff
From ba9bb2bccdf67a8a202c578fcf09a3aa6dda4c63 Mon Sep 17 00:00:00 2001
|
|
From: q66 <daniel@octaforge.org>
|
|
Date: Fri, 10 Apr 2020 20:22:17 +0200
|
|
Subject: [PATCH] MonkeysAudio: patch out bad endian definitions breaking
|
|
builds
|
|
|
|
---
|
|
Shared/All.h | 8 +-------
|
|
Source/Shared/All.h | 8 +-------
|
|
2 files changed, 2 insertions(+), 14 deletions(-)
|
|
|
|
diff --git Shared/All.h Shared/All.h
|
|
index 6dfb669..cc9a988 100644
|
|
--- a/Shared/All.h
|
|
+++ b/Shared/All.h
|
|
@@ -45,6 +45,7 @@ Global includes
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <wchar.h>
|
|
+ #include <endian.h>
|
|
#include "NoWindows.h"
|
|
#endif
|
|
#define ape_max(a,b) (((a) > (b)) ? (a) : (b))
|
|
@@ -246,13 +247,6 @@ Global defines
|
|
#define APE_FILENAME_SLASH '/'
|
|
#endif
|
|
|
|
-/*****************************************************************************************
|
|
-Byte order
|
|
-*****************************************************************************************/
|
|
-#define __LITTLE_ENDIAN 1234
|
|
-#define __BIG_ENDIAN 4321
|
|
-#define __BYTE_ORDER __LITTLE_ENDIAN
|
|
-
|
|
/*****************************************************************************************
|
|
Macros
|
|
*****************************************************************************************/
|
|
diff --git Source/Shared/All.h Source/Shared/All.h
|
|
index 6dfb669..cc9a988 100644
|
|
--- a/Source/Shared/All.h
|
|
+++ b/Source/Shared/All.h
|
|
@@ -45,6 +45,7 @@ Global includes
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <wchar.h>
|
|
+ #include <endian.h>
|
|
#include "NoWindows.h"
|
|
#endif
|
|
#define ape_max(a,b) (((a) > (b)) ? (a) : (b))
|
|
@@ -246,13 +247,6 @@ Global defines
|
|
#define APE_FILENAME_SLASH '/'
|
|
#endif
|
|
|
|
-/*****************************************************************************************
|
|
-Byte order
|
|
-*****************************************************************************************/
|
|
-#define __LITTLE_ENDIAN 1234
|
|
-#define __BIG_ENDIAN 4321
|
|
-#define __BYTE_ORDER __LITTLE_ENDIAN
|
|
-
|
|
/*****************************************************************************************
|
|
Macros
|
|
*****************************************************************************************/
|
|
--
|
|
2.25.1
|
|
|