void-packages/srcpkgs/faust/patches/faust-voidlinux-lib_and_arch_paths.patch
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

32 lines
1.5 KiB
Diff

--- a/compiler/libcode.cpp-old 2019-12-22 19:50:13.663677186 +0100
+++ b/compiler/libcode.cpp 2019-12-22 19:51:42.011680485 +0100
@@ -733,11 +733,11 @@
}
static void printArchDir()
{
- cout << gGlobal->gFaustRootDir << kPSEP << "share" << kPSEP << "faust" << endl;
+ cout << gGlobal->gFaustRootDir << kPSEP << "lib" << kPSEP << "faust" << endl;
}
static void printDspDir()
{
- cout << gGlobal->gFaustRootDir << kPSEP << "share" << kPSEP << "faust" << endl;
+ cout << gGlobal->gFaustRootDir << kPSEP << "lib" << kPSEP << "faust" << endl;
}
static void printPaths()
{
@@ -1101,6 +1101,7 @@
gGlobal->gImportDirList.push_back(exepath::dirup(gGlobal->gFaustExeDir) + "/share/faust");
gGlobal->gImportDirList.push_back("/usr/local/share/faust");
gGlobal->gImportDirList.push_back("/usr/share/faust");
+ gGlobal->gImportDirList.push_back("/usr/lib/faust");
//-------------------------------------------------------------------------------------
// init gArchitectureDirList : a list of path where to search architectures files
@@ -1119,6 +1120,7 @@
gGlobal->gArchitectureDirList.push_back(exepath::dirup(gGlobal->gFaustExeDir) + "/include");
gGlobal->gArchitectureDirList.push_back("/usr/local/share/faust");
gGlobal->gArchitectureDirList.push_back("/usr/share/faust");
+ gGlobal->gArchitectureDirList.push_back("/usr/lib/faust");
gGlobal->gArchitectureDirList.push_back("/usr/local/include");
gGlobal->gArchitectureDirList.push_back("/usr/include");