Summary: | sys-apps/dtc should depend on dev-libs/libyaml - yamltree.c:23:10: fatal error: yaml.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | m.manico |
Component: | Current packages | Assignee: | Luca Barbato <lu_zero> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dan, ppc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
m.manico
2019-09-07 21:36:21 UTC
I think it's a case where host pkg-config was used against target: NO_YAML := $(shell $(PKG_CONFIG) --exists yaml-0.1; echo $$?) We have 2 bugs here: - automagic libyaml dependency - missing PKG_CONFIG setting I hit this error myself earlier. The correct pkg-config can be set with the PKG_CONFIG environment variable. Could something like this be done to disable the automatic feature? (It would also be nice to have an EAPI 7 bump to use BDEPEND properly.) --- sys-apps/dtc/dtc-1.5.0.ebuild +++ sys-apps/dtc/dtc-1.5.0.ebuild @@ -17,9 +17,10 @@ LICENSE="GPL-2" SLOT="0" -IUSE="static-libs" +IUSE="static-libs yaml" DEPEND=" + yaml? ( dev-libs/libyaml ) sys-devel/bison sys-devel/flex " @@ -44,6 +45,7 @@ -e 's:-g -Os::' \ -e "/^PREFIX =/s:=.*:= ${EPREFIX}/usr:" \ -e "/^LIBDIR =/s:=.*:= \$(PREFIX)/$(get_libdir):" \ + -e "/^NO_YAML :=/s/=.*/= $(usex yaml 0 1)/" \ Makefile || die tc-export AR CC The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d79c54aba7eba3ca94367d9f864b066d7e04012 commit 3d79c54aba7eba3ca94367d9f864b066d7e04012 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-07-06 22:39:55 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-07-06 22:40:03 +0000 sys-apps/dtc: add USE=yaml While at it added pkgconfig to build-time depends. Reported-by: m.manico@gmx.at Closes: https://bugs.gentoo.org/693714 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-apps/dtc/dtc-1.5.0-r1.ebuild | 64 ++++++++++++++++++++++++++++++++++++++++ sys-apps/dtc/dtc-9999.ebuild | 14 ++++++--- sys-apps/dtc/metadata.xml | 3 ++ 3 files changed, 77 insertions(+), 4 deletions(-) |