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

Bug 367599

Summary: [desktop-effects overlay] gnome-extra/avant-window-navigator-9999 shouldn't force dev-lang/vala:0
Product: Gentoo Linux Reporter: Ragas <bjoern>
Component: Current packagesAssignee: Desktop-Effects herd <desktop-effects+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: avant-window-navigator-9999.ebuild
avant-window-navigator-9999.ebuild
awn-ebuild-vala.patch

Description Ragas 2011-05-16 22:39:43 UTC
The live ebuild from the desktop-effects overlay shouldn't force you to install a package of dev-lang/vala:0 since it won't build with it anymore.




Reproducible: Always




Since this is in an Overlay I'm not quite sure if this is the correct place for the bug report. Please correct me if I'm wrong.
Comment 1 Ragas 2011-05-16 22:42:01 UTC
Created attachment 273521 [details]
avant-window-navigator-9999.ebuild

ebuild with loosened dependency on dev-lang/vala
Comment 2 Mathieu Z 2011-05-18 22:28:27 UTC
I think the vala use flag should be dropped, and just make dev-lang/vala a dependency. --with-vala is no longer a configure option, but valac is needed to compile the package.

From build log:

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-gtk-doc --enable-schemas-install --with-vala --disable-static --disable-pymod-checks --enable-extra-version=-gentoo-desktop-effects
configure: WARNING: unrecognized options: --with-vala
... ...
checking for valac... no
configure: WARNING: No Vala compiler found.  You will not be able to compile .vala source files.
... ...

It will not build with vala:0. With higher version, ./configure still looks for /usr/bin/valac, a symbolic link which the higher versions (0.10 and 0.12) do not install.

Manually creating the symlink allows the pkg to compile.
Comment 3 Ragas 2011-05-18 23:08:14 UTC
Ah jeah. I also manually linked one of the higher versions of valac to /usr/bin/valac

I just checked and there really is no --with-vala anymore so I also think the flag should be dropped.
Comment 4 Ragas 2011-05-18 23:21:42 UTC
Created attachment 273887 [details]
avant-window-navigator-9999.ebuild

removed vala useflag.

Made dependency on vala versions equal or higher than 0.10
Comment 5 Ragas 2011-05-18 23:23:33 UTC
The problem of setting /usr/bin/valac could be solved by using the eselect-vala package from the vala overlay.
Comment 6 Mathieu Z 2011-05-19 01:31:05 UTC
Created attachment 273897 [details, diff]
awn-ebuild-vala.patch

Configure scripts look for >=vala-0.9.1:
checking for valac... /usr/bin/valac
checking /usr/bin/valac is at least version 0.9.1... yes

Attached patch to ebuild file that reflects this and also correct a minor issue that the current ebuild throw an error during postinst:

 * AWN will be of no use if you do not have a compositing manager.
 * ERROR: gnome-extra/avant-window-navigator-9999 failed (postinst phase):
 *   python_mod_optimize(): Paths of directories / files in site-packages directories must be relative to site-packages directories
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called pkg_postinst
 *   environment, line 3883:  Called python_mod_optimize '/usr/lib64/python2.7/site-packages/awn'
 *   environment, line 5340:  Called die
 * The specific snippet of code:
 *                       die "${FUNCNAME}(): Paths of directories / files in site-packages directories must be relative to site-packages directories";
 * 
 * If you need support, post the output of 'emerge --info =gnome-extra/avant-window-navigator-9999',
 * the complete build log and the output of 'emerge -pqv =gnome-extra/avant-window-navigator-9999'.
 * This ebuild is from an overlay named 'desktop-effects': '/var/lib/layman/desktop-effects/'
 * The complete build log is located at '/var/log/portage/gnome-extra:avant-window-navigator-9999:20110518-230259.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/avant-window-navigator-9999/temp/environment'.
 * S: '/var/tmp/portage/gnome-extra/avant-window-navigator-9999/work/avant-window-navigator-9999'
!!! FAILED postinst: 1

The package now build without error for me.