[proaudio] media-libs/libffado-* patch

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Hi,

Here is a patch for libffado. I applied to all the overlay versions.

It fixes the compilation of libffado having jack-audio-connection kit
installed, at least with jack2 that I use:
Ffado compilation script calls "jackd --version" at the end, and jackd
--version tries to access /dev/snd/controlC0, which causes a sandbox
violation [1]. So I just added an addpredict /dev/snd.

I know this is not the best solution, but I found hard to fix it from
upstream, because it's an issue of jack and related in how the ffado
compilation works, and it's hard to describe it as a bug. I asked for
that in the jack dev and ffado developers lists, but no one said nothing
about...


Maybe the addpredict can be conditional? Someone can check if this[1]
also happens installing libffado with jack 1?


Best regards,
Natanael.


[1] :
--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE "/var/log/sandbox/sandbox-21106.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: jackd --version

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: jackd --version
--------------------------------------------------------------------------------

>>> Failed to emerge media-libs/libffado-9999, Log file:




Index: libffado-2.0.0.ebuild
===================================================================
--- libffado-2.0.0.ebuild	(revision 2113)
+++ libffado-2.0.0.ebuild	(working copy)
@@ -41,6 +41,8 @@
 }
 
 src_compile () {
+	addpredict /dev/snd # workaround because jackd --version is called after
+						# compilation, that tries to use /dev/snd/control*
 	local myconf=""
 
 	use debug \
Index: libffado-2.0.1.ebuild
===================================================================
--- libffado-2.0.1.ebuild	(revision 2113)
+++ libffado-2.0.1.ebuild	(working copy)
@@ -32,6 +32,8 @@
 	dev-util/scons"
 
 src_compile () {
+	addpredict /dev/snd # workaround because jackd --version is called after
+						# compilation, that tries to use /dev/snd/control*
 	local myconf=""
 
 	use debug \
Index: Manifest
===================================================================
--- Manifest	(revision 2113)
+++ Manifest	(working copy)
@@ -1,8 +1,8 @@
 AUX libffado-2.0_rc1-dbus_mainloop.patch 979 RMD160 6636780c24bf213e1871dbad9d67519c7152704d SHA1 8b4eaaa5c912ecff6a645ffadafb32cf13da3330 SHA256 86f0e0264817c1488e2c22c5bd23274f52b86c91e6d1d39cb5b9ef49237e1b56
 DIST libffado-2.0.0.tar.gz 778733 RMD160 dca255a68f67ae904b8a597669ff412d84d0b629 SHA1 474d41ad4e3e4bad952636fea47488fad3db0d93 SHA256 5d375246f7c269f21b6471cb23cc30a8886431b2b09e7cfbbcc085dba2a6d65b
 DIST libffado-2.0.1.tar.gz 777163 RMD160 c9fba20fa362923f01c226015124f42f8dbb850d SHA1 9e327cb5ad0f56e8cfa84ec2a5f3f261b57ca96a SHA256 fda254ecf9c8007374d6120cf1c3614c7758d90981bc73f494b58313da7d199c
-EBUILD libffado-2.0.0.ebuild 1372 RMD160 f23b3f982ebbf2d99c8fdbb80c0997d70e390b26 SHA1 39eb5cd41b9fe338c79f47e866a1d606241929f3 SHA256 bffea866ade4a68884cb6de500d1296233ff6c488975841c291a933a0ad185b3
-EBUILD libffado-2.0.1.ebuild 1439 RMD160 2f1356b44b57ebaf38eafa10417fd262a36a09ea SHA1 c280ddbf9d1240cbe090019054be5ba4e9293aa4 SHA256 77971720e1344a8853efa40ebc233fc6daf8c1486f0696bfdddf158eaafc9e50
-EBUILD libffado-9999.ebuild 1353 RMD160 02e15197f33cce020babc8e0efaab48835f3dea2 SHA1 d467ec84010c63adc96ccacfe55db35b9fe2f4a6 SHA256 0825af856f5cbb3b7aff2aaa1ef649de1defbfe0865a3d8bd2bf1920039e1ae7
+EBUILD libffado-2.0.0.ebuild 1503 RMD160 6684d8c60bd6599a75ac9df2b29a608580cedd86 SHA1 ed6494829d162b1a1beb5b02b9cb80d3fb9adf95 SHA256 b5d00f1975cbe35b7f45dbf84b15e396677f09017c0efc0efed06a8121e793b0
+EBUILD libffado-2.0.1.ebuild 1570 RMD160 e59c0b657c56937dc5041497b11212a22e7b471c SHA1 e2b38298f8519f6758c734ffadbf96eff0b565e3 SHA256 34b769a123ad30955ac4b02ad9b508d43a50caacb62b9a000384adb03d8d5612
+EBUILD libffado-9999.ebuild 1484 RMD160 cee44fd2aa31d6c95ae75bde730163e5864648f0 SHA1 d7ebc2e169a5bf5df8aaa5f993b6a753ed7d0ff3 SHA256 5c77edf53019e4e60a013f9cbf421a0558c76254c559994302e5ee09e329794c
 MISC ChangeLog 1338 RMD160 3ae22d38408f890151f6439ee12be68f99652a09 SHA1 0cd799fa160d3d1bd8619ceaece40b9fef643d9d SHA256 604cacd4ed63ea03db7ef76dae0f007fb1b78c6eb78f7d365098856dd62ad65e
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89
Index: libffado-9999.ebuild
===================================================================
--- libffado-9999.ebuild	(revision 2113)
+++ libffado-9999.ebuild	(working copy)
@@ -34,6 +34,8 @@
 	dev-util/scons"
 
 src_compile () {
+	addpredict /dev/snd # workaround because jackd --version is called after
+						# compilation, that tries to use /dev/snd/control*
 	local myconf=""
 
 	use debug \



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/