File: Don-t-download-any-external-example-files.patch

package info (click to toggle)
arduino 2%3A1.8.19%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,960 kB
  • sloc: java: 26,464; python: 8,872; cpp: 3,573; xml: 1,237; sh: 551; perl: 90; ansic: 89; makefile: 53
file content (42 lines) | stat: -rw-r--r-- 2,137 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Mon, 24 May 2021 08:37:44 +0200
Subject: Don't download any external example files

Forwarded: not-needed
---
 build/build.xml | 22 +++-------------------
 1 file changed, 3 insertions(+), 19 deletions(-)

diff --git a/build/build.xml b/build/build.xml
index 35f34d2..d93214b 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -229,25 +229,9 @@
   </target>
 
   <target name="assemble-examples">
-    <!-- Add the built-in example sketches -->
-    <property name="BUILT-IN-EXAMPLES-REPOSITORY-OWNER" value="arduino" />
-    <property name="BUILT-IN-EXAMPLES-REPOSITORY-NAME" value="arduino-examples" />
-    <property name="BUILT-IN-EXAMPLES-STAGING-PATH" value="shared" />
-    <property name="BUILT-IN-EXAMPLES-FINAL-PATH" value="${target.path}/examples" />
-
-    <!-- Download built-in examples from repository -->
-    <antcall target="unzip">
-      <param name="archive_file" value="${BUILT-IN-EXAMPLES-REPOSITORY-NAME}-${BUILT-IN-EXAMPLES-VERSION}.zip" />
-      <param name="archive_url" value="https://github.com/${BUILT-IN-EXAMPLES-REPOSITORY-OWNER}/${BUILT-IN-EXAMPLES-REPOSITORY-NAME}/archive/${BUILT-IN-EXAMPLES-VERSION}.zip" />
-      <!-- Because the presence of this folder determines whether the extraction happens, this must point to a version-dependent path, otherwise updates will fail -->
-      <param name="final_folder" value="${BUILT-IN-EXAMPLES-STAGING-PATH}/${BUILT-IN-EXAMPLES-REPOSITORY-NAME}-${BUILT-IN-EXAMPLES-VERSION}/examples" />
-      <param name="dest_folder" value="${BUILT-IN-EXAMPLES-STAGING-PATH}" />
-    </antcall>
-
-    <!-- Copy examples from subfolder of the downloaded repository -->
-    <copy todir="${BUILT-IN-EXAMPLES-FINAL-PATH}">
-      <fileset dir="${BUILT-IN-EXAMPLES-STAGING-PATH}/${BUILT-IN-EXAMPLES-REPOSITORY-NAME}-${BUILT-IN-EXAMPLES-VERSION}/examples" />
-    </copy>
+      <!-- Inform user somehow on this intervention on upstream idea -->
+      <echo file="${target.path}/reference/fyi.txt"
+      message="No downloads done during build of Arduino IDE ..." />
   </target>
 
   <!-- copy library folder -->