void-packages/srcpkgs/libffado/patches/cross-build.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: convert patches to -Np1
```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

60 lines
2.5 KiB
Diff

--- a/support/tools/SConscript
+++ b/support/tools/SConscript
@@ -40,12 +40,12 @@
else:
e.PrependUnique( LIBS=["expat"] )
-e.Command( "static_info.txt", "ffado-diag", "support/tools/ffado-diag --static > $TARGET" )
+# e.Command( "static_info.txt", "ffado-diag", "support/tools/ffado-diag --static > $TARGET" )
e.ScanReplace( "ffado-diag.in" )
e.Install( "$bindir", "ffado-diag" )
-e.Install( "$libdatadir", "static_info.txt" )
+# e.Install( "$libdatadir", "static_info.txt" )
if env['ENABLE_DICE']:
e.Program( target = "ffado-set-nickname", source = "ffado-set-nickname.cpp" )
--- a/SConstruct
+++ b/SConstruct
@@ -254,13 +254,6 @@
env['REQUIRE_LIBAVC']=0
if not env.GetOption('clean'):
- #
- # Check for working gcc and g++ compilers and their environment.
- #
- if not conf.CompilerCheck():
- print("\nIt seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages.\nHint: on *ubuntu you need both gcc- and g++-packages installed, easiest solution is to install build-essential which depends on gcc and g++.")
- Exit( 1 )
-
# Check for pkg-config before using pkg-config to check for other dependencies.
if not conf.CheckForPKGConfig():
print("\nThe program 'pkg-config' could not be found.\nEither you have to install the corresponding package first or make sure that PATH points to the right directions.")
--- a/SConstruct
+++ b/SConstruct
@@ -537,7 +537,7 @@
env.Alias( "install", env['libdir'] )
env.Alias( "install", env['includedir'] )
env.Alias( "install", env['sharedir'] )
-env.Alias( "install", env['libdatadir'] )
+# env.Alias( "install", env['libdatadir'] )
env.Alias( "install", env['bindir'] )
env.Alias( "install", env['mandir'] )
if env['BUILD_MIXER'] == 'true':
--- a/SConstruct
+++ b/SConstruct
@@ -395,12 +395,7 @@
# PyQT checks
if env['BUILD_MIXER'] != 'false':
- if ( conf.CheckForApp( 'which pyuic4' ) \
- and conf.CheckForPyModule( 'PyQt4' ) \
- and conf.CheckForPyModule( 'dbus.mainloop.qt' )) \
- or ( conf.CheckForApp( 'which pyuic5' ) \
- and conf.CheckForPyModule( 'PyQt5' ) \
- and conf.CheckForPyModule( 'dbus.mainloop.pyqt5' )):
+ if conf.CheckForApp( 'which pyuic4' ) or conf.CheckForApp( 'which pyuic5' ):
env['BUILD_MIXER'] = 'true'
elif not env.GetOption('clean'):
if env['BUILD_MIXER'] == 'auto':