Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-lang/vala problem with symlink
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Tue Jan 10, 2012 7:00 pm    Post subject: dev-lang/vala problem with symlink Reply with quote

can anyone confirm if this is a bug or its just me, but dev-lang/vala-0.14.1 only creates /usr/bin/valac-0.14, but not /usr/bin/valac or a symlink, which breaks compiling something that uses valac.

creating a symlink fixes this.
Back to top
View user's profile Send private message
chemicalnut
n00b
n00b


Joined: 23 Mar 2009
Posts: 7

PostPosted: Wed Jan 11, 2012 5:58 pm    Post subject: Reply with quote

I observed the same behavior on my machine trying to compile Pdf Presenter Console. A javac symlink made cmake find vala automatically...
Back to top
View user's profile Send private message
666threesixes666
Apprentice
Apprentice


Joined: 31 May 2011
Posts: 288

PostPosted: Wed Jul 04, 2012 9:42 pm    Post subject: Reply with quote

ditto....

Code:

sudo ln -s /usr/bin/valac-0.16 /usr/bin/valac
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 1822
Location: Finland

PostPosted: Thu Jul 05, 2012 6:13 am    Post subject: Reply with quote

The symlink is correctly missing. The upstream of vala provides a way to install only the versioned binaries, so multiple vala versions can be co-installed. You need to export correct variables to select which one will be used.

For example, an autotools or waf based project:

Code:

$ export VALAC=/usr/bin/valac-0.16
$ ./configure
$ make
$ make install


In ebuild terms:

Code:

src_configure() {
     export VALAC="$(type -P valac-0.16)"
     econf
}


Symlinks should NOT be there, as they will potentially break compiles within the Portage tree. Do not file bugs if they do.
Back to top
View user's profile Send private message
666threesixes666
Apprentice
Apprentice


Joined: 31 May 2011
Posts: 288

PostPosted: Thu Jul 12, 2012 4:34 am    Post subject: Reply with quote

so your saying my ebuild is broken, and the symlink should not exist?
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 1822
Location: Finland

PostPosted: Thu Jul 12, 2012 2:07 pm    Post subject: Reply with quote

666threesixes666 wrote:
so your saying my ebuild is broken, and the symlink should not exist?


yep, you need to pick a SLOT (= versioned files) you want to use, and then enforce your ebuild to use it
Back to top
View user's profile Send private message
666threesixes666
Apprentice
Apprentice


Joined: 31 May 2011
Posts: 288

PostPosted: Fri Jul 13, 2012 2:17 am    Post subject: Reply with quote

curtains!!!! i cant remember what package i was building that required the symlink, i should of written it down =( thanks for the examples for future reference.....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum