File: path-for-bash.patch

package info (click to toggle)
plplot 5.15.0%2Bdfsg2-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,484 kB
  • sloc: ansic: 79,703; xml: 28,583; cpp: 20,033; ada: 19,456; tcl: 12,081; f90: 11,431; ml: 7,276; java: 6,863; python: 6,792; sh: 3,274; perl: 828; lisp: 75; makefile: 74; sed: 34; fortran: 6
file content (18 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Give priority to /bin/ over /usr/bin/ as path for bash
 This is a Debian-specific change to avoid Lintian warning
 example-wrong-path-for-interpreter and there is no need to forward
 this patch upstream.
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: not-needed
Last-Update: 2022-12-03

--- plplot-5.15.0+dfsg.orig/cmake/modules/plplot.cmake
+++ plplot-5.15.0+dfsg/cmake/modules/plplot.cmake
@@ -122,6 +122,7 @@ set(CORE_BUILD ON)
 option(BUILD_TEST "Compile examples in the build tree and enable ctest" OFF)
 
 # Use bash when available for ctest and install tree test support
+find_program(SH_EXECUTABLE bash PATHS /bin NO_DEFAULT_PATH)
 find_program(SH_EXECUTABLE bash)
 find_program(SH_EXECUTABLE win-bash)
 if(SH_EXECUTABLE)