[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] symlink problem
From:       Kip Carr <kcarr () avtsim ! com>
Date:       2014-08-28 15:35:11
Message-ID: A411577CA2258941B66D59D299844132348C31F4 () avtexch01 ! avtsim ! local
[Download RAW message or body]

I originally put that bug in.  Below is my fix.  I don't know if this is completely proper as I don't check path-to-out LOCATE but it seems to work for me:

Open symlink.jam in /usr/share/boost-build/ and make the following changes in the "rule ln" code section:
	
		Replace:
		
			# Remember the path to make the link relative to where the symlink is located.
				local path-to-source = [ path.relative-to
					[ path.make [ on $(<) return $(LOCATE) ] ]
					[ path.make [ on $(>) return $(LOCATE) ] ] ] ;

		With:
		
			local path-to-out = [ on $(<) return $(LOCATE) ] ;
			local path-to-in = [ on $(>) return $(LOCATE) ] ;

			if ! $(path-to-in)
			{
				path-to-in = [ on $(>) return $(SEARCH) ] ;
			}

			local path-to-source = [ path.relative-to
				[ path.make $(path-to-out) ]
				[ path.make $(path-to-in) ] ] ;
				
	This will fix the problem by allowing the $(SEARCH) var to be used if $(LOCATE)
	is empty.

Kip

-----Original Message-----
From: Boost-build [mailto:boost-build-bounces@lists.boost.org] On Behalf Of Vladimir Prus
Sent: Thursday, August 28, 2014 11:32 AM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] symlink problem

On 08/28/2014 12:06 AM, Phillip Seaver wrote:
> Hello,
>
> I ran into this bug when trying to create symbolic links:
> https://svn.boost.org/trac/boost/ticket/10096
>
> Is there a different way I could do it or an easy fix?

Phillip,

I don't quite remember the context, do you have an easy reproduction recipe?

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic