[higan] 27/34: Add patch to use sharedpath() when locating files.

Tobias Hansen thansen at moszumanska.debian.org
Sun Jun 26 10:44:43 UTC 2016


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

thansen pushed a commit to branch master
in repository higan.

commit c5744df1bf069ad3b758de6ff2fbb6567ac3e368
Author: Tobias Hansen <thansen at debian.org>
Date:   Sun Jun 26 00:03:37 2016 +0100

    Add patch to use sharedpath() when locating files.
---
 debian/changelog                    |  2 ++
 debian/patches/series               |  1 +
 debian/patches/use_sharedpath.patch | 16 ++++++++++++++++
 3 files changed, 19 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4c67c4c..5fd45d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ higan (098-1) UNRELEASED; urgency=medium
     - desktop-file.patch
     - sjlj-declare-xopen-source.patch
     - use-XDG_CONFIG_HOME.patch
+  * New patches:
+    - use_sharedpath.patch
   * Fix .desktop file syntax. (Closes: #812482)
   * Update homepage URL. (Closes: #808788)
   * Bump Standards-Version.
diff --git a/debian/patches/series b/debian/patches/series
index dc6eaa1..5ef5d40 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ sjlj-declare-xopen-source.patch
 noopt.patch
 use-XDG_CONFIG_HOME.patch
 find_cairo.patch
+use_sharedpath.patch
diff --git a/debian/patches/use_sharedpath.patch b/debian/patches/use_sharedpath.patch
new file mode 100644
index 0000000..0941c22
--- /dev/null
+++ b/debian/patches/use_sharedpath.patch
@@ -0,0 +1,16 @@
+Description: Use sharedpath() when locating files
+ To find files that are in /usr/share/higan.
+Author: Tobias Hansen <thansen at debian.org>
+
+--- a/higan/target-tomoko/tomoko.cpp
++++ b/higan/target-tomoko/tomoko.cpp
+@@ -11,6 +11,9 @@
+   location = {configpath(), "higan/", name};
+   if(inode::exists(location)) return location;
+ 
++  location = {sharedpath(), "higan/", name};
++  if(inode::exists(location)) return location;
++
+   directory::create({localpath(), "higan/"});
+   return {localpath(), "higan/", name};
+ }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/higan.git



More information about the Pkg-games-commits mailing list