[pkg-fgfs-crew] [flightgear-data] 01/01: Apply patch by Rebecca Palmer (incl. update to 2.12.1)

Markus Wanner markus_wanner-guest at moszumanska.debian.org
Tue Jan 21 22:17:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

markus_wanner-guest pushed a commit to branch master
in repository flightgear-data.

commit 1296baefdcf09aeee98a7adfb50f8b43d3f9cc96
Author: Markus Wanner <markus at bluegap.ch>
Date:   Tue Jan 21 23:16:33 2014 +0100

    Apply patch by Rebecca Palmer (incl. update to 2.12.1)
    
    * Symlink to correct fonts package. Closes: #724584.
    * Allow turning on Terrasync from the GUI.
    * Document Terrasync ground refresh workaround.
---
 debian/changelog                               |  9 +++--
 debian/control                                 | 16 ++++-----
 debian/patches/series                          |  2 ++
 debian/patches/terrasync-directory.diff        | 50 ++++++++++++++++++++++++++
 debian/patches/terrasync-document-refresh.diff | 35 ++++++++++++++++++
 5 files changed, 102 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3f2899e..d5a18db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,14 @@
-flightgear-data (2.12.0-1) unstable; urgency=low
+flightgear-data (2.12.1-1) UNRELEASED; urgency=low
 
+  [ Markus Wanner ]
   * New upstream release.
   * Adjust dependencies on flightgear.
   * Add Replaces on fgfs-aircrafts-base as well.
-  * Symlink fonts-liberation rather than ttf-liberation. Closes: #724584.
+
+  [ Rebecca Palmer ]
+  * Symlink to correct fonts package. Closes: #724584.
+  * Allow turning on Terrasync from the GUI.
+  * Document Terrasync ground refresh workaround.
 
  -- Markus Wanner <markus at bluegap.ch>  Sat, 05 Oct 2013 19:45:56 +0200
 
diff --git a/debian/control b/debian/control
index 5e98f72..040ffe8 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Architecture: all
 Depends: tzdata, fonts-liberation, ${misc:Depends}
 Replaces: fgfs-base (<< 2.10.0), fgfs-scenery-base (<< 2.10.0),
  fgfs-aircraft-base (<< 2.10.0~)
-Breaks: flightgear (<< 2.12.0~),
+Breaks: flightgear (<< 2.12.1~),
  fgfs-base (<< 2.10.0~), fgfs-scenery-base (<< 2.10.0~),
  fgfs-aircraft-base (<< 2.10.0~)
 Description: FlightGear Flight Simulator -- base files
@@ -31,7 +31,7 @@ Description: FlightGear Flight Simulator -- base files
 Package: flightgear-data-ai
 Architecture: all
 Depends: ${misc:Depends}
-Breaks: flightgear (<< 2.12.0~), fgfs-base (<< 2.10.0~)
+Breaks: flightgear (<< 2.12.1~), fgfs-base (<< 2.10.0~)
 Description: FlightGear Flight Simulator -- standard AI data
  FlightGear is a free and highly sophisticated flight simulator.
  .
@@ -42,7 +42,7 @@ Package: flightgear-data-aircrafts
 Architecture: all
 Depends: ${misc:Depends}
 Replaces: fgfs-base (<< 2.0.0), fgfs-aircraft-base (<< 2.10.0~)
-Breaks: flightgear (<< 2.12.0~), fgfs-aircraft-base (<< 2.10.0~)
+Breaks: flightgear (<< 2.12.1~), fgfs-aircraft-base (<< 2.10.0~)
 Description: FlightGear Flight Simulator -- standard aircraft
  FlightGear is a free and highly sophisticated flight simulator.
  .
@@ -53,7 +53,7 @@ Package: flightgear-data-models
 Architecture: all
 Depends: ${misc:Depends}
 Replaces: fgfs-base (<< 2.0.0), fgfs-models-base (<< 2.10.0)
-Breaks: flightgear (<< 2.12.0~), fgfs-models-base (<< 2.10.0~)
+Breaks: flightgear (<< 2.12.1~), fgfs-models-base (<< 2.10.0~)
 Description: FlightGear Flight Simulator -- standard models
  FlightGear is a free and highly sophisticated flight simulator.
  .
@@ -63,10 +63,10 @@ Description: FlightGear Flight Simulator -- standard models
 Package: flightgear-data-all
 Architecture: all
 Depends:
- flightgear-data-base (>= 2.12.0~),
- flightgear-data-ai (>= 2.12.0~),
- flightgear-data-aircrafts (>= 2.12.0~),
- flightgear-data-models (>= 2.12.0~),
+ flightgear-data-base (>= 2.12.1~),
+ flightgear-data-ai (>= 2.12.1~),
+ flightgear-data-aircrafts (>= 2.12.1~),
+ flightgear-data-models (>= 2.12.1~),
  ${misc:Depends}
 Description: FlightGear Flight Simulator - virtual package
  FlightGear is a free and highly sophisticated flight simulator.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..691f47c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+terrasync-directory.diff
+terrasync-document-refresh.diff
diff --git a/debian/patches/terrasync-directory.diff b/debian/patches/terrasync-directory.diff
new file mode 100644
index 0000000..7700bd5
--- /dev/null
+++ b/debian/patches/terrasync-directory.diff
@@ -0,0 +1,50 @@
+Description: Allow enabling Terrasync while leaving the directory unchanged
+Author: Rebecca Palmer
+Bug-Debian: http://bugs.debian.org/252899
+Forwarded: not-needed
+
+Don't require the Terrasync directory to already be in fg-scenery before
+allowing the user to turn on Terrasync from the GUI dialog.
+
+This requires restarting the sim to automatically add the directory,
+but avoids the need to use the command line.
+
+--- flightgear-data-2.12.0.orig/gui/dialogs/terrasync.xml
++++ flightgear-data-2.12.0/gui/dialogs/terrasync.xml
+@@ -53,7 +53,7 @@
+       <halign>left</halign>
+       <row>1</row><col>1</col><colspan>3</colspan>
+       <property>/sim/terrasync/enabled</property>
+-      <label>Enable automatic scenery download/update</label>
++      <label>Enable automatic scenery download/update (requires restart)</label>
+       <live>true</live>
+       <binding>
+         <command>dialog-apply</command>
+@@ -529,18 +529,22 @@
+       var combo = gui.findElementByName(cmdarg(),"scenery-dir");
+       var valid = 0;
+ 
+-      for (var i = 0; i < size(fg_scenery); i = i + 1) {
+-        var s = fg_scenery[i].getValue();
+-        if ((s != fg_data ~ "/Scenery") and (s != fg_data ~ "\\Scenery")) {
++      for (var i = 0; i <= size(fg_scenery); i = i + 1) {
++        # Default to not changing the Terrasync directory
++        var s = getprop("/sim/terrasync/scenery-dir");
++        if (i > 0) {
++          s = fg_scenery[i-1].getValue();
++        }
++        if ((s != fg_data ~ "/Scenery") and (s != fg_data ~ "\\Scenery") and (s != "")) {
+           # Do not allow Terrasync to run in the default directory.
+-          combo.getNode("value[" ~ i ~ "]", 1).setValue(fg_scenery[i].getValue());
++          combo.getNode("value[" ~ i ~ "]", 1).setValue(s);
+           valid = 1;
+         }
+       }
+ 
+       # Add error text if the user only has fg-data/Scenery available and disable controls.
+       if (!valid) {
+-        var warning = cmdarg().getChildren("group")[1].getChildren("text")[1];
++        var warning = gui.findElementByName(cmdarg(),"warning_text");
+         var txt = "You must configure a separate FG_SCENERY directory for automatic scenery download";
+         warning.getNode("label").setValue(txt);
+       }
diff --git a/debian/patches/terrasync-document-refresh.diff b/debian/patches/terrasync-document-refresh.diff
new file mode 100644
index 0000000..880baf4
--- /dev/null
+++ b/debian/patches/terrasync-document-refresh.diff
@@ -0,0 +1,35 @@
+Description: Document Terrasync + "Select airport" workaround
+Author: Rebecca Palmer
+Bug-Debian: http://bugs.debian.org/252899
+Forwarded: not-needed
+
+"Select airport" does not wait for scenery to be downloaded, and hence often
+leaves one stuck "underground".  This tells the user how to get out of this.
+
+(Upstream have really fixed this problem for 3.0, but the changes are
+too large to sensibly backport.)
+
+--- flightgear-data-2.12.0.orig/gui/dialogs/terrasync.xml
++++ flightgear-data-2.12.0/gui/dialogs/terrasync.xml
+@@ -148,6 +148,21 @@
+       </binding>
+     </button>
+ 
++    <text>
++      <row>7</row>
++      <col>0</col><colspan>4</colspan>
++      <halign>center</halign>
++      <wrap>true</wrap>
++      <label>If you see only water after "Select airport", wait for scenery to download,</label>
++    </text>
++    <text>
++      <row>8</row>
++      <col>0</col><colspan>4</colspan>
++      <halign>center</halign>
++      <wrap>true</wrap>
++      <label>click "Manual Refresh" above (scenery will appear above you), then "Select airport" again.</label>
++    </text>
++
+ <!--
+     <checkbox>
+       <name>internal-svn</name>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/flightgear-data.git



More information about the pkg-fgfs-crew mailing list