2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 13:42:14 +00:00
Commit Graph

3889 Commits

Author SHA1 Message Date
Jurko Gospodnetić
cb5da6afd4 Minor stylistic comment change.
[SVN r45168]
2008-05-06 09:34:20 +00:00
Jurko Gospodnetić
7326258cb1 Removed a duplicated test case.
[SVN r45167]
2008-05-06 09:33:53 +00:00
Jurko Gospodnetić
2871e44c9c Patch for the NORMALIZE_PATH builtin Boost Jam rule as well as an appropriate update for the path.jam Boost Build module where that rule was being used to implement path.join and related operations.
As it was written before the rule had 'random' behavior in some borderline cases such as: not passing it a parameter, passing it a folder whose path starts with one or two backslashes (as opposed to slashes) or passing it an invalid rooted path with enough '..' path elements to take it 'before the root path'. In those cases it would cause an access violation, 'incorrectly' un-root the path (i.e. remove the leading slash) or simply remove a 'random' path modification respectively. Also the rule is now more tiny bit more efficient and much better documented.

  Invalid rooted paths with enough '..' path elements to take them 'before the root path' are now recognized and an empty list is returned.

  Due to this rule having such 'messy' behavior the path.join rule and its user make-NT rule had some twisted logic in them to work around all the problems this caused. This patch invalidates the logic in question and replaces it with a much simpler one (detailed comments added).

  Other NORMALIZE_PATH callers should not be affected since both the old and the new version work the same on 'regular' paths (i.e. those not mentioned above).

  The new functionality for recognizing Boost Jam versions has been used to make Boost Build scripts use the old path functionality when using Boost Jam older than 3.1.17 and use the new functionality otherwise. As consequence, now anyone using the trunk version of Boost Build and an older 3.1.17 version of Boost.Jam will need to recompile their Boost Jam executable.

  The patch does not cause any Boost Build or Boost Jam tests to fail.

  Added a related NORMALIZE_PATH Boost Jam test. Note that this test causes Boost Jam versions built prior to this patch to crash (access violation).

  Added additional internal Boost Build tests for the path.jam module testing how it handles some invalid Windows paths.


[SVN r45158]
2008-05-05 22:37:19 +00:00
Jurko Gospodnetić
a7ad8a6708 Minor stylistic Boost Jam test cleanup.
[SVN r45149]
2008-05-05 19:35:02 +00:00
Jurko Gospodnetić
9103d18138 Minor stylistic Boost Jam test cleanup.
[SVN r45148]
2008-05-05 19:31:47 +00:00
Jurko Gospodnetić
560f054a32 Removed some old corpse comments and debugging output code related to functionality long removed in revision 29361. Minor stylistic comment changes.
[SVN r45145]
2008-05-05 16:01:21 +00:00
Jurko Gospodnetić
5ea6d62a5c Fixed a bug causing Boost Jam not to handle target file names specified as both short and long file names correctly. Bug fixed by making bindtarget() function map names to TARGETs by using their long file names.
When scanning directories and creating a list of all their content (filent.c) it would identify all the located files and folders using their long file names. On the other hand, referencing a target using its short file name inside a Jam script caused Boost Jam to reference those files twice using two separate TARGET structures - one identified using the file's short name and one using the file's long name.

  One bad example was the MkDir which would always attempt to create a folder identified by its short name even if that folder already existed (due to the NOUPDATE rule getting applied on the incorrect TARGET).

  The change does not affect targets whose names do not represent existing file names.

  Also, it seems to me that the short_path_to_long_path() call in file_dirscan() in the filent.c module should most likely be moved to file_info() in the filesys.c module. This would make mapping file names to file_info_t & TARGET structures consistent. However, I have not done this in this patch just to make the patch as minimal as possible.

  Prepared tests have been do nothing on non Windows platforms.


[SVN r45144]
2008-05-05 15:52:56 +00:00
Vladimir Prus
73770d23c2 Allow to separately specify include, lib and bin paths for Qt4.
Patch from tr1gun <tr1gun@gmx.net>


[SVN r45143]
2008-05-05 15:24:56 +00:00
Jurko Gospodnetić
b94fe3475c Corrected a typo in the tools/build/v2/tools/common.jam __test__ rule causing it to mess up the global .name variable in the os.jam module. This was effectively causing an internal os.jam module test to fail when you ran 'bjam --debug'.
[SVN r45121]
2008-05-04 23:59:21 +00:00
Jurko Gospodnetić
ddc382175e Minor stylistic changes.
[SVN r45120]
2008-05-04 23:55:56 +00:00
Rene Rivera
7afd8cb01e Work around for specifying test names with periods in them which creates "duplicate" target names.
[SVN r45117]
2008-05-04 19:46:59 +00:00
Jurko Gospodnetić
9683e5a085 Removed the old and no longer existing 'new' folder form the internal Boost Build path.
[SVN r45106]
2008-05-04 03:30:15 +00:00
Jurko Gospodnetić
f8ec4f27a9 Minor stylistic changes preparing for a more substantial patch without cluttering it with this.
[SVN r45105]
2008-05-04 03:19:19 +00:00
Jurko Gospodnetić
d850370d14 Simplified the stage.copy-file() rule. Minor stylistic changes.
[SVN r45104]
2008-05-04 02:11:21 +00:00
Jurko Gospodnetić
f534024af8 Cleaned up and better documented how the path.make-NT and path.join rules work. Corrected some minor flaws like the path.join rule returning only the initial path element in case its second path element was empty but there were more elements after it. This is the preparation for cleaning up the NORMALIZE_PATH builtin Boost Jam rule that is causing this implementation to be so messy.
[SVN r45103]
2008-05-04 02:01:52 +00:00
Jurko Gospodnetić
137ba701bf Minor stylistic comment change.
[SVN r45102]
2008-05-04 01:58:58 +00:00
Jurko Gospodnetić
49370bb57d Fixed a bug in the tools/build/v2/util/numbers.jam module related to numbers.log10 & numbers.less rules not working correctly with numbers that have leading zeroes. Added related regression tests.
Among other things this was breaking the new Boost Jam version detection functionality in some realistic cases. Added related regression tests.

[SVN r45100]
2008-05-04 01:27:09 +00:00
Jurko Gospodnetić
fd00d21f3c Added functionality for more easily testing the Boost Jam version from Jamfiles. Now you can use the version.check-jam-version rule, as in [ versions.check-jam-version 3 1 17 ] which will return true if the current Boost Jam version is at least 3.1.17. Added related internal Boost Build tests for the new functionality.
[SVN r45096]
2008-05-03 23:30:59 +00:00
Jurko Gospodnetić
a98f0c68ac Upgraded some internal Boost Build tests. Minor stylistic changes.
[SVN r45095]
2008-05-03 23:27:00 +00:00
Jurko Gospodnetić
64f00b1fa4 Made it clear that Boost Build's Windows path handling does not handle paths with multiple successive path separator characters. Added several missing internal path.jam module tests. Minor stylistic changes.
[SVN r45079]
2008-05-03 17:22:08 +00:00
Jurko Gospodnetić
4a70266395 Removed a TODO comment related to the 'NOTFILE all ;' statement in tools/build/v2/build-system.jam and replace with a better explanation comment. Dead code removal, Comment typo corrections. Minor stylistic changes.
[SVN r45072]
2008-05-03 16:32:23 +00:00
Jurko Gospodnetić
8d75524f7f Cleaned up the main Boost Build module a bit related to how it processes explicit file (not target) references specified on the command line. Improved the related unit test. Minor stylistic changes.
[SVN r45070]
2008-05-03 16:05:17 +00:00
Jurko Gospodnetić
8c4d464f1a Updated the documentation for Boost.Build's 'path' & 'propagated' feature attributes. Minor stylistic changes.
[SVN r45067]
2008-05-03 13:17:37 +00:00
Rene Rivera
045d833d72 Fix running -dumpversion when g++ command is multi-part.
[SVN r45056]
2008-05-03 03:42:08 +00:00
Jurko Gospodnetić
d0dca6c378 Corrected some small typos in the Boost.Build documentation. Added more links. Minor stylistic changes.
[SVN r45039]
2008-05-02 19:41:43 +00:00
Jurko Gospodnetić
b97333aa4e Minor stylistic Boost Build code changes.
[SVN r45023]
2008-05-02 15:26:44 +00:00
Jurko Gospodnetić
b3212fb63e Updated the Boost Build test system's documentation about Tester.run_build_system() parameters. Minor stylistic changes.
[SVN r45005]
2008-05-02 01:02:01 +00:00
Jurko Gospodnetić
99ac045eef Minor stylistic changes.
[SVN r45004]
2008-05-02 00:57:29 +00:00
Jurko Gospodnetić
9da0c8acf2 Documentation typo corrected.
[SVN r45002]
2008-05-02 00:51:05 +00:00
Jurko Gospodnetić
c7233ba87c Added a new regression test making sure that the Boost Jam SORT builtin rule does not start getting quadratic behavior in some special cases as well as testing that the sorting algorithm works correctly. Related to the patch committed in revision 44195. Trimmed trailing spaces in tools/build/v2/test/test_all.py.
[SVN r45001]
2008-05-02 00:36:23 +00:00
Jurko Gospodnetić
7ef2104518 Added support for tests checking that a build run did not take longer than expected to finish. Minor stylistic changes.
[SVN r45000]
2008-05-02 00:12:29 +00:00
Jurko Gospodnetić
9ac0675a4a Minor stylistic changes.
[SVN r44999]
2008-05-02 00:10:09 +00:00
Jurko Gospodnetić
de10d27aab Minor stylistic changes.
[SVN r44995]
2008-05-01 21:19:11 +00:00
Jurko Gospodnetić
4e43a57214 Upgraded the internal Boost Build test system so it can be run from folders whose names contain spaces on Windows. Also added a workaround for a Python bug on Windows where it has some undocumented behavior when starting processes using commands containing quotes.
[SVN r44993]
2008-05-01 20:22:12 +00:00
Jurko Gospodnetić
a4fb74303d Fixed a bug with BOOST_BUILD_PATH not getting set correctly in Boost Build unit tests in case it contained spaces.
[SVN r44991]
2008-05-01 19:47:37 +00:00
Jurko Gospodnetić
4de244fa71 Updated the Boost Build test system documentation. Now all the command line options are described. Several function descriptions updated.
[SVN r44983]
2008-05-01 17:08:04 +00:00
Jurko Gospodnetić
81ca84e34f Updated the main Tester class comment in tools/build/v2/build/v2/test/BoostBuild.py describing all of its available constructor parameters. Minor stylistic changes.
[SVN r44982]
2008-05-01 17:06:02 +00:00
Jurko Gospodnetić
c11256748d Added explanation comments for match_exact() and match_re() functions in tools/build/v2/test/TestCmd.py. Removed corpse interpreted member from the TescCmd class and the related setter function in tools/build/v2/test/TestCmd.py. Minor stylistic comment changes.
[SVN r44981]
2008-05-01 17:04:22 +00:00
Jurko Gospodnetić
776ab9e539 Minor stylistic comment changes.
[SVN r44980]
2008-05-01 17:01:03 +00:00
Jurko Gospodnetić
42c2a9072b Boost Build comment typo corrections and minor stylistic changes.
[SVN r44975]
2008-05-01 15:09:58 +00:00
Jurko Gospodnetić
d77573c4c9 Boost Build documentation typo correction. Removed trailing spaces. Minor stylistic changes.
[SVN r44971]
2008-05-01 10:03:15 +00:00
Jurko Gospodnetić
3051ef0aba Renamed the Tester.wait_for_time_change() function to Tester.wait_for_time_change_since_last_build() to avoid confusion.
[SVN r44970]
2008-05-01 09:55:47 +00:00
Jurko Gospodnetić
92bb5ccf97 Consistently converted tabs to spaces in tools/build/v2/test/BoostBuild.py to avoid confusion reading the Python source.
[SVN r44969]
2008-05-01 09:39:45 +00:00
Jurko Gospodnetić
9c16e9d0dd Corrected a typo in the Boost Build documentation.
[SVN r44953]
2008-04-30 20:58:05 +00:00
Jurko Gospodnetić
5469b49d33 Removed trailing spaces from tools/build/v2/build/modifiers.jam.
[SVN r44949]
2008-04-30 20:00:24 +00:00
Jurko Gospodnetić
c4659a614f Comment typo correction.
[SVN r44942]
2008-04-30 19:26:55 +00:00
Jurko Gospodnetić
69ee94dcd8 Comment cleanup - both stylistic & typo corrections.
[SVN r44941]
2008-04-30 19:24:04 +00:00
Jurko Gospodnetić
c48f725d30 Typo corrections & minor stylistic comment changes.
[SVN r44900]
2008-04-29 22:49:36 +00:00
Daniel James
ffd8344b45 Merge in documentation fixes. Apart from the change to optional's documenation
Jamfile, which I included by mistake.

Fixes #1659, #1661, #1684, #1685, 1687, #1690, #1801

I wrote about this at:

http://lists.boost.org/Archives/boost/2008/04/136405.php

Merged revisions 44585-44806 via svnmerge from 
https://svn.boost.org/svn/boost/branches/doc

........
  r44585 | danieljames | 2008-04-19 16:25:27 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix broken link to vacpp in bjam docs. Refs #1512
........
  r44586 | danieljames | 2008-04-19 16:27:36 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix broken link to bcpp in bjam docs. Refs #1513
........
  r44587 | danieljames | 2008-04-19 16:33:58 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  DateTime documentation - Fix a link to the serialization library. Refs #1659
........
  r44588 | danieljames | 2008-04-19 16:35:36 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix some links in interprocess & intrusive. Refs #1661
........
  r44589 | danieljames | 2008-04-19 16:37:39 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix some links in the python docs. Refs #1684.
........
  r44590 | danieljames | 2008-04-19 16:38:29 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Work around a quickbook bug which is affecting the python docs. Refs #1684.
........
  r44591 | danieljames | 2008-04-19 16:39:34 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix a broken link in the numeric conversion docs. Refs #1685
........
  r44592 | danieljames | 2008-04-19 16:40:45 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix some links in the optional docs. Refs #1687
........
  r44593 | danieljames | 2008-04-19 16:42:09 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix link to the hash documentation from bimap. Refs #1690
........
  r44599 | danieljames | 2008-04-19 18:07:33 +0100 (Sat, 19 Apr 2008) | 2 lines
  
  Fix a typo in the format library. Refs #1801
........
  r44600 | danieljames | 2008-04-19 19:20:59 +0100 (Sat, 19 Apr 2008) | 1 line
  
  Initialise svnmerge.
........
  r44641 | danieljames | 2008-04-20 18:59:47 +0100 (Sun, 20 Apr 2008) | 2 lines
  
  Fix the lincense url in shared container iterator documentation.
........
  r44642 | danieljames | 2008-04-20 19:00:00 +0100 (Sun, 20 Apr 2008) | 2 lines
  
  Fix image link in the mpi documentation.
........
  r44643 | danieljames | 2008-04-20 19:00:11 +0100 (Sun, 20 Apr 2008) | 2 lines
  
  Fix a typo in the spirit docs.
........
  r44644 | danieljames | 2008-04-20 19:00:23 +0100 (Sun, 20 Apr 2008) | 2 lines
  
  Escape the slash so that quickbook doesn't think it the start of an italic section, and mess up the link. Refs #1844
........
  r44647 | danieljames | 2008-04-20 19:39:47 +0100 (Sun, 20 Apr 2008) | 2 lines
  
  Fix another typo in spirit docs.
........


[SVN r44807]
2008-04-27 07:39:49 +00:00
Rene Rivera
9dc48843f8 Add the test target name to the bjam XML log output to make it easier to match tests to jam targets.
[SVN r44790]
2008-04-26 22:21:50 +00:00