| View previous topic :: View next topic |
| Author |
Message |
khorio n00b

Joined: 29 Oct 2003 Posts: 43
|
Posted: Tue Jan 10, 2012 7:00 pm Post subject: dev-lang/vala problem with symlink |
|
|
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 |
|
 |
chemicalnut n00b

Joined: 23 Mar 2009 Posts: 7
|
Posted: Wed Jan 11, 2012 5:58 pm Post subject: |
|
|
| 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 |
|
 |
666threesixes666 Apprentice


Joined: 31 May 2011 Posts: 288
|
Posted: Wed Jul 04, 2012 9:42 pm Post subject: |
|
|
ditto....
| Code: |
sudo ln -s /usr/bin/valac-0.16 /usr/bin/valac
|
|
|
| Back to top |
|
 |
ssuominen Developer

Joined: 30 Sep 2005 Posts: 1822 Location: Finland
|
Posted: Thu Jul 05, 2012 6:13 am Post subject: |
|
|
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 |
|
 |
666threesixes666 Apprentice


Joined: 31 May 2011 Posts: 288
|
Posted: Thu Jul 12, 2012 4:34 am Post subject: |
|
|
| so your saying my ebuild is broken, and the symlink should not exist? |
|
| Back to top |
|
 |
ssuominen Developer

Joined: 30 Sep 2005 Posts: 1822 Location: Finland
|
Posted: Thu Jul 12, 2012 2:07 pm Post subject: |
|
|
| 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 |
|
 |
666threesixes666 Apprentice


Joined: 31 May 2011 Posts: 288
|
Posted: Fri Jul 13, 2012 2:17 am Post subject: |
|
|
| 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 |
|
 |
|