OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../make/make-3.82-0002-oneshell.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From cfa19c5629f0252c4ab9058cadb582890ec3300b Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <chris@opensde.org>
  18. Date: Mon, 22 Oct 2012 17:47:09 +0200
  19. Subject: [PATCH] oneshell
  20. ChangeLog:
  21. 2010-08-13 Paul Smith <psmith@gnu.org>
  22. * main.c (main): Add "oneshell" to $(.FEATURES) (forgot to add
  23. this in 3.82!)
  24. test/ChangeLog:
  25. * run_make_tests.pl (set_more_defaults): Set a %FEATURES hash to
  26. the features available in $(.FEATURES).
  27. ---
  28. main.c | 2 +-
  29. tests/run_make_tests.pl | 3 +++
  30. 2 files changed, 4 insertions(+), 1 deletions(-)
  31. diff --git a/main.c b/main.c
  32. index 9fe8090..782b0de 100644
  33. --- a/main.c
  34. +++ b/main.c
  35. @@ -1138,7 +1138,7 @@ main (int argc, char **argv, char **envp)
  36. a macro and some compilers (MSVC) don't like conditionals in macros. */
  37. {
  38. const char *features = "target-specific order-only second-expansion"
  39. - " else-if shortest-stem undefine"
  40. + " else-if shortest-stem undefine oneshell"
  41. #ifndef NO_ARCHIVES
  42. " archives"
  43. #endif
  44. diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl
  45. index 2c8c08b..7291c55 100755
  46. --- a/tests/run_make_tests.pl
  47. +++ b/tests/run_make_tests.pl
  48. @@ -29,6 +29,7 @@
  49. # You should have received a copy of the GNU General Public License along with
  50. # this program. If not, see <http://www.gnu.org/licenses/>.
  51. +%FEATURES = ();
  52. $valgrind = 0; # invoke make with valgrind
  53. $valgrind_args = '';
  54. @@ -367,6 +368,8 @@ sub set_more_defaults
  55. $parallel_jobs = 1;
  56. }
  57. + %FEATURES = map { $_ => 1 } split /\s+/, `sh -c "echo '\\\$(info \\\$(.FEATURES))' | $make_path -f- 2>/dev/null"`;
  58. +
  59. # Set up for valgrind, if requested.
  60. if ($valgrind) {
  61. --
  62. 1.7.2.3