File: fix-bindir.patch

package info (click to toggle)
0ad 0.28.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 182,352 kB
  • sloc: cpp: 201,989; javascript: 19,730; ansic: 15,057; python: 6,597; sh: 2,046; perl: 1,232; xml: 543; java: 533; makefile: 105
file content (21 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix search path for pyrogenesis
 Modify launcher script to execute /usr/games/pyrogenesis if /usr/games is
 not in the user's $PATH.
Forwarded: http://trac.wildfiregames.com/ticket/1424
Author: Vincent Cheng <vcheng@debian.org>
Bug-Debian: https://bugs.debian.org/679033
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1380737
Last-Update: 2025-02-01

--- a/build/resources/0ad.sh
+++ b/build/resources/0ad.sh
@@ -3,6 +3,9 @@
 pyrogenesis=$(which pyrogenesis 2>/dev/null)
 if [ -x "$pyrogenesis" ]; then
 	"$pyrogenesis" "$@"
+elif [ -x /usr/games/pyrogenesis ] ; then
+    # Fallback in case /usr/games is not in $PATH; see #679033 and LP: #1380737
+    /usr/games/pyrogenesis "$@"
 else
 	echo "Error: pyrogenesis not found in ($PATH)"
 	exit 1