From 7f273220431bac2cbbe19e52f95a2d33b16e66b4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 28 Nov 2022 13:19:25 +0000 Subject: gentoo auto-resync : 28:11:2022 - 13:19:24 --- media-libs/libffado/Manifest | 3 + .../libffado-2.4.7-fix-config-load-crash.patch | 13 +++ media-libs/libffado/libffado-2.4.7.ebuild | 125 +++++++++++++++++++++ 3 files changed, 141 insertions(+) create mode 100644 media-libs/libffado/files/libffado-2.4.7-fix-config-load-crash.patch create mode 100644 media-libs/libffado/libffado-2.4.7.ebuild (limited to 'media-libs/libffado') diff --git a/media-libs/libffado/Manifest b/media-libs/libffado/Manifest index e62f7a2b2fb1..4860207f1dab 100644 --- a/media-libs/libffado/Manifest +++ b/media-libs/libffado/Manifest @@ -1,3 +1,6 @@ +AUX libffado-2.4.7-fix-config-load-crash.patch 728 BLAKE2B 066910a52b054d423abfc2656e5b9499be7b03499a74bd8df97b99b83d7c14c68e5728a4608b5082a53bd0f6d174ef645c461139018d0110cdfc2f8ad6111214 SHA512 7fedd5157bd3fae9cb70de02b5883a69caea0c0a2b80a3d86fe66d57743e127c281922afdfdfcb8cc14e492dafcf814a230d70dad8601168c615d9daf719cdd0 DIST libffado-2.4.6.tgz 1230455 BLAKE2B 1e86e7f9179e94c00a74514dbd7c0c299de6d1870f22c4d9ba14cb6b105b41c9dda62d19d0d660e84eee7e0f02c0bf7c44fbe58e24634ccf9cc9e41f1d38b5c2 SHA512 dac651233ea94c19834e810c64230bcbd5516de9e694ced1b6497ad927d734c527b3a556281676393674d33da768cb2431e7da1a0fdfc6ceb268e897029aa584 +DIST libffado-2.4.7.tgz 1231931 BLAKE2B 3c304011259ddbd35ce8fd725d38a5f50fca962981f9c5af6e377493a14985e4b96c64bcc54ba5a341028ec17dc6f2c42ce527422779f2edc6f9a1a61220cf51 SHA512 424a9ca7ded12e72d77a50d7ddf4e50dc0d55b80d725499df7609ce60d0eac8b24a41d9b8e4e74f78bdefe114b61bd5f1ec09a6d083f4a58475e66d61153f075 EBUILD libffado-2.4.6.ebuild 2828 BLAKE2B cbc12b26019fe1b6977e94d0f39bbd023450318aa9664de1993e9074bb1bfcba51421c2e4ed810a7946bc6a894e085435186e1f321263ada467336385d7b242b SHA512 32fdb2cf90817a01e665eb2ed7f336d88a2431e2aa13c26e9119f16ca2354cbd1941be6bb0bb0b5ccc06411cf4c9497e23b5255314af22c395eb785d4d42d709 +EBUILD libffado-2.4.7.ebuild 2901 BLAKE2B f0aeaca448c24dba9bb39ec2740c8e99017d8a85b80128eaaab538404507bfc5188894de97ea577b983dd6d605aff0038d911b5823736fcc026f7633e907aae9 SHA512 4ec9d1d46f24562d5cc4bad95e460c5c0985dc4ca058d11edf954bf9e70581428c445f456e3e3946e38dc5da309fb717950d5a68bc771bd747ef69f0926a9cbf MISC metadata.xml 344 BLAKE2B a7d2c27caa7e9fa72716534c406145b94bd8a13eadf57d06ea8e3148339857311bd7e8f0434edbf8a70a5e7bfec1726425e1d16734841b056caeee7754471666 SHA512 30d31f76c73ff218fa34e5f9d442e2366082bf4697038c804c093cac0e22720341691b732bf653466f8e5fc7e734c11b08a02cef7dd2a4bd93635968e2c29447 diff --git a/media-libs/libffado/files/libffado-2.4.7-fix-config-load-crash.patch b/media-libs/libffado/files/libffado-2.4.7-fix-config-load-crash.patch new file mode 100644 index 000000000000..05ede6ebf653 --- /dev/null +++ b/media-libs/libffado/files/libffado-2.4.7-fix-config-load-crash.patch @@ -0,0 +1,13 @@ +diff --git a/libffado-2.4.1/support/mixer-qt4/ffado/mixer/globalmixer.py b/libffado-2.4.1-patched/support/mixer-qt4/ffado/mixer/globalmixer.py +index 7078b0e..d184d73 100644 +--- libffado-2.4.1-old/support/mixer-qt4/ffado/mixer/globalmixer.py ++++ libffado-2.4.1/support/mixer-qt4/ffado/mixer/globalmixer.py +@@ -96,7 +96,6 @@ class GlobalMixer(QWidget): + @pyqtSlot() + def on_txtNickname_returnPressed( self ): + if self.nickname.canChangeValue(): +- asciiData = self.txtNickname.text().toAscii() +- self.nickname.setText( asciiData.data() ) ++ self.nickname.setText( self.txtNickname.text().encode('utf-8') ) + else: + self.txtNickname.setText( self.nickname.text() ) diff --git a/media-libs/libffado/libffado-2.4.7.ebuild b/media-libs/libffado/libffado-2.4.7.ebuild new file mode 100644 index 000000000000..116efcf9375f --- /dev/null +++ b/media-libs/libffado/libffado-2.4.7.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit desktop python-single-r1 scons-utils toolchain-funcs udev multilib-minimal + +DESCRIPTION="Driver for IEEE1394 (Firewire) audio interfaces" +HOMEPAGE="http://www.ffado.org" + +if [[ "${PV}" = "9999" ]]; then + inherit subversion + ESVN_REPO_URI="http://subversion.ffado.org/ffado/trunk/${PN}" +else + SRC_URI="http://www.ffado.org/files/${P}.tgz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +LICENSE="GPL-2 GPL-3" +SLOT="0" +IUSE="debug qt5 test-programs" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + virtual/pkgconfig +" +CDEPEND="${PYTHON_DEPS} + dev-cpp/libxmlpp:2.6[${MULTILIB_USEDEP}] + dev-libs/dbus-c++ + dev-libs/libconfig:=[cxx,${MULTILIB_USEDEP}] + media-libs/alsa-lib + media-libs/libiec61883[${MULTILIB_USEDEP}] + sys-apps/dbus + sys-libs/libavc1394[${MULTILIB_USEDEP}] + sys-libs/libraw1394[${MULTILIB_USEDEP}] + qt5? ( + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/PyQt5[dbus,${PYTHON_USEDEP}] + ') + x11-misc/xdg-utils + )" +DEPEND="${CDEPEND}" +RDEPEND="${CDEPEND}" + +PATCHES=( + "${FILESDIR}/libffado-2.4.7-fix-config-load-crash.patch" +) + +myescons() { + local myesconsargs=( + PREFIX="${EPREFIX}/usr" + LIBDIR="${EPREFIX}/usr/$(get_libdir)" + MANDIR="${EPREFIX}/usr/share/man" + UDEVDIR="$(get_udevdir)/rules.d" + CUSTOM_ENV=true + DETECT_USERSPACE_ENV=false + DEBUG=$(usex debug) + PYPKGDIR="$(python_get_sitedir)" + # ENABLE_OPTIMIZATIONS detects cpu type and sets flags accordingly + # -fomit-frame-pointer is added also which can cripple debugging. + # we set flags from portage instead + ENABLE_OPTIMIZATIONS=false + # This only works for JACK1>=0.122.0 or JACK2>=1.9.9. + ENABLE_SETBUFFERSIZE_API_VER=force + ) + if multilib_is_native_abi; then + myesconsargs+=( + BUILD_MIXER=$(usex qt5 true false) + BUILD_TESTS=$(usex test-programs) + ) + else + myesconsargs+=( + BUILD_MIXER=false + BUILD_TESTS=false + ) + fi + escons "${myesconsargs[@]}" "${@}" +} + +src_prepare() { + default + + # Bug #808853 + cp "${BROOT}"/usr/share/gnuconfig/config.guess admin/ || die "Failed to update config.guess" + + # Always use Qt5 + sed -i -e 's/try:/if False:/' -e 's/except.*/else:/' support/mixer-qt4/ffado/import_pyqt.py || die + + # Bugs #658052, #659226 + sed -i -e 's/^CacheDir/#CacheDir/' SConstruct || die + + multilib_copy_sources +} + +multilib_src_compile() { + tc-export CC CXX + myescons +} + +multilib_src_install() { + myescons DESTDIR="${D}" WILL_DEAL_WITH_XDG_MYSELF="True" install +} + +multilib_src_install_all() { + einstalldocs + + python_fix_shebang "${D}" + python_optimize "${D}" + + if use qt5; then + newicon "support/xdg/hi64-apps-ffado.png" "ffado.png" + newmenu "support/xdg/ffado.org-ffadomixer.desktop" "ffado-mixer.desktop" + fi +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} -- cgit v1.2.3