[parrot/parrot] ae18a1: [TT #1589] Remove "." from default search paths IN...

GitHub noreply at github.com
Wed Dec 26 18:54:40 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: ae18a13d394637eae30b824ebdeef0735539f97a
      https://github.com/parrot/parrot/commit/ae18a13d394637eae30b824ebdeef0735539f97a
  Author: Jonathan "Duke" Leto <jonathan at leto.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M src/library.c
    A t/library/dont_load_me.pir
    A t/library/lib_search_path.t

  Log Message:
  -----------
  [TT #1589] Remove "." from default search paths INCLUDE, LIBRARY and LANG

Apply patch from soh_cah_toa++ with small tweaks and an extra test.

Before "." was at the top of the search paths, which implied a security risk.

The other possibility from [GH #368] would be to add "." to the end of the
search paths.

Test that . is not in the library search path, and that runtime/parrot/dynext
is searched.
TODO: Deprecation, docs.


  Commit: 7b404635abf92e448b2125914b8d88e6dad87d39
      https://github.com/parrot/parrot/commit/7b404635abf92e448b2125914b8d88e6dad87d39
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    A examples/pir/libpaths.pir
    M src/library.c
    R t/library/dont_load_me.pir

  Log Message:
  -----------
  [GH #368] Move ./ from the beginning to the end of the library search paths

Add examples/pir/libpaths.pir to show the various deficiences of our current
library search paths.
Duplicates, installed paths mixed up with temp. build paths.


  Commit: eb58330a1e8d1298cfae57bffc9d31bd3d9953f3
      https://github.com/parrot/parrot/commit/eb58330a1e8d1298cfae57bffc9d31bd3d9953f3
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M lib/Parrot/Test.pm

  Log Message:
  -----------
  [t] Remove unneeded old 3rd argument from Parrot::Test::_pir_stdin_output_slurp


  Commit: cec9d241db7bdc809409cd5345cba519495a87b3
      https://github.com/parrot/parrot/commit/cec9d241db7bdc809409cd5345cba519495a87b3
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M docs/pdds/pdd10_embedding.pod

  Log Message:
  -----------
  [docs] Fix and add to pdd10_embedding.pod

library search paths are changable, and show how to do it
in pir pseudocode.
Also add PARROT_PLATFORM_LIB_PATH_INIT_HOOK.


  Commit: bf28913e62c643ccaddb6bb58b1e5fbf17adea13
      https://github.com/parrot/parrot/commit/bf28913e62c643ccaddb6bb58b1e5fbf17adea13
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M t/library/lib_search_path.t

  Log Message:
  -----------
  [t][GH #368] Test library search paths

Currently tests 1-4 fails because of duplicates.
Only works on slash eq "/"


  Commit: 03ea132ab8e9d29557a621f1949a930688707e0a
      https://github.com/parrot/parrot/commit/03ea132ab8e9d29557a621f1949a930688707e0a
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M t/library/lib_search_path.t

  Log Message:
  -----------
  [t][GH #368] Fix library search path tests

Works ok with the next commit to fix the duplicate
call to Parrot_lib_update_paths_from_config_hash.


  Commit: 49ee9320b6a49e2ff8cf5afd0adda98cc7afdc7a
      https://github.com/parrot/parrot/commit/49ee9320b6a49e2ff8cf5afd0adda98cc7afdc7a
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M src/embed/api.c

  Log Message:
  -----------
  [GH #368] Fix duplicate library search paths

Remove the duplicate call to Parrot_lib_update_paths_from_config_hash()
from Parrot_api_set_configuration_hash().

1.
  0  Parrot_lib_update_paths_from_config_hash (interp=0x412050) at src/library.c:214
  1  0x00007ffff7ab8d35 in Parrot_gbl_set_config_hash_interpreter (interp=0x412050) at src/global_setup.c:131
  2  0x00007ffff7ab8c54 in Parrot_set_config_hash_pmc (interp=0x412050, config=PMC<Hash> = {...}) at src/global_setup.c:98
  3  0x00007ffff7a99aca in Parrot_api_set_configuration_hash (interp_pmc=0x4dcb00, confighash=0x4e9a18) at src/embed/api.c:506
  4  0x0000000000402713 in Parrot_set_config_hash (interp_pmc=0x4dcb00) at src/parrot_config.c:3870
  5  0x000000000040175c in main (argc=2, argv=0x7fffffffe6b8) at frontend/parrot2/main.c:151
2.
  0  Parrot_lib_update_paths_from_config_hash (interp=0x412050) at src/library.c:214
  1  0x00007ffff7a99ad9 in Parrot_api_set_configuration_hash (interp_pmc=0x4dcb00, confighash=0x4e9a18) at src/embed/api.c:507
  2  0x0000000000402713 in Parrot_set_config_hash (interp_pmc=0x4dcb00) at src/parrot_config.c:3870
  3  0x000000000040175c in main (argc=2, argv=0x7fffffffe6b8) at frontend/parrot2/main.c:151

Parrot_set_config_hash_pmc already calls Parrot_lib_update_paths_from_config_hash, no need to
call it again.


  Commit: 03d95241fcf7fc57dc5f618deab453b4e289a428
      https://github.com/parrot/parrot/commit/03d95241fcf7fc57dc5f618deab453b4e289a428
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M ChangeLog

  Log Message:
  -----------
  Added ChangeLog for branch library_path-gh368


  Commit: 6fa183db3c2c2b6dbc14b94d382a63a63d812508
      https://github.com/parrot/parrot/commit/6fa183db3c2c2b6dbc14b94d382a63a63d812508
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M docs/deprecations/deprecations.pod

  Log Message:
  -----------
  Set deprecation note for [GH #368], moved . to the end of the library search paths


  Commit: fef61153b8e426b9a59c9a1575ce0ba7ef8a8738
      https://github.com/parrot/parrot/commit/fef61153b8e426b9a59c9a1575ce0ba7ef8a8738
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M docs/deprecations/deprecations.pod

  Log Message:
  -----------
  Fixed header of last deprecation note


  Commit: e9f3c12e2b62dcf8c0525e58c544a6b4d5c8133d
      https://github.com/parrot/parrot/commit/e9f3c12e2b62dcf8c0525e58c544a6b4d5c8133d
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M t/library/lib_search_path.t

  Log Message:
  -----------
  [GH #368] t/library/lib_search_path.t: Enable win32, clarify specs


  Commit: 9f553c045150246b11bba0d2639fbdfe4748471b
      https://github.com/parrot/parrot/commit/9f553c045150246b11bba0d2639fbdfe4748471b
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M ChangeLog
    M docs/deprecations/deprecations.pod
    M docs/pdds/pdd10_embedding.pod
    A examples/pir/libpaths.pir
    M lib/Parrot/Test.pm
    M src/embed/api.c
    M src/library.c
    A t/library/lib_search_path.t

  Log Message:
  -----------
  Merge branch 'library_path-gh368'

Remove duplicate library search path entries, move "." from the beginning to
the end. [GH 368]
Added t/library/lib_search_path.t


  Commit: abb5cf68baa1d7dca60b1f541d36b950c9644060
      https://github.com/parrot/parrot/commit/abb5cf68baa1d7dca60b1f541d36b950c9644060
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M .gitignore

  Log Message:
  -----------
  [GH #890] rename MANIFEST_configure.generated to MANIFEST.generated in .gitignore


Compare: https://github.com/parrot/parrot/compare/fcf06aac6ea3...abb5cf68baa1


More information about the parrot-commits mailing list