Subject: CGAL users discussion list
List archive
- From: "Pavlin, Andrew" <>
- To: <>
- Subject: BUG: incompatability between CGAL 3.3 and Rational ClearCase
- Date: Fri, 16 Nov 2007 13:53:54 -0500
Title: BUG: incompatability between CGAL 3.3 and Rational ClearCase
Greetings.
We had an unfortunate install problem with CGAL 3.3 when storing the CGAL source files in a ClearCase VOB. Because we weren't modifying any of the CGAL source files, we left them all not checked out (and therefore with read-only permissions), and attempted to run the install_cgal script to customize it to our development platform (we currently use three platforms: Microsoft Windows XP with Cygwin and g++ 3.3.3, Sun Solaris 10 with Sun Studio 11, and Red Hat Enterprise Linux with gcc 3.4, with ClearCase installed on all the development platforms). The install script started reporting errors about the time it got down to testing BOOST, wth repeated errors:
./install_cgal:2955: Permission denied
When the script completed, it claimed that BOOST could not be found, despite the fact that I had passed it in on the command line, and (in interactive mode) had specified it again before running the Test and Setup phase.
The problem turned out to be that all of the configuration testing source files in CGAL/config/testfiles had permissions 444 (read-only) because of being ClearCase controlled files. So the first test file was successfully copied to tmp_file.cpp, and all the remaining ones failed because the cp command couldn't overwrite the existing file (which preserved the permissions of the first copied file, rather than being owner-write access).
I managed to get the install_cgal script to work in this environment by checking it out, and inserting the line
${_chmod} u+w ${TMP_FILE_CXX}.cpp
after every occurrence of a ${_cp} sometestfile.cpp ${TMP_FILE_CXX}.cpp. So, apparently, CGAL is not doing any self-patching (which would have caused other permission errors), but is creating new files as ClearCase view-private files, which is allowed by ClearCase's permissions system. This patch allowed the install_cgal script to run through to completion successfully.
Attached is the patched install_cgal file for your perusal.
<<install_cgal>>
Note that this file still has the problem with ignoring --BOOST_INCL_DIR; I have not tried to fix that problem, since I am told it is already a known bug.
Andrew Pavlin
TruePosition, Inc.
1000 Chesterbrook Blvd., Suite 200
Berwyn, PA 19312 U.S.A.
phone: +1-610-680-1038
Confidentiality Notice This e-mail (including any attachments) is intended only for the recipients named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please notify the sender of that fact and delete the e-mail from your system.
Attachment:
install_cgal
Description: install_cgal
- BUG: incompatability between CGAL 3.3 and Rational ClearCase, Pavlin, Andrew, 11/16/2007
- Re: [cgal-discuss] BUG: incompatability between CGAL 3.3 and Rational ClearCase, Sylvain Pion, 11/16/2007
Archive powered by MHonArc 2.6.16.