commit: 049fcc7175c1d876b3bdcbe2f0bff8b605edd56c
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 8 19:50:25 2022 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue Nov 8 19:50:25 2022 +0000
URL: https://gitweb.gentoo.org/proj/cargo-ebuild.git/commit/?id=049fcc71
update tera template
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
cargo-ebuild-template.tera | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cargo-ebuild-template.tera b/cargo-ebuild-template.tera
index 029f38c..be605d1 100644
--- a/cargo-ebuild-template.tera
+++ b/cargo-ebuild-template.tera
@@ -6,6 +6,8 @@
# Auto-Generated by cargo-ebuild {{ cargo_ebuild_ver }}
{% endblock %}
+inherit {% block inherit -%}cargo flag-o-matic{%- endblock %}
+
{% set homepage = 'https://github.com/gentoo/cargo-ebuild' %}
HOMEPAGE={%- block homepage -%}"{{ homepage }}"{%- endblock %}
SRC_URI={%- block src_uri -%}{% raw
-%}"https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2
@@ -28,6 +30,7 @@ QA_FLAGS_IGNORED="usr/bin/cargo-ebuild"
{% block phases %}
src_configure() {
+ filter-flags '-flto*' # https://bugs.gentoo.org/858332
export LIBGIT2_SYS_USE_PKG_CONFIG=1 LIBSSH2_SYS_USE_PKG_CONFIG=1
PKG_CONFIG_ALLOW_CROSS=1
cargo_src_configure
}