summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracerix2019-11-30 10:57:04 -0500
committeracerix2019-11-30 10:57:04 -0500
commit68d3ac65aadf05ceaaf9c339a2e7d6efc5528f2c (patch)
treef41f2a12dc603cec655a6ca2e570c119fbbeb3b5
parent065b27b3d83670108a55f83e5f774e9d8b021c3e (diff)
downloadaur-68d3ac65aadf05ceaaf9c339a2e7d6efc5528f2c.tar.gz
Remove sysctl include and add editorstyle dependency to fix link error
Thanks @niqingliang2003 From https://github.com/walkthetalk/aurpackages/tree/master/unreal-engine
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
-rw-r--r--add-editorstyle-dependency.patch10
-rw-r--r--remove-sysctl-include.patch10
4 files changed, 30 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dac4757a4a3..33f10a1a8fa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -25,6 +25,8 @@ pkgbase = unreal-engine
source = ignore-clang50-install.patch
source = use-arch-mono.patch
source = allow-unsupported-clang.patch
+ source = remove-sysctl-include.patch
+ source = add-editorstyle-dependency.patch
sha256sums = SKIP
sha256sums = 46871ed662a3c97698be609d27da280d9000ec97183f1fa6592986f9910a2118
sha256sums = 1dd876fa48c6fb4fcd4ccbdb8ed4ceccfa294685911e91be58bbc5e95726c279
@@ -32,6 +34,8 @@ pkgbase = unreal-engine
sha256sums = 71a7304deebb00234c323eed9a73cdbd022099ba65f62fc90e78069eceed1f5d
sha256sums = 6b30adf71eeabaf1b2b669aa56c9deba145a4fe7bdd2e77f44b0cb7423162bc0
sha256sums = bc4837ead8c89b7e4df2a14aedd62d23f47e7fca08c3f429a267ec4c3b3412d3
+ sha256sums = 2672d6d5faf6b855fc2bfd56d215b4fd2a00fd9791ad9d484b6446194867b67d
+ sha256sums = 8efbf29ab755bb4fe4c4a423ffb22668dd0e66c7cbc3fc05033ba350b451cfd5
pkgname = unreal-engine
diff --git a/PKGBUILD b/PKGBUILD
index 03942cfda38..624c3052872 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,6 +26,8 @@ pkgver=4.23.1
'ignore-clang50-install.patch'
'use-arch-mono.patch'
'allow-unsupported-clang.patch'
+ 'remove-sysctl-include.patch'
+ 'add-editorstyle-dependency.patch'
)
sha256sums=(
@@ -36,6 +38,8 @@ pkgver=4.23.1
'71a7304deebb00234c323eed9a73cdbd022099ba65f62fc90e78069eceed1f5d'
'6b30adf71eeabaf1b2b669aa56c9deba145a4fe7bdd2e77f44b0cb7423162bc0'
'bc4837ead8c89b7e4df2a14aedd62d23f47e7fca08c3f429a267ec4c3b3412d3'
+ '2672d6d5faf6b855fc2bfd56d215b4fd2a00fd9791ad9d484b6446194867b67d'
+ '8efbf29ab755bb4fe4c4a423ffb22668dd0e66c7cbc3fc05033ba350b451cfd5'
)
# Package is 3 Gib smaller with "strip" but it takes a long time and generates many warnings
@@ -52,6 +56,8 @@ prepare() {
patch "$srcdir/UnrealEngine/Engine/Build/BatchFiles/Linux/SetupMono.sh" use-arch-mono.patch
patch "$srcdir/UnrealEngine/Setup.sh" recompile-version-selector.patch
patch "$srcdir/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs" allow-unsupported-clang.patch
+ patch "$srcdir/UnrealEngine/Engine/Source/Runtime/Core/Public/Unix/UnixSystemIncludes.h" remove-sysctl-include.patch
+ patch "$srcdir/UnrealEngine/Engine/Source/Runtime/Launch/Launch.Build.cs" add-editorstyle-dependency.patch
cp "$srcdir/Makefile" "$srcdir/UnrealEngine/Makefile"
diff --git a/add-editorstyle-dependency.patch b/add-editorstyle-dependency.patch
new file mode 100644
index 00000000000..b2523b90f19
--- /dev/null
+++ b/add-editorstyle-dependency.patch
@@ -0,0 +1,10 @@
+--- UnrealEngine.orig/Engine/Source/Runtime/Launch/Launch.Build.cs
++++ UnrealEngine/Engine/Source/Runtime/Launch/Launch.Build.cs
+@@ -183,6 +183,7 @@ public class Launch : ModuleRules
+
+ PrivateDependencyModuleNames.AddRange(new string[] {
+ "SourceControl",
++ "EditorStyle",
+ "UnrealEd",
+ "DesktopPlatform",
+ "PIEPreviewDeviceProfileSelector",
diff --git a/remove-sysctl-include.patch b/remove-sysctl-include.patch
new file mode 100644
index 00000000000..e905ebccad7
--- /dev/null
+++ b/remove-sysctl-include.patch
@@ -0,0 +1,10 @@
+--- UnixSystemIncludes.h
++++ UnixSystemIncludes_new.h
+@@ -31,7 +31,6 @@
+ #include <utime.h>
+ #include <execinfo.h>
+ #include <signal.h>
+-#include <sys/sysctl.h>
+ #if PLATFORM_ENABLE_VECTORINTRINSICS
+ #include <xmmintrin.h>
+ #endif // PLATFORM_RASPBERRY