Boost logo

Boost-Build :

Subject: [Boost-build] [Jam] Problem with InstallFile
From: Shridhar Daithankar (ghodechhap_at_[hidden])
Date: 2009-03-27 10:06:01


Hello,

I hope jam problems can be discussed here.

I am facing problem with jam(not bjam) and InstallFile rule. When two modules
contain InstallFile rule, to install files with identical name(but not
content), in two separate target directories, only one of them is installed,
not both of them. Please see the transcript for a reproduction.

Any help is highly appreciated. I am using Jam 3.1.14 but the behaviour is
same with jam 3.1.17.

-----------------------------------------
$ cat Jamfile
SubDir DEVELDIR ;

SubInclude DEVELDIR a ;
SubInclude DEVELDIR b ;

$ cat a/Jamfile
SubDir DEVELDIR a ;

InstallFile /tmp/t1 : a.cpp ;

$ cat b/Jamfile
SubDir DEVELDIR b ;

InstallFile /tmp/t2 : a.cpp ;

$ ls -la a/a.cpp b/a.cpp /tmp/t1 /tmp/t2
-rw-r--r-- 1 shridhar users 9 2009-03-27 19:31 a/a.cpp
-rw-r--r-- 1 shridhar users 11 2009-03-27 19:32 b/a.cpp

/tmp/t1:
total 0
drwxr-xr-x 2 shridhar users 48 2009-03-27 18:53 .
drwxrwxrwt 11 root root 336 2009-03-27 19:01 ..

/tmp/t2:
total 0
drwxr-xr-x 2 shridhar users 48 2009-03-27 18:54 .
drwxrwxrwt 11 root root 336 2009-03-27 19:01 ..

$ jam -n install
/home/shridhar/tmp/jaminstall/Jamrules: No such file or directory
...found 7 targets...
...updating 1 target...
Install /tmp/t2/a.cpp
cp -f /home/shridhar/tmp/jaminstall/b/a.cpp /tmp/t2/a.cpp

Chmod1 /tmp/t2/a.cpp
chmod 644 /tmp/t2/a.cpp

Install /tmp/t2/a.cpp
cp -f /home/shridhar/tmp/jaminstall/b/a.cpp /tmp/t2/a.cpp

Chmod1 /tmp/t2/a.cpp
chmod 644 /tmp/t2/a.cpp

...updated 1 target...
-----------------------------------------

-- 
 Shridhar

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk