[opensuse-buildservice] Creating symlink during build
Dear all, In openSUSE seems to be a setup issue for antRun that makes my build fail, as antRun could not be found. By creating by hand a symlink from "/usr/share/ant/bin/antRun" to "/usr/bin/antRun" should fix it. I tried the following in build section of the spec: mkdir %{buildroot}/usr/share/ant/bin/ ln -s %{buildroot}/usr/bin/antRun %{buildroot}/usr/share/ant/bin/antRun but this didn't work. Any idea, how to get this setup? Thanks, Denny -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Le 19/09/2013 16:04, Denny Beyer a écrit :
Dear all, In openSUSE seems to be a setup issue for antRun that makes my build fail, as antRun could not be found.
By creating by hand a symlink from "/usr/share/ant/bin/antRun" to "/usr/bin/antRun" should fix it.
I tried the following in build section of the spec: mkdir %{buildroot}/usr/share/ant/bin/ ln -s %{buildroot}/usr/bin/antRun %{buildroot}/usr/share/ant/bin/antRun
Maybe better to make link relative so that it works whatever the prefix: mkdir %{buildroot}/usr/share/ant/bin/ cd %{buildroot}/usr/share/ant/bin/ ln -s ../../../bin/antRun cd .. Guillaume
but this didn't work.
Any idea, how to get this setup?
Thanks, Denny
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 09/19/2013 04:04 PM, Denny Beyer wrote:
Dear all, In openSUSE seems to be a setup issue for antRun that makes my build fail, as antRun could not be found.
By creating by hand a symlink from "/usr/share/ant/bin/antRun" to "/usr/bin/antRun" should fix it.
I tried the following in build section of the spec: mkdir %{buildroot}/usr/share/ant/bin/ ln -s %{buildroot}/usr/bin/antRun %{buildroot}/usr/share/ant/bin/antRun
First of all, I'd always use ln's -v option. The above ln command would try to create a symlink with the name /usr/share/ant/bin/antRun to /usr/bin/antRun. Don't you want it the other way round, i.e. /usr/bin/antRun to be a symlink pointing to /usr/share/ant/bin/antRun? Have a nice day, Berny -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Bernhard Voelker
-
Denny Beyer
-
Guillaume Gardet