Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290003 - Missing files after dev-lang/vala-0.7.7 installation
Summary: Missing files after dev-lang/vala-0.7.7 installation
Status: RESOLVED DUPLICATE of bug 310579
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 297875 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-21 12:29 UTC by Jakub Klawiter
Modified: 2010-09-29 12:12 UTC (History)
1 user (show)

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


Attachments
Full valac hello.vala log (valac-hello.log,24.54 KB, text/plain)
2009-10-21 12:30 UTC, Jakub Klawiter
Details
emerge --info (emerge--info.txt,3.54 KB, text/plain)
2009-10-23 19:42 UTC, Jakub Klawiter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Klawiter 2009-10-21 12:29:08 UTC
After upgrading vala to version 0.7.7 (newest available) compiler gives set of warinings about missing files. It looks like the files are not correctly installed in the system.

I've compiled simple hello world example from: http://live.gnome.org/Vala/Tutorial and get:

$ valac hello.vala 
profiling:/var/tmp/portage/dev-lang/vala-0.7.7/work/vala-0.7.7/compiler/valacompiler.gcda:Cannot open
profiling:/var/tmp/portage/dev-lang/vala-0.7.7/work/vala-0.7.7/codegen/.libs/valaccodearraymodule.gcda:Cannot open

anyway binary file is created and is working


Reproducible: Always
Comment 1 Jakub Klawiter 2009-10-21 12:30:16 UTC
Created attachment 207814 [details]
Full valac hello.vala log
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-22 20:05:39 UTC
vala-0.7 is a development branch and as such is a moving target. It is most likely that the example is simply outdated.
Comment 3 Jakub Klawiter 2009-10-22 21:23:57 UTC
1. Same output is while compiling _any_ vala code.
2. I believe that compiler should not look for any files in /var/tmp/portage/... 

But of course maybe I'm wrong. 
Comment 4 Romain Perier (RETIRED) gentoo-dev 2009-10-23 13:18:03 UTC
emerge -pv vala ? (to check supports)
Comment 5 Jakub Klawiter 2009-10-23 19:42:21 UTC
Created attachment 208045 [details]
emerge --info

# emerge -pv vala

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/vala-0.7.7  USE="coverage vapigen -test" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


I'm attaching emerge --info just in case. Most of the system is STABLE Gentoo x86
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-25 18:09:37 UTC
I went to the wiki page, copy/pasted the hello world code and it builds and runs just fine here. Could you rebuild vala and see if that fixes the problem ?
Comment 7 Jakub Klawiter 2009-10-25 19:31:48 UTC
(In reply to comment #6)
> I went to the wiki page, copy/pasted the hello world code and it builds and
> runs just fine here. Could you rebuild vala and see if that fixes the problem ?

Did you compile the example as a user or root? I've just reemerged vala-0.7.7 here, compiled example and there is no change. Compilation works fine, executable is working but there is strange output like in attached file.

But if I'm compiling same code as root there is NO strange "error" output.

So please if you compiled example as root try to do same as unprivileged user. 
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-25 19:51:03 UTC
I compiled with my regular user. Please note that I never built vala stuff with that user previously so maybe if there is some patch cache or whatever.
Comment 9 Jakub Klawiter 2009-10-25 21:08:10 UTC
(In reply to comment #8)
> I compiled with my regular user. Please note that I never built vala stuff with
> that user previously so maybe if there is some patch cache or whatever.

Strange, very strange. 

What i did now:
emerge -aC vala valide
emerge -a --depclean
rm -rf /var/tmp/portage/dev-lang/vala-0.7.7/
rm -rf /var/tmp/portage/dev-util/valide-0.5.1/
emerge -avD vala

same problem, valac produces working binary AND few kilobytes of warnings about write privileges

emerge -avD =dev-lang/vala-0.7.4
it's the version i had here before, and NO PROBLEMS AT ALL. 

emerge -avu vala 
back to old problem...


What i did than, i've installed vala-0.7.7 on FRESHLY installed Gentoo on new computer (eeeBox for my office). And there I have the same error output about. 

Comment 10 Jakub Klawiter 2009-11-04 20:07:37 UTC
(In reply to comment #8)
> I compiled with my regular user. Please note that I never built vala stuff with
> that user previously so maybe if there is some patch cache or whatever.

Can you please tell me if your user is in portage group, and maybe you have read/write access to directory and files(!) in directories:

/var/tmp/portage/dev-lang/vala-0.7.7/work/vala-0.7.7/codegen/.libs/
/var/tmp/portage/dev-lang/vala-0.7.7/work/vala-0.7.7/vala/.libs/
/var/tmp/portage/dev-lang/vala-0.7.7/work/vala-0.7.7/gee/.libs/
/var/tmp/portage/dev-lang/vala-0.7.7/work/vala-0.7.7/ccode/.libs/

Maybe if your user is in portage group, and you emerged vala as this user you can modify this files, and this way you have no strange errors/warnings. 
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-04 21:30:49 UTC
my user is indeed in portage group, but those files (/var/tmp/...) do not exist after successful build obviously.
Comment 12 Jakub Klawiter 2009-11-04 23:05:42 UTC
OK one step forward. Once again i've unmerged vala and valide than:

1. # emerge vala
2. directory /var/tmp/portage/dev-lang/vala-0.7.7/ does NOT exist
3. # emerge valide
4. directory /var/tmp/portage/dev-lang/vala-0.7.7/ owned by root is created.
valide is written in vala, and root is the user who compiled it using valac
5. # rm -rf /var/tmp/portage/dev-lang/vala-0.7.7/
6. now i've compiled hello.vala as regular user
7. directory is created now the owner of it is my user, and of course there is
no warnings/errors while using valac

So now the questions are:
Why this (temporary?) folder is created in /var/tmp/portage not just /tmp/? Is
it a bug of vala (upstream)/portage (ebuild)? We have to remember that upstream probably don't know about /var/tmp/portage/ directory ;-)

Why compiler does not clean this directory after compilation, and this is probably upstream bug.
Comment 13 Christian Weiske 2009-12-26 12:20:02 UTC
*** Bug 297875 has been marked as a duplicate of this bug. ***
Comment 14 Christian Weiske 2009-12-26 12:24:03 UTC
I don't see this bug as fixed or resolved. Please reopen it.
Comment 15 Alexander E. Patrakov 2009-12-26 12:56:30 UTC
If I recompile vala with USE="-coverage", the bug goes away. Please remove "+coverage" from IUSE, as it only breaks things.
Comment 16 Christian Weiske 2009-12-26 13:46:32 UTC
I can confirm the errors/warnings do not occur anymore after recompiling without coverage use flag.
Probably, removing the flag altogether should be helpful if it doesn't work anyway.
Comment 17 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-29 12:11:50 UTC
reopening to set proper status.
Comment 18 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-29 12:12:02 UTC

*** This bug has been marked as a duplicate of bug 310579 ***