diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2020-05-20 22:35:12 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2020-05-20 22:35:12 +0000 |
commit | eee7e5b8444dc749287f2eed48cd04312ad71dd5 (patch) | |
tree | ab704801880c75caeaa75c9317d093e46108ccaa | |
parent | 2020-05-20 22:05:30 UTC (diff) | |
parent | dev-util/ply: remove old ebuild (diff) | |
download | gentoo-eee7e5b8444dc749287f2eed48cd04312ad71dd5.tar.gz gentoo-eee7e5b8444dc749287f2eed48cd04312ad71dd5.tar.bz2 gentoo-eee7e5b8444dc749287f2eed48cd04312ad71dd5.zip |
Merge updates from master
23 files changed, 650 insertions, 152 deletions
diff --git a/app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild b/app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild index 1c1f06337939..ca8a59cdb3b4 100644 --- a/app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild +++ b/app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 COMMIT=ccbb0c86c9eb inherit desktop qmake-utils readme.gentoo-r1 diff --git a/app-text/djview/djview-4.10.6-r1.ebuild b/app-text/djview/djview-4.10.6-r1.ebuild index fa5fe0ff6bd9..6ce9a8fd2109 100644 --- a/app-text/djview/djview-4.10.6-r1.ebuild +++ b/app-text/djview/djview-4.10.6-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit autotools gnome2-utils flag-o-matic nsplugins qmake-utils toolchain-funcs versionator xdg-utils +inherit autotools flag-o-matic nsplugins qmake-utils toolchain-funcs xdg-utils DESCRIPTION="Portable DjVu viewer using Qt" HOMEPAGE="http://djvu.sourceforge.net/djview4.html" @@ -23,6 +23,7 @@ RDEPEND=" dev-qt/qtprintsupport:5 dev-qt/qtwidgets:5" DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 >=sys-devel/autoconf-2.67 virtual/pkgconfig nsplugin? ( dev-libs/glib:2 )" @@ -76,10 +77,10 @@ src_install() { pkg_postinst() { xdg_desktop_database_update - gnome2_icon_cache_update + xdg_icon_cache_update } pkg_postrm() { xdg_desktop_database_update - gnome2_icon_cache_update + xdg_icon_cache_update } diff --git a/dev-python/toml/Manifest b/dev-python/toml/Manifest index 692ee569c924..ab49645f677f 100644 --- a/dev-python/toml/Manifest +++ b/dev-python/toml/Manifest @@ -1,2 +1,4 @@ DIST toml-0.10.0-1.tar.gz 20396 BLAKE2B 3ddcb4cadfc68239cfcb34938a785b27326991ea89966aa6ba3ff2c8a430099664dce1474adf453f2d372b0d149c43584bce9c7abee4c8cbec3126adb3d2ab95 SHA512 ebad9d87606cf66f3db5abb2b0abd333d5536037446df131bda3f8138c33a6495a8923fc583328c27632d39448790e0e6788745d8acd7d600ea3ce57cb7dbd45 +DIST toml-0.10.1-1.tar.gz 22559 BLAKE2B 17d9d9c78f2b78a6fc5bc0efd8530af5514d2f965eb1896a0eaca9a6d8ce1dda3a5dc825a8b6cd2a2096a582bd35952e6f0a3372021c739c69186d5a2c5642be SHA512 0a2348bffc889e63f4c6f8ae4faf022cceff069b178d086a37ff03e97e0f24b4b5a72810a345692f21810f3f41908b6981da902862adb06286bdb2941e9e0d60 +DIST toml-test-280497fa5f12e43d7233aed0d74e07ca61ef176b.tar.gz 19593 BLAKE2B e9deba7c5d1eea7bd87fcf5e5c74bda4c2b9e9686e597e3ad51516f60eb8d192fb01d052ac57729c6f0851e2715cc6409a904affd637c9b099cabc1b12ad5d52 SHA512 7bd69b8c14f09bf431094b52d988eb233922527719ba5047ff769d2e709c2039fb6fb1c8144e630ad2a58835d19e0e4cc51433a427596d37f8eccb6d73d7e5c0 DIST toml-test-39bb76d631ba103a94b377aaf52c979456677fb1.tar.gz 19304 BLAKE2B 5bb73ff91146ee85f6844132cdfc06673cdb384810c6c978cfc9f8ce6ba8b1607a0dc2d03aa868791d5fd33d00ebac96a4cd57a98948a3ef9318a52417904eda SHA512 931ba91b77da576979bde290c99f6cb1a2eeec3aee55b5041b0216094c584934d560487d329df21caa64b405ec50b4dd417dc910bbe4f15b1440686efc58da29 diff --git a/dev-python/toml/toml-0.10.1.ebuild b/dev-python/toml/toml-0.10.1.ebuild new file mode 100644 index 000000000000..2dc1660a0cae --- /dev/null +++ b/dev-python/toml/toml-0.10.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) + +inherit distutils-r1 + +TOML_TEST_VER="280497fa5f12e43d7233aed0d74e07ca61ef176b" + +DESCRIPTION="Python library for handling TOML files" +HOMEPAGE="https://github.com/uiri/toml" +SRC_URI="https://github.com/uiri/${PN}/archive/${PV}.tar.gz -> ${P}-1.tar.gz + test? ( https://github.com/BurntSushi/toml-test/archive/${TOML_TEST_VER}.tar.gz -> toml-test-${TOML_TEST_VER}.tar.gz )" +IUSE="test" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' 'python3*') )" + +DOCS=( README.rst ) + +distutils_enable_tests pytest + +python_prepare_all() { + if use test; then + mv "${WORKDIR}/toml-test-${TOML_TEST_VER#v}" "${S}/toml-test" || die + fi + + distutils-r1_python_prepare_all +} diff --git a/dev-util/kdbg/kdbg-3.0.1.ebuild b/dev-util/kdbg/kdbg-3.0.1.ebuild index 5a91055027dd..a6909362f272 100644 --- a/dev-util/kdbg/kdbg-3.0.1.ebuild +++ b/dev-util/kdbg/kdbg-3.0.1.ebuild @@ -9,7 +9,7 @@ QTMIN=5.12.3 inherit ecm DESCRIPTION="Graphical debugger interface" -HOMEPAGE="http://www.kdbg.org/" +HOMEPAGE="https://www.kdbg.org/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" diff --git a/dev-util/ply/Manifest b/dev-util/ply/Manifest index 6438cf1567c9..db6ffb998c1f 100644 --- a/dev-util/ply/Manifest +++ b/dev-util/ply/Manifest @@ -1,2 +1 @@ -DIST ply-0_pre20160313.tar.gz 38530 BLAKE2B 3c709e98c32cfd5dce389cf8829e135e0ecdc7907c83dcd2eed88c9c4c5f5a81093cc9ca7045b0cdb18566f0a8b49ddb4d3ba7320c7eaf56a350e45345e8d7bf SHA512 2de2ca2751574fe23b48188b0e8d1b4f1afe46003cbdefa69aeadaed0442675dad42b6cbfd161ebfbe006fbb21d447be4fca0ea7350b1409207473511f685d47 DIST ply-2.1.1.tar.gz 71578 BLAKE2B b63d0bd355985035b8d1c934c13982e21eeda0d710f40b8131562e9ef6a21a3eaf04960b871f5ab83d718ab1726450996988a2aef1a6fbd2e8f1a3c55db92beb SHA512 fdc66d752989a239e01d2746e6c56610c2c945fbeeff8f2a79be1db487a6cbba365d1bd1b553d25c43a3fdc3634ab96bf4a37ab4f694c6eb6eba82c35b37231e diff --git a/dev-util/ply/ply-0_pre20160313.ebuild b/dev-util/ply/ply-0_pre20160313.ebuild deleted file mode 100644 index 46367c55cfcd..000000000000 --- a/dev-util/ply/ply-0_pre20160313.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools linux-info - -DESCRIPTION="Dynamic instrumentation of the Linux kernel with BPF and kprobes" -HOMEPAGE="https://github.com/iovisor/ply" -EGIT_COMMIT="cfc56c789ad1eff1080ecb0dad18d009b91ae8ea" -SRC_URI="https://github.com/iovisor/ply/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -S=${WORKDIR}/${PN}-${EGIT_COMMIT} - -pkg_pretend() { - local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF - ~BPF_JIT ~HAVE_BPF_JIT ~BPF_EVENTS" - - check_extra_config -} - -src_prepare() { - eapply_user - eautoreconf - default -} - -src_configure() { - local econf_args=() kerneldir_orig - if [[ -d ${KERNEL_DIR} ]]; then - # Using KBUILD_OUTPUT can fail, depending on the source tree - # state (it might demand that we make mrproper). Therefore, - # create a symlink copy of the source tree so that we are free - # to clean things up as needed. - kerneldir_orig=${KERNEL_DIR} - cp -sR "$(realpath "${kerneldir_orig}")" "${T}/kerneldir" || die - export KERNEL_DIR="${T}/kerneldir" - pushd "${KERNEL_DIR}" || die - # avoid sandbox violation for scripts/kconfig/.conf.cmd - find . -name '\.*' -delete - cp "${kerneldir_orig}/.config" ./.config || die - set_arch_to_kernel - make mrproper oldconfig prepare || die - popd || die - econf_args+=(--with-kerneldir="${KERNEL_DIR}") - fi - econf "${econf_args[@]}" -} - -src_install() { - default - rm -f "${ED}/usr/share/doc/${P}/COPYING" -} diff --git a/mail-client/alpine/alpine-2.22-r1.ebuild b/mail-client/alpine/alpine-2.22-r1.ebuild index 95787b03996c..9a57c1139c81 100644 --- a/mail-client/alpine/alpine-2.22-r1.ebuild +++ b/mail-client/alpine/alpine-2.22-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="http://alpine.x10host.com/alpine/release/src/${P}.tar.xz LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="+chappa doc ipv6 kerberos ldap libressl nls onlyalpine passfile smime spell ssl threads" DEPEND=">=sys-libs/ncurses-5.1:0= diff --git a/media-sound/qtagger/qtagger-1.0.1_p20150402.ebuild b/media-sound/qtagger/qtagger-1.0.1_p20150402.ebuild index 460a0e654404..f85a7a431edc 100644 --- a/media-sound/qtagger/qtagger-1.0.1_p20150402.ebuild +++ b/media-sound/qtagger/qtagger-1.0.1_p20150402.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 CMAKE_MAKEFILE_GENERATOR="emake" COMMIT=0e74fe022ddbb689f7bae0460a21be303114029b -inherit cmake-utils qmake-utils vcs-snapshot +inherit cmake qmake-utils DESCRIPTION="Simple Qt5 ID3v2 tag editor" HOMEPAGE="https://github.com/DOOMer/qtagger" @@ -16,6 +16,7 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" +BDEPEND="dev-qt/linguist-tools:5" DEPEND=" dev-qt/qtcore:5 dev-qt/qtgui:5 @@ -24,12 +25,14 @@ DEPEND=" " RDEPEND="${DEPEND}" +S="${WORKDIR}/${PN}-${COMMIT}" + src_prepare() { # fix doc installation path sed -i -e "s/doc\/${PN}/doc\/${PF}/" CMakeLists.txt || die sed -i -e "s/share%1doc%1qtagger/share%1doc%1${PF}/" src/mainwindow.cpp || die - cmake-utils_src_prepare + cmake_src_prepare } src_configure() { @@ -37,11 +40,11 @@ src_configure() { -DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON -DQT_LRELEASE_EXECUTABLE=$(qt5_get_bindir)/lrelease ) - cmake-utils_src_configure + cmake_src_configure } src_install() { - cmake-utils_src_install + cmake_src_install rm "${ED}"/usr/share/doc/${PF}/LICENSE || die } diff --git a/media-sound/qtscrobbler/qtscrobbler-0.11_pre20130123.ebuild b/media-sound/qtscrobbler/qtscrobbler-0.11_pre20130123.ebuild index 18da2c44154b..861d0f3cab74 100644 --- a/media-sound/qtscrobbler/qtscrobbler-0.11_pre20130123.ebuild +++ b/media-sound/qtscrobbler/qtscrobbler-0.11_pre20130123.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 COMMIT=33ed278b9b543554fd6a556fd391eb4c78faab07 MY_PN=qtscrob MY_P=${MY_PN}-${PV} -inherit desktop gnome2-utils qmake-utils toolchain-funcs +inherit desktop qmake-utils toolchain-funcs xdg-utils DESCRIPTION="Updates last.fm profiles using information from supported portable music players" HOMEPAGE="http://qtscrob.sourceforge.net/" @@ -17,6 +17,11 @@ SLOT="0" KEYWORDS="amd64 x86" IUSE="" +BDEPEND=" + app-arch/unzip + dev-qt/linguist-tools:5 + virtual/pkgconfig +" RDEPEND=" dev-qt/qtcore:5 dev-qt/qtgui:5 @@ -25,9 +30,7 @@ RDEPEND=" dev-qt/qtwidgets:5 media-libs/libmtp:= net-misc/curl" -DEPEND="${RDEPEND} - dev-qt/linguist-tools:5 - virtual/pkgconfig" +DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_PN}-code-${COMMIT}" @@ -56,5 +59,10 @@ src_install() { einstalldocs } -pkg_postinst() { gnome2_icon_cache_update; } -pkg_postrm() { gnome2_icon_cache_update; } +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/net-mail/isync/isync-1.3.1.ebuild b/net-mail/isync/isync-1.3.1.ebuild index 83a9098db3da..0cdbe37f5f62 100644 --- a/net-mail/isync/isync-1.3.1.ebuild +++ b/net-mail/isync/isync-1.3.1.ebuild @@ -13,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 autotools else SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.gz" - KEYWORDS="amd64 ~arm ~ppc x86" + KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86" fi IUSE="libressl sasl ssl zlib" diff --git a/net-mail/isync/isync-9999.ebuild b/net-mail/isync/isync-9999.ebuild index c9d9c4a0112f..c910f9673b0a 100644 --- a/net-mail/isync/isync-9999.ebuild +++ b/net-mail/isync/isync-9999.ebuild @@ -13,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 autotools else SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~ppc ~x86" + KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" fi IUSE="libressl sasl ssl zlib" diff --git a/sci-libs/liborigin/Manifest b/sci-libs/liborigin/Manifest index 9f0b954a93d3..325e5f11cc4c 100644 --- a/sci-libs/liborigin/Manifest +++ b/sci-libs/liborigin/Manifest @@ -1 +1 @@ -DIST liborigin2-20110829.zip 158364 BLAKE2B fb6902142fe20bd29c8f3dd4c6d0c77b6f94e66f082c6950809367a4049adc1092a5e1abc2705670a15a32d1d680c14fc05061d34d422cd55689bb778ee47fde SHA512 d0e4013a686fbc61c58b1f39e98aace91978bcadffbb2ef9d32576a3b2f19cc2443d595da2d3ecc19298ec6e29c20717db94e1fda6a64d71f3763841228a01c0 +DIST liborigin-3.0.0.tar.gz 156736 BLAKE2B 1c1fda3fc3ad47394b65637a808eca1ecf4cff19eb49de0811e50d395c3b7759f8ec19c680ed83f7a8191022aa17b4ba1211baa6ea16a48a5153736d9138ed5c SHA512 1cf00ec33a90b4baede0cd3b2a3e6d78ca4810511c6be58c4d1cce12e7e1001752422fe2ddbca80cd9016b91c5321eca1ab43606ace3acc21955a034ebc4094c diff --git a/sci-libs/liborigin/files/liborigin-3.0.0-buildsystem.patch b/sci-libs/liborigin/files/liborigin-3.0.0-buildsystem.patch new file mode 100644 index 000000000000..d8444dedafed --- /dev/null +++ b/sci-libs/liborigin/files/liborigin-3.0.0-buildsystem.patch @@ -0,0 +1,166 @@ +From a751f00ebba9fa226860ed4e2c1ae5fa35622e89 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Wed, 20 May 2020 22:33:08 +0200 +Subject: [PATCH 1/4] Don't install bundled tree.hh + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 17c613b..a6b4b8a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -25,7 +25,6 @@ set (devel-headers + OriginObj.h + OriginFile.h + OriginParser.h +- tree.hh + ) + + # LIB_SUFFIX can either be defined at cmake command line: cmake -DLIB_SUFFIX:STRING=64 ... +-- +2.26.2 + + +From 0b4fa1ce0946bc293d798484c609c6a7ac5ab50a Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Wed, 20 May 2020 22:35:02 +0200 +Subject: [PATCH 2/4] No static target, compile opj2dat against the shared lib + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + CMakeLists.txt | 8 +------- + 1 file changed, 1 insertion(+), 7 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a6b4b8a..6f2d87b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -52,22 +52,16 @@ set_target_properties(origin PROPERTIES + VERSION ${LIBORIGIN_VERSION_MAJOR}.${LIBORIGIN_VERSION_MINOR}.${LIBORIGIN_VERSION_BUGFIX} + SOVERSION ${LIBORIGIN_VERSION_MAJOR} ) + +-# static library +-add_library (origin-static STATIC ${sources}) +-set_target_properties(origin-static PROPERTIES OUTPUT_NAME "origin" POSITION_INDEPENDENT_CODE ON) +- + # inform on log setting + if (DEFINED GENERATE_CODE_FOR_LOG) + message("File parsing will be logged.") + target_compile_definitions(origin PRIVATE GENERATE_CODE_FOR_LOG=${GENERATE_CODE_FOR_LOG}) +- target_compile_definitions(origin-static PRIVATE GENERATE_CODE_FOR_LOG=${GENERATE_CODE_FOR_LOG}) + else() + message("File parsing will NOT be logged. Define GENERATE_CODE_FOR_LOG to activate logging.") + endif () + + # install libraries + install(TARGETS origin DESTINATION lib${LIB_SUFFIX} OPTIONAL) +-install(TARGETS origin-static DESTINATION lib${LIB_SUFFIX} OPTIONAL) + + # install headers + install(FILES ${devel-headers} DESTINATION include/liborigin) +@@ -77,7 +71,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/liborigin.pc DESTINATION lib${LIB_SUFF + + # command line util + add_executable(opj2dat opj2dat.cpp) +-target_link_libraries (opj2dat origin-static) ++target_link_libraries (opj2dat origin) + + install(TARGETS opj2dat DESTINATION bin OPTIONAL) + +-- +2.26.2 + + +From 5f4c497408a6f144e581dd17fb3e49963e8b6b2b Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Wed, 20 May 2020 22:43:52 +0200 +Subject: [PATCH 3/4] Don't install README COPYING etc., distro package does + that + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6f2d87b..4fc16e0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -76,7 +76,6 @@ target_link_libraries (opj2dat origin) + install(TARGETS opj2dat DESTINATION bin OPTIONAL) + + # documentation +-install(FILES COPYING FORMAT README DESTINATION share/doc/liborigin OPTIONAL) + configure_file(doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) + find_package(Doxygen) + if(DOXYGEN_FOUND) +-- +2.26.2 + + +From bb554d88b78e7575c04cf3e79098f35b776c3878 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Wed, 20 May 2020 22:47:22 +0200 +Subject: [PATCH 4/4] Drop 'OPTIONAL' from install targets, add ENABLE_TOOLS + option + +I've never seen an optional install of library. +ENABLE_TOOLS takes care of the binary. +Doxygen is already optional. + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + CMakeLists.txt | 14 +++++++++----- + 1 file changed, 9 insertions(+), 5 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4fc16e0..1759eee 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -9,6 +9,8 @@ set(LIBORIGIN_VERSION_MAJOR 3) + set(LIBORIGIN_VERSION_MINOR 0) + set(LIBORIGIN_VERSION_BUGFIX 0) + ++option(ENABLE_TOOLS "Install opj2dat command line util" ON) ++ + # compile-time configuration variables to be linked in + configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) + include_directories(${CMAKE_CURRENT_BINARY_DIR}) +@@ -61,7 +63,7 @@ else() + endif () + + # install libraries +-install(TARGETS origin DESTINATION lib${LIB_SUFFIX} OPTIONAL) ++install(TARGETS origin DESTINATION lib${LIB_SUFFIX}) + + # install headers + install(FILES ${devel-headers} DESTINATION include/liborigin) +@@ -70,10 +72,12 @@ install(FILES ${devel-headers} DESTINATION include/liborigin) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/liborigin.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig) + + # command line util +-add_executable(opj2dat opj2dat.cpp) +-target_link_libraries (opj2dat origin) ++if(ENABLE_TOOLS) ++ add_executable(opj2dat opj2dat.cpp) ++ target_link_libraries (opj2dat origin) + +-install(TARGETS opj2dat DESTINATION bin OPTIONAL) ++ install(TARGETS opj2dat DESTINATION bin) ++endif() + + # documentation + configure_file(doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) +@@ -82,5 +86,5 @@ if(DOXYGEN_FOUND) + add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_CURRENT_BINARY_DIR}/html) +- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/liborigin OPTIONAL) ++ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/liborigin) + endif(DOXYGEN_FOUND) +-- +2.26.2 + diff --git a/sci-libs/liborigin/files/liborigin-3.0.0-missing-header.patch b/sci-libs/liborigin/files/liborigin-3.0.0-missing-header.patch new file mode 100644 index 000000000000..162dd93c3c5e --- /dev/null +++ b/sci-libs/liborigin/files/liborigin-3.0.0-missing-header.patch @@ -0,0 +1,38 @@ +From 78da3c4456cef15c91b5e5fcc1e82ca2364ea654 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Wed, 20 May 2020 22:28:21 +0200 +Subject: [PATCH] Add missing header + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + OriginAnyParser.cpp | 1 + + opj2dat.cpp | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/OriginAnyParser.cpp b/OriginAnyParser.cpp +index 07a619e..c90f6e4 100644 +--- a/OriginAnyParser.cpp ++++ b/OriginAnyParser.cpp +@@ -22,6 +22,7 @@ + #include "OriginAnyParser.h" + #include <sstream> + #include <cinttypes> ++#include <iostream> + + /* define a macro to get an int (or uint) from a istringstream in binary mode */ + #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ +diff --git a/opj2dat.cpp b/opj2dat.cpp +index 230ac84..67b0815 100644 +--- a/opj2dat.cpp ++++ b/opj2dat.cpp +@@ -31,6 +31,7 @@ + #include <cmath> + #include <fstream> + #include <sstream> ++#include <iostream> + #include <string> + + using namespace std; +-- +2.26.2 + diff --git a/sci-libs/liborigin/files/liborigin-3.0.0-no-exit-calls.patch b/sci-libs/liborigin/files/liborigin-3.0.0-no-exit-calls.patch new file mode 100644 index 000000000000..44b56a296fde --- /dev/null +++ b/sci-libs/liborigin/files/liborigin-3.0.0-no-exit-calls.patch @@ -0,0 +1,89 @@ +From a8b25b489b48086e2616df98688969f89e63fa69 Mon Sep 17 00:00:00 2001 +From: Miquel Garriga <gbmiquel@gmail.com> +Date: Fri, 23 Nov 2018 00:15:04 +0100 +Subject: [PATCH] Remove exit() calls + +--- + OriginFile.cpp | 15 ++++++++++----- + OriginFile.h | 2 +- + opj2dat.cpp | 2 ++ + 3 files changed, 13 insertions(+), 6 deletions(-) + +diff --git a/OriginFile.cpp b/OriginFile.cpp +index f6c41b4..bcdcccb 100644 +--- a/OriginFile.cpp ++++ b/OriginFile.cpp +@@ -33,14 +33,15 @@ + #include <string> + + OriginFile::OriginFile(const string& fileName) +-: fileVersion(0) ++: fileVersion(0), ioError(0) + { + ifstream file(fileName.c_str(), ios_base::binary); + + if (!file.is_open()) + { +- cerr << "Could not open " << fileName.c_str() << "!" << endl; +- exit(EXIT_FAILURE); ++ cerr << endl << "liborigin: " << strerror(errno) << ": " << fileName.c_str() << endl; ++ ioError = errno; ++ return; + } + + #ifdef GENERATE_CODE_FOR_LOG +@@ -48,8 +49,9 @@ OriginFile::OriginFile(const string& fileName) + logfile = fopen("./opjfile.log", "w"); + if (logfile == nullptr) + { +- cerr << "Could not open opjfile.log !" << endl; +- exit(EXIT_FAILURE); ++ cerr << endl << "liborigin: " << strerror(errno) << ": opjfile.log" << endl; ++ ioError = errno; ++ return; + } + #endif // GENERATE_CODE_FOR_LOG + +@@ -152,10 +154,13 @@ OriginFile::OriginFile(const string& fileName) + fclose(logfile); + #endif // GENERATE_CODE_FOR_LOG + parser.reset(createOriginAnyParser(fileName)); ++ ioError=0; + } + + bool OriginFile::parse() + { ++ if (ioError != 0) ++ return false; + parser->buildVersion = buildVersion; + parser->fileVersion = fileVersion; + return parser->parse(); +diff --git a/OriginFile.h b/OriginFile.h +index 80b6ff2..3a49395 100644 +--- a/OriginFile.h ++++ b/OriginFile.h +@@ -70,7 +70,7 @@ public: + string resultsLogString() const; //!< get Results Log + + private: +- unsigned int fileVersion, buildVersion; ++ unsigned int fileVersion, buildVersion, ioError; + unique_ptr<OriginParser> parser; + }; + +diff --git a/opj2dat.cpp b/opj2dat.cpp +index ff53309..230ac84 100644 +--- a/opj2dat.cpp ++++ b/opj2dat.cpp +@@ -54,6 +54,8 @@ int main(int argc, char *argv[]) { + OriginFile opj(inputfile); + int status = opj.parse(); + cout << "Parsing status = " << status << endl; ++ if (! status) ++ return -1; + cout << "OPJ PROJECT \"" << inputfile.c_str() << "\" VERSION = " << opj.version() << endl; + + cout << "number of datasets = " << opj.datasetCount() << endl; +-- +2.26.2 + diff --git a/sci-libs/liborigin/files/liborigin-3.0.0-no-standard-streams.patch b/sci-libs/liborigin/files/liborigin-3.0.0-no-standard-streams.patch new file mode 100644 index 000000000000..227ce7b14d5e --- /dev/null +++ b/sci-libs/liborigin/files/liborigin-3.0.0-no-standard-streams.patch @@ -0,0 +1,210 @@ +From 6cb6d9b328195e11c1f168f6e4b915b522c7089f Mon Sep 17 00:00:00 2001 +From: Stefan Gerlach <stefan.gerlach@uni-konstanz.de> +Date: Wed, 15 May 2019 23:16:09 +0200 +Subject: [PATCH 1/3] do not output to standard streams (cout, + cerr) by default + +it might be better to hide all such usage behind #ifdefs, +since the streams might not belong to the shared library + +provided by Ivan Krylov (Ropj) +--- + OriginAnyParser.cpp | 11 +++++------ + OriginAnyParser.h | 2 +- + OriginFile.cpp | 2 -- + 3 files changed, 6 insertions(+), 9 deletions(-) + +diff --git a/OriginAnyParser.cpp b/OriginAnyParser.cpp +index d45026b..ff7b8f7 100644 +--- a/OriginAnyParser.cpp ++++ b/OriginAnyParser.cpp +@@ -756,7 +756,7 @@ void OriginAnyParser::readProjectTree() { + + // log info on project tree + #ifdef GENERATE_CODE_FOR_LOG +- outputProjectTree(); ++ outputProjectTree(cout); + #endif // GENERATE_CODE_FOR_LOG + + return; +@@ -2835,7 +2835,6 @@ void OriginAnyParser::getColorMap(ColorMap& cmap, const string& cmapdata, unsign + // check we have enough data to fill the map + unsigned int minDataSize = cmoffset + 0x114 + (colorMapSize+2)*0x38; + if (minDataSize > cmapdatasz) { +- cerr << "WARNING: Too few data while getting ColorMap. Needed: at least " << minDataSize << " bytes. Have: " << cmapdatasz << " bytes." << endl; + LOG_PRINT(logfile, "WARNING: Too few data while getting ColorMap. Needed: at least %d bytes. Have: %d bytes.\n", minDataSize, cmapdatasz) + return; + } +@@ -2988,15 +2987,15 @@ void OriginAnyParser::getProjectFolderProperties(tree<ProjectNode>::iterator cur + (*current_folder).modificationDate = doubleToPosixTime(modificationDate); + } + +-void OriginAnyParser::outputProjectTree() { ++void OriginAnyParser::outputProjectTree(std::ostream & out) { + size_t windowsCount = spreadSheets.size()+matrixes.size()+excels.size()+graphs.size()+notes.size(); + +- cout << "Project has " << windowsCount << " windows." << endl; +- cout << "Origin project Tree" << endl; ++ out << "Project has " << windowsCount << " windows." << endl; ++ out << "Origin project Tree" << endl; + + char cdsz[21]; + for (tree<ProjectNode>::iterator it = projectTree.begin(projectTree.begin()); it != projectTree.end(projectTree.begin()); ++it) { + strftime(cdsz, sizeof(cdsz), "%F %T", gmtime(&(*it).creationDate)); +- cout << string(projectTree.depth(it) - 1, ' ') << (*it).name.c_str() << "\t" << cdsz << endl; ++ out << string(projectTree.depth(it) - 1, ' ') << (*it).name.c_str() << "\t" << cdsz << endl; + } + } +diff --git a/OriginAnyParser.h b/OriginAnyParser.h +index ed62bbb..bd7c1ae 100644 +--- a/OriginAnyParser.h ++++ b/OriginAnyParser.h +@@ -68,7 +68,7 @@ protected: + void getZcolorsMap(ColorMap&, const string&, unsigned int); + void getProjectLeafProperties(tree<ProjectNode>::iterator, const string&, unsigned int); + void getProjectFolderProperties(tree<ProjectNode>::iterator, const string&, unsigned int); +- void outputProjectTree(); ++ void outputProjectTree(std::ostream &); + + inline time_t doubleToPosixTime(double jdt) + { +diff --git a/OriginFile.cpp b/OriginFile.cpp +index 5ac8e22..dba050f 100644 +--- a/OriginFile.cpp ++++ b/OriginFile.cpp +@@ -39,7 +39,6 @@ OriginFile::OriginFile(const string& fileName) + + if (!file.is_open()) + { +- cerr << endl << "liborigin: " << strerror(errno) << ": " << fileName.c_str() << endl; + ioError = errno; + return; + } +@@ -49,7 +48,6 @@ OriginFile::OriginFile(const string& fileName) + logfile = fopen("./opjfile.log", "w"); + if (logfile == nullptr) + { +- cerr << endl << "liborigin: " << strerror(errno) << ": opjfile.log" << endl; + ioError = errno; + return; + } +-- +2.26.2 + + +From 588bbc357cd34b9d353470ed6c0632b6f00805f5 Mon Sep 17 00:00:00 2001 +From: Stefan Gerlach <stefan.gerlach@uni-konstanz.de> +Date: Wed, 15 May 2019 23:28:46 +0200 +Subject: [PATCH 2/3] fix bugs found by UBSan + + - check values before casting to enum Attach + - default-initialize sensitive struct elements + +provided by Ivan Krylov (Ropj) +--- + OriginAnyParser.cpp | 1 + + OriginObj.h | 5 ++++- + README | 3 +++ + 3 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/OriginAnyParser.cpp b/OriginAnyParser.cpp +index ff7b8f7..9f9731c 100644 +--- a/OriginAnyParser.cpp ++++ b/OriginAnyParser.cpp +@@ -1543,6 +1543,7 @@ void OriginAnyParser::getAnnotationProperties(const string& anhd, unsigned int a + GET_SHORT(stmp, r.bottom) + + unsigned char attach = anhd[0x28]; ++ if (attach >= (unsigned char)Attach::End_) attach = Attach::Frame; + unsigned char border = anhd[0x29]; + + Color color = getColor(anhd.substr(0x33,4)); +diff --git a/OriginObj.h b/OriginObj.h +index 3a9f719..aeeeb6b 100644 +--- a/OriginObj.h ++++ b/OriginObj.h +@@ -67,7 +67,7 @@ namespace Origin + enum DayOfWeekFormat {DAY_DDD = 0, DAY_DDDD = 1, DAY_LETTER = 2}; + + enum NumericDisplayType {DefaultDecimalDigits = 0, DecimalPlaces = 1, SignificantDigits = 2}; +- enum Attach {Frame = 0, Page = 1, Scale = 2}; ++ enum Attach {Frame = 0, Page = 1, Scale = 2, End_}; + enum BorderType {BlackLine = 0, Shadow = 1, DarkMarble = 2, WhiteOut = 3, BlackOut = 4, None = -1}; + enum FillPattern {NoFill = 0, BDiagDense = 1, BDiagMedium = 2, BDiagSparse = 3, FDiagDense = 4, FDiagMedium = 5, FDiagSparse = 6, + DiagCrossDense = 7, DiagCrossMedium = 8, DiagCrossSparse = 9, HorizontalDense = 10, HorizontalMedium = 11, HorizontalSparse = 12, +@@ -345,6 +345,7 @@ namespace Origin + , width(8) + , index(_index) + , view(DataView) ++ , colorMap() + {coordinates.push_back(10.0);coordinates.push_back(10.0);coordinates.push_back(1.0);coordinates.push_back(1.0);}; + }; + +@@ -895,9 +896,11 @@ namespace Origin + GraphLayer() + : backgroundColor({Color::Regular, {Color::White}}) + , borderType(BlackLine) ++ , xAxis(), yAxis(), zAxis() + , histogramBin(0.5) + , histogramBegin(0.0) + , histogramEnd(10.0) ++ , colorMap() + , xAngle(0) + , yAngle(0) + , zAngle(0) +diff --git a/README b/README +index 1dd56ef..598eacc 100644 +--- a/README ++++ b/README +@@ -7,6 +7,9 @@ It is based on the code at + http://sourceforge.net/projects/liborigin + http://soft.proindependent.com/liborigin2 + ++Additionally, some fixes were applied to silence UBSan warnings caused by ++uninitialised POD struct members. ++ + AUTHORS: Knut Franke, Miquel Garriga, Stefan Gerlach, Alex Kargovsky, Russell Standish, Ion Vasilief + + DEPENDENCIES: tree.hh (included) http://tree.phi-sci.com/ +-- +2.26.2 + + +From 88b4de31e1860b8b5de6e3eea4a32e92f2e58c71 Mon Sep 17 00:00:00 2001 +From: Stefan Gerlach <stefan.gerlach@uni-konstanz.de> +Date: Wed, 15 May 2019 23:32:50 +0200 +Subject: [PATCH 3/3] readProjectTree: provide root node to append + to + +append_child() is not supposed to work on an empty tree, +and I couldn't find any initialization before its use. +All inserted nodes seemed to end up below tree_node::feet +(or something) and were not cleaned up by the destructor. + +Using insert() to create a dummy node for others to be +children of fixes the leak. + +provided by Ivan Krylov (Ropj) +--- + OriginAnyParser.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/OriginAnyParser.cpp b/OriginAnyParser.cpp +index 9f9731c..4a79423 100644 +--- a/OriginAnyParser.cpp ++++ b/OriginAnyParser.cpp +@@ -743,7 +743,10 @@ void OriginAnyParser::readProjectTree() { + string pte_pre2 = readObjectAsString(pte_pre2_size); + + // root element and children +- unsigned int rootfolder = readFolderTree(projectTree.begin(), pte_depth); ++ unsigned int rootfolder = readFolderTree( ++ projectTree.insert(projectTree.begin(), ProjectNode("", ProjectNode::Folder)), ++ pte_depth ++ ); + if (rootfolder > 0) { + LOG_PRINT(logfile, "Number of files at root: %d\n", rootfolder) + } +-- +2.26.2 + diff --git a/sci-libs/liborigin/liborigin-20110829-r1.ebuild b/sci-libs/liborigin/liborigin-20110829-r1.ebuild deleted file mode 100644 index 27e4ccbbe0f9..000000000000 --- a/sci-libs/liborigin/liborigin-20110829-r1.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit qmake-utils - -DESCRIPTION="Library for reading OriginLab OPJ project files" -HOMEPAGE="http://soft.proindependent.com/liborigin2/" -SRC_URI="https://dev.gentoo.org/~dilfridge/distfiles/${PN}2-${PV}.zip" - -LICENSE="GPL-3" -SLOT="2" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc" - -RDEPEND=" - dev-libs/boost - dev-qt/qtcore:5 - dev-qt/qtgui:5 -" -DEPEND="${RDEPEND} - app-arch/unzip - dev-cpp/tree - doc? ( app-doc/doxygen ) -" - -DOCS=( readme FORMAT ) - -S="${WORKDIR}"/${PN}${SLOT} - -src_prepare() { - default - - cat >> liborigin2.pro <<-EOF - INCLUDEPATH += "${EPREFIX}/usr/include/tree" - headers.files = \$\$HEADERS - headers.path = "${EPREFIX}/usr/include/liborigin2" - target.path = "${EPREFIX}/usr/$(get_libdir)" - INSTALLS = target headers - EOF - # use system one - rm -f tree.hh || die -} - -src_configure() { - eqmake5 liborigin2.pro -} - -src_compile() { - default - if use doc; then - cd doc || die - doxygen Doxyfile || die "doc generation failed" - fi -} - -src_install() { - use doc && local HTML_DOCS=( doc/html/. ) - einstalldocs - emake install INSTALL_ROOT="${D}" -} diff --git a/sci-libs/liborigin/liborigin-3.0.0.ebuild b/sci-libs/liborigin/liborigin-3.0.0.ebuild new file mode 100644 index 000000000000..aa4538748af9 --- /dev/null +++ b/sci-libs/liborigin/liborigin-3.0.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Library for reading OriginLab OPJ project files" +HOMEPAGE="https://sourceforge.net/projects/liborigin/" +SRC_URI="http://downloads.sourceforge.net/liborigin/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="debug doc tools" + +BDEPEND=" + doc? ( app-doc/doxygen ) +" +RDEPEND=" + dev-cpp/tree +" +DEPEND="${RDEPEND}" + +PATCHES=( + # git master + "${FILESDIR}/${P}-no-exit-calls.patch" + "${FILESDIR}/${P}-no-standard-streams.patch" + # TODO upstream + "${FILESDIR}/${P}-missing-header.patch" + # downstream + "${FILESDIR}/${P}-buildsystem.patch" # ENABLE_TOOLS, shared link, doc paths +) + +src_prepare() { + cmake_src_prepare + rm tree.hh || die "failed to remove bundled tree.hh" + + sed -e "/install.*html/s/liborigin/${PF}/" \ + -i CMakeLists.txt || die "failed to fix htmldoc install path" +} + +src_configure() { + local mycmakeargs=( + -DGENERATE_CODE_FOR_LOG=$(usex debug) + $(cmake_use_find_package doc Doxygen) + -DENABLE_TOOLS=$(usex tools) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_src_compile doc +} diff --git a/sci-libs/liborigin/metadata.xml b/sci-libs/liborigin/metadata.xml index c049cd0777bf..e7dc202da9b1 100644 --- a/sci-libs/liborigin/metadata.xml +++ b/sci-libs/liborigin/metadata.xml @@ -5,7 +5,7 @@ <email>sci@gentoo.org</email> <name>Gentoo Science Project</name> </maintainer> - <longdescription> - A library providing IO for Microcal Origin files. - </longdescription> + <use> + <flag name="tools">Install opj2dat command line util</flag> + </use> </pkgmetadata> diff --git a/sys-libs/musl/musl-1.1.24.ebuild b/sys-libs/musl/musl-1.1.24.ebuild index 7948e4dbf5b3..453281e19f28 100644 --- a/sys-libs/musl/musl-1.1.24.ebuild +++ b/sys-libs/musl/musl-1.1.24.ebuild @@ -98,7 +98,11 @@ src_install() { dosym ${sysroot}/lib/${ldso} ${sysroot}/usr/bin/ldd if [[ ${CATEGORY} != cross-* ]] ; then - local arch=$("${D}"usr/lib/libc.so 2>&1 | sed -n '1s/^musl libc (\(.*\))$/\1/p') + # Fish out of config: + # ARCH = ... + # SUBARCH = ... + # and print $(ARCH)$(SUBARCH). + local arch=$(awk '{ k[$1] = $3 } END { printf("%s%s", k["ARCH"], k["SUBARCH"]); }' config.mak) [[ -e "${D}"/lib/ld-musl-${arch}.so.1 ]] || die cp "${FILESDIR}"/ldconfig.in "${T}" || die sed -e "s|@@ARCH@@|${arch}|" "${T}"/ldconfig.in > "${T}"/ldconfig || die diff --git a/sys-libs/musl/musl-1.2.0.ebuild b/sys-libs/musl/musl-1.2.0.ebuild index e33c6c809136..6aab4a0a5ecd 100644 --- a/sys-libs/musl/musl-1.2.0.ebuild +++ b/sys-libs/musl/musl-1.2.0.ebuild @@ -98,7 +98,11 @@ src_install() { dosym ${sysroot}/lib/${ldso} ${sysroot}/usr/bin/ldd if [[ ${CATEGORY} != cross-* ]] ; then - local arch=$("${D}"usr/lib/libc.so 2>&1 | sed -n '1s/^musl libc (\(.*\))$/\1/p') + # Fish out of config: + # ARCH = ... + # SUBARCH = ... + # and print $(ARCH)$(SUBARCH). + local arch=$(awk '{ k[$1] = $3 } END { printf("%s%s", k["ARCH"], k["SUBARCH"]); }' config.mak) [[ -e "${D}"/lib/ld-musl-${arch}.so.1 ]] || die cp "${FILESDIR}"/ldconfig.in "${T}" || die sed -e "s|@@ARCH@@|${arch}|" "${T}"/ldconfig.in > "${T}"/ldconfig || die diff --git a/sys-libs/musl/musl-9999.ebuild b/sys-libs/musl/musl-9999.ebuild index 50beaf64e1aa..dc422c9426b1 100644 --- a/sys-libs/musl/musl-9999.ebuild +++ b/sys-libs/musl/musl-9999.ebuild @@ -98,7 +98,11 @@ src_install() { dosym ${sysroot}/lib/${ldso} ${sysroot}/usr/bin/ldd if [[ ${CATEGORY} != cross-* ]] ; then - local arch=$("${D}"usr/lib/libc.so 2>&1 | sed -n '1s/^musl libc (\(.*\))$/\1/p') + # Fish out of config: + # ARCH = ... + # SUBARCH = ... + # and print $(ARCH)$(SUBARCH). + local arch=$(awk '{ k[$1] = $3 } END { printf("%s%s", k["ARCH"], k["SUBARCH"]); }' config.mak) [[ -e "${D}"/lib/ld-musl-${arch}.so.1 ]] || die cp "${FILESDIR}"/ldconfig.in "${T}" || die sed -e "s|@@ARCH@@|${arch}|" "${T}"/ldconfig.in > "${T}"/ldconfig || die |