From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 44B84138334 for ; Thu, 28 Jun 2018 17:23:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8011E0857; Thu, 28 Jun 2018 17:23:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7D4D1E0857 for ; Thu, 28 Jun 2018 17:23:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EE21C335C99 for ; Thu, 28 Jun 2018 17:23:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 052DD2B3 for ; Thu, 28 Jun 2018 17:23:47 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1530206581.b8f01c6fb2a8d5a29eddde87cb2e09e1d66df333.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libaom/, media-libs/libaom/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libaom/files/libdirpc2.patch media-libs/libaom/files/pthread_lib2.patch media-libs/libaom/libaom-9999.ebuild X-VCS-Directories: media-libs/libaom/ media-libs/libaom/files/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: b8f01c6fb2a8d5a29eddde87cb2e09e1d66df333 X-VCS-Branch: master Date: Thu, 28 Jun 2018 17:23:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a223156a-cf0f-486f-87b1-c12dd3631dbf X-Archives-Hash: 45b16a965e435b8c6e9507d8f3b04f6b commit: b8f01c6fb2a8d5a29eddde87cb2e09e1d66df333 Author: Alexis Ballier gentoo org> AuthorDate: Thu Jun 28 14:40:39 2018 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Thu Jun 28 17:23:01 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8f01c6f media-libs/libaom: update patches for live ebuild Closes: https://bugs.gentoo.org/654430 Package-Manager: Portage-2.3.41, Repoman-2.3.9 media-libs/libaom/files/libdirpc2.patch | 48 ++++++++++++++++++++++++++++++ media-libs/libaom/files/pthread_lib2.patch | 14 +++++++++ media-libs/libaom/libaom-9999.ebuild | 2 +- 3 files changed, 63 insertions(+), 1 deletion(-) diff --git a/media-libs/libaom/files/libdirpc2.patch b/media-libs/libaom/files/libdirpc2.patch new file mode 100644 index 00000000000..cbd1b901fb3 --- /dev/null +++ b/media-libs/libaom/files/libdirpc2.patch @@ -0,0 +1,48 @@ +Index: libaom-9999/CMakeLists.txt +=================================================================== +--- libaom-9999.orig/CMakeLists.txt ++++ libaom-9999/CMakeLists.txt +@@ -234,8 +234,9 @@ if(NOT MSVC) + -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} + -DCMAKE_PROJECT_NAME=${CMAKE_PROJECT_NAME} + -DCONFIG_MULTITHREAD=${CONFIG_MULTITHREAD} +- -DHAVE_PTHREAD_H=${HAVE_PTHREAD_H} -P +- "${AOM_ROOT}/build/cmake/pkg_config.cmake" ++ -DHAVE_PTHREAD_H=${HAVE_PTHREAD_H} ++ -DLIB_SUFFIX=${LIB_SUFFIX} ++ -P "${AOM_ROOT}/build/cmake/pkg_config.cmake" + COMMENT "Writing aom.pc" VERBATIM) + add_dependencies(aom_pc aom_version) + endif() +Index: libaom-9999/build/cmake/pkg_config.cmake +=================================================================== +--- libaom-9999.orig/build/cmake/pkg_config.cmake ++++ libaom-9999/build/cmake/pkg_config.cmake +@@ -34,12 +34,13 @@ endif() + + # Write pkg-config info. + set(prefix "${CMAKE_INSTALL_PREFIX}") ++set(libdir "lib${LIB_SUFFIX}") + set(pkgconfig_file "${AOM_CONFIG_DIR}/aom.pc") + string(TOLOWER ${CMAKE_PROJECT_NAME} pkg_name) + file(WRITE "${pkgconfig_file}" "# libaom pkg-config.\n") + file(APPEND "${pkgconfig_file}" "prefix=${prefix}\n") + file(APPEND "${pkgconfig_file}" "exec_prefix=\${prefix}/bin\n") +-file(APPEND "${pkgconfig_file}" "libdir=\${prefix}/lib\n") ++file(APPEND "${pkgconfig_file}" "libdir=\${prefix}/${libdir}\n") + file(APPEND "${pkgconfig_file}" "includedir=\${prefix}/include\n\n") + file(APPEND "${pkgconfig_file}" "Name: ${pkg_name}\n") + file(APPEND "${pkgconfig_file}" +@@ -49,10 +50,10 @@ file(APPEND "${pkgconfig_file}" "Require + file(APPEND "${pkgconfig_file}" "Conflicts:\n") + if(CONFIG_MULTITHREAD AND HAVE_PTHREAD_H) + file(APPEND "${pkgconfig_file}" +- "Libs: -L\${prefix}/lib -l${pkg_name} -lm -lpthread\n") ++ "Libs: -L\${prefix}/${libdir} -l${pkg_name} -lm -lpthread\n") + file(APPEND "${pkgconfig_file}" "Libs.private: -lm -lpthread\n") + else() +- file(APPEND "${pkgconfig_file}" "Libs: -L\${prefix}/lib -l${pkg_name} -lm\n") ++ file(APPEND "${pkgconfig_file}" "Libs: -L\${prefix}/${libdir} -l${pkg_name} -lm\n") + file(APPEND "${pkgconfig_file}" "Libs.private: -lm\n") + endif() + file(APPEND "${pkgconfig_file}" "Cflags: -I\${prefix}/include\n") diff --git a/media-libs/libaom/files/pthread_lib2.patch b/media-libs/libaom/files/pthread_lib2.patch new file mode 100644 index 00000000000..ec4b9107e99 --- /dev/null +++ b/media-libs/libaom/files/pthread_lib2.patch @@ -0,0 +1,14 @@ +Index: libaom-9999/CMakeLists.txt +=================================================================== +--- libaom-9999.orig/CMakeLists.txt ++++ libaom-9999/CMakeLists.txt +@@ -575,6 +575,9 @@ + include("${AOM_ROOT}/build/cmake/exports.cmake") + setup_exports_target() + set_target_properties(aom PROPERTIES SOVERSION 0) ++ if(HAVE_PTHREAD_H AND CONFIG_MULTITHREAD) ++ target_link_libraries(aom ${AOM_LIB_LINK_TYPE} Threads::Threads) ++ endif() + endif() + + # Handle user supplied compile and link flags last to ensure they're obeyed. diff --git a/media-libs/libaom/libaom-9999.ebuild b/media-libs/libaom/libaom-9999.ebuild index 68a8ddfdb1a..29e0528f563 100644 --- a/media-libs/libaom/libaom-9999.ebuild +++ b/media-libs/libaom/libaom-9999.ebuild @@ -36,7 +36,7 @@ REQUIRED_USE=" cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) " -PATCHES=( "${FILESDIR}/libdirpc.patch" "${FILESDIR}/pthread_lib.patch" ) +PATCHES=( "${FILESDIR}/libdirpc2.patch" "${FILESDIR}/pthread_lib2.patch" ) src_prepare() { sed -e 's/lib"/lib${LIB_SUFFIX}"/' -i CMakeLists.txt || die