Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383355 - dev-libs/libindicate-0.4.4-r2[introspection] requires vapi-gen
Summary: dev-libs/libindicate-0.4.4-r2[introspection] requires vapi-gen
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-17 14:16 UTC by Maciej S. Szmigiero
Modified: 2011-11-04 23:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2011-09-17 14:16:46 UTC
As pointed out in bug #379641 filling a new one for 
dev-libs/libindicate-0.4.4-r2[introspection] build and install failure.

From libindicate-0.4.4/libindicate/Makefile.am it seems that introspection
support in this package unconditionally requires vapi-gen:

if HAVE_INTROSPECTION

vapidir = $(datadir)/vala/vapi
vapi_DATA = Indicate-0.2.vapi

Indicate-0.2.vapi: Indicate-0.2.gir Makefile.am
        $(VALA_API_GEN) --library=Indicate-0.2 \
                --pkg glib-2.0 \
                --pkg Dbusmenu-Glib-0.2 \
                --vapidir=$(top_builddir)/src \
                $<

CLEANFILES += $(vapi_DATA)

endif

If there is no vapi-gen installed then $(VALA_API_GEN) is an empty string.
Which results in "command not found" message during compile phase,
then install error on Indicate-0.2.vapi file during install phase.
This prevents the package from installing successfully.

With USE=-introspection everything is fine.


Reproducible: Always

Steps to Reproduce:
1. USE="introspection" emerge dev-libs/libindicate,
2. See "command not found" message where vapi-gen should be called during Indicate-0.2.vapi generation,
3. See that install fails on Indicate-0.2.vapi
Comment 1 Bartosz Brachaczek 2011-09-19 10:49:23 UTC
Isn't it just a missing dependency on dev-lang/vala?

Also, I don't think that the right component and assignee are selected, Gnome team does not maintain dev-libs/libindicate.
Comment 2 Maciej S. Szmigiero 2011-09-19 16:44:38 UTC
(In reply to comment #1)
> Isn't it just a missing dependency on dev-lang/vala?


Affirmative - after emerging dev-lang/vala[vapigen] package nearly builds successfully with USE=introspection.

Nearly, because vala-0.13.4 (latest in tree ATM) installs vapigen as 
vapigen-0.14 but libindicate-0.4.4-r2.ebuild patches configure.ac to 
search for vapigen-0.12.
When i change that to vapigen-0.14 package builds fine with introspection.

So there are really two issues here:
1) Add dependency on dev-lang/vala[vapigen] on introspection USE flag to libindicate ebuild,

2a) Fix libindicate ebuild to search for latest version of vapigen, 
OR
2b) Remove configure.ac patch from libindicate ebuild (by default configure searches for vapigen) and symlink vapigen-0.x to vapigen somewhere.

> Also, I don't think that the right component and assignee are selected, Gnome
> team does not maintain dev-libs/libindicate.

I thought that since it uses g-something libraries it is a part of Gnome, but
thanks for pointing this out to me.
Comment 3 Bartosz Brachaczek 2011-09-19 16:51:48 UTC
Maybe slotted dev-lang/vala:0.12 could be required, just like it's the case for net-libs/telepathy-glib. But anyways I think some developer will know much better than us how to fix it ;).
Comment 4 Juanlu Pérez 2011-10-10 00:05:03 UTC
I can confirm that I'm getting this same problem.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-11-04 23:04:43 UTC
Fixed, thanks!