From 126c79a3ed2f80ac5772f1e02e2abb9218afb79c Mon Sep 17 00:00:00 2001
From: Pieter12345
Date: Wed, 20 Mar 2019 04:49:20 +0100
Subject: [PATCH 1/3] Replace "unzip/tar" in build.xml by Ant's provided
unzip/untar method
Replace the "unzip" and "tar" command used while building Arduino by the unzip and untar method that Ant provides.
This fixes #8617, meaning that "ant run" will work again and no files/directories are created with weird permissions and share names anymore.
---
build/build.xml | 77 +++++++++++++++++--------------------------------
1 file changed, 27 insertions(+), 50 deletions(-)
diff --git a/build/build.xml b/build/build.xml
index e2a3fcb5cb9..a282b9b6b48 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -282,7 +282,7 @@
-
+
@@ -528,9 +528,7 @@
-
-
-
+
@@ -895,26 +893,14 @@
Untarring ${archive_file} into folder ${dest_folder}
-
-
-
-
-
+
-
-
- Unzipping ${archive_file} into folder ${dest_folder}
-
-
-
-
-
-
-
-
+
+ Untarring ${archive_file} into folder ${dest_folder}
+
-
+
Unzipping ${archive_file} into folder ${dest_folder}
@@ -994,7 +980,7 @@
-
+
@@ -1068,7 +1054,7 @@
-
+
@@ -1087,42 +1073,33 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
From afbf75651f2362bcb17e96035088df5c5b9dd13b Mon Sep 17 00:00:00 2001
From: Pieter12345
Date: Thu, 21 Mar 2019 02:33:26 +0100
Subject: [PATCH 2/3] Remove default excludes for Ant directory tasks
Besides that these default excludes get ignored when using the Cygwin terminal on Windows, they cause Ant move tasks to not remove the 'moved' directory if it contains a `.gitignore` or other default exclude file.
---
build/build.xml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/build/build.xml b/build/build.xml
index a282b9b6b48..29b82188957 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -114,6 +114,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 96e7bc29fcc585ab61ae4556431a3585e0e75247 Mon Sep 17 00:00:00 2001
From: Martino Facchin
Date: Fri, 22 Mar 2019 09:19:43 +0100
Subject: [PATCH 3/3] Use tar native binary for extraction on unix
To overcome ant untar behaviour (executable bits being lost)
---
build/build.xml | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/build/build.xml b/build/build.xml
index 29b82188957..31b0d917b1f 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -512,7 +512,7 @@
-
+
@@ -725,7 +725,7 @@
-
+
@@ -767,7 +767,7 @@
-
+
@@ -785,7 +785,7 @@
-
+
@@ -803,7 +803,7 @@
-
+
@@ -852,7 +852,7 @@
-
+
@@ -915,6 +915,14 @@
Untarring ${archive_file} into folder ${dest_folder}
+
+ Untarring ${archive_file} into folder ${dest_folder}
+
+
+
+
+
+
Unzipping ${archive_file} into folder ${dest_folder}
@@ -1005,7 +1013,7 @@
-
+