commit:     a597bb111dbd008fc6e6cec248bfa1f325f270d3
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  8 14:20:54 2023 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Wed Mar  8 14:22:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a597bb11

sys-apps/flashrom: do not install static libraries

Closes: https://bugs.gentoo.org/900364
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 sys-apps/flashrom/flashrom-1.3.0.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys-apps/flashrom/flashrom-1.3.0.ebuild 
b/sys-apps/flashrom/flashrom-1.3.0.ebuild
index 14e290966f1b..96d7cbdffb27 100644
--- a/sys-apps/flashrom/flashrom-1.3.0.ebuild
+++ b/sys-apps/flashrom/flashrom-1.3.0.ebuild
@@ -117,6 +117,11 @@ src_configure() {
 src_install() {
        meson_src_install
 
+       # Upstream requires libflashrom.a to be present at build time because 
the classic CLI
+       # executable uses internal symbols from that library. Therefore, we let 
it be built
+       # but keep it out of the installed tree.
+       find "${ED}" -name '*.a' -delete || die
+
        if use tools; then
                dosbin 
"${BUILD_DIR}"/util/ich_descriptors_tool/ich_descriptors_tool
        fi

Reply via email to