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.

34 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mdadm/mdadm-3.2.5-do-not-include-ansidecl.h.patch.cross
  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. Cross-compiling mdadm fails in the case binutils was only build in stage 0.
  17. The ansidecl.h is is only installed if the --enable-shared configure option
  18. is given when building binutils which is not the case at toolchain stage
  19. (aka stage 0). But even if we provide the --enable-shared configure option
  20. at toolchain stage, the headers are installed at place which is not known
  21. when building packages at stage 1.
  22. --- mdadm-3.2.5/sha1.h.orig 2012-07-25 10:49:35.487768058 +0200
  23. +++ mdadm-3.2.5/sha1.h 2012-07-25 10:50:51.385378523 +0200
  24. @@ -26,8 +26,6 @@
  25. # include <limits.h>
  26. #endif
  27. -#include "ansidecl.h"
  28. -
  29. /* The following contortions are an attempt to use the C preprocessor
  30. to determine an unsigned integral type that is 32 bits wide. An
  31. alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but