Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 360169

Summary: [gnome-overlay] media-video/cheese-2.91.92 and -9999 fail to configure due to vala versioning
Product: Gentoo Linux Reporter: Alexandre Rostovtsev (RETIRED) <tetromino>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 353071    
Attachments: corrected cheese-2.91.92 ebuild

Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-03-23 16:30:29 UTC
Created attachment 267007 [details]
corrected cheese-2.91.92 ebuild

cheese-2.91.92 and -9999 (in gnome overlay) have a required (not optional, as the ebuild implies) dependency on >=vala-0.11.6 (see http://git.gnome.org/browse/cheese/tree/configure.ac). However, automake's AM_PROG_VALAC is rather broken: it only looks for valac that is literally called "valac", while Gentoo's vala:0.12 installs its valac as /usr/bin/valac-0.12

As a result, cheese fails to configure:

checking for valac... /usr/bin/valac
checking /usr/bin/valac is at least version 0.11.6... no
configure: error: Vala 0.11.6 not found.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-video/cheese-2.91.92/work/cheese-2.91.92/config.log
 * ERROR: media-video/cheese-2.91.92 failed (configure phase):
 *   econf failed

To fix this problem, we need to add "VALAC=$(type -p valac-0.12)" to G2CONF.

The 2.91.92 ebuild with the corrected dependencies and G2CONF is attached below.
Note: this will also need to be fixed in cheese-9999.
Comment 1 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-03-23 21:58:07 UTC
Fixed, thanks for reporting!
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-03-23 22:10:53 UTC
(In reply to comment #1)
> Fixed, thanks for reporting!

G2CONF has been fixed, but DEPEND and IUSE are still wrong. Cheese-2.91.92 has a required build-time dependency on vala (basically, the entire program is now written in vala). The vala use flag needs to go away, and the >=dev-lang/vala-0.11.6:0.12 dependency is always required.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-03-23 22:55:24 UTC
Hum. Upstream's autotools is broken, they're generating the .c files from the .vala files, but their build system seems intent on regenerating them when you try to compile the application.

Oh well, I've added the dependency for now.