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.

58 lines
2.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../lvm/gcc34.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. The usual gcc-3.4.0 fixes.
  18. - Rene Rebe <rene@exactcode.de>
  19. diff -ur 1.0.8-orig/tools/lib/pv_read_all_pv_of_vg.c 1.0.8/tools/lib/pv_read_all_pv_of_vg.c
  20. --- 1.0.8-orig/tools/lib/pv_read_all_pv_of_vg.c 2003-09-03 17:16:08.000000000 +0200
  21. +++ 1.0.8/tools/lib/pv_read_all_pv_of_vg.c 2004-05-02 23:31:36.000000000 +0200
  22. @@ -130,6 +130,7 @@
  23. }
  24. pv_this[p] = NULL;
  25. uuid_check_end:
  26. + ((void)0);
  27. }
  28. for ( pp = 0; pp < p - 2; pp++) {
  29. if ( pv_this[pp] == NULL) {
  30. diff -ur 1.0.8-orig/tools/lib/pv_read_uuidlist.c 1.0.8/tools/lib/pv_read_uuidlist.c
  31. --- 1.0.8-orig/tools/lib/pv_read_uuidlist.c 2003-02-06 16:05:34.000000000 +0100
  32. +++ 1.0.8/tools/lib/pv_read_uuidlist.c 2004-05-02 23:32:29.000000000 +0200
  33. @@ -50,7 +50,7 @@
  34. static char *this_pv_uuidlist = NULL;
  35. int num;
  36. - debug_enter(__FUNCTION__ " -- CALLED with %s\n", pv ? pv->pv_name : "NULL");
  37. + debug_enter("%s -- CALLED with %s\n", __FUNCTION__, pv ? pv->pv_name : "NULL");
  38. if (pv == NULL || pv_uuidlist == NULL)
  39. return -LVM_EPARAM;
  40. diff -ur 1.0.8-orig/tools/lib/pv_write_uuidlist.c 1.0.8/tools/lib/pv_write_uuidlist.c
  41. --- 1.0.8-orig/tools/lib/pv_write_uuidlist.c 2003-02-06 16:05:34.000000000 +0100
  42. +++ 1.0.8/tools/lib/pv_write_uuidlist.c 2004-05-02 23:34:26.000000000 +0200
  43. @@ -71,7 +71,8 @@
  44. /* Create/fix UUIDs for any PVs that need it */
  45. if (lvm_check_uuid(pv->pv_uuid) < 0) {
  46. - debug(__FUNCTION__ " -- creating new UUID for PV %s\n",
  47. + debug("%s -- creating new UUID for PV %s\n",
  48. + __FUNCTION__,
  49. pv->pv_name);
  50. memset(pv->pv_uuid, 0, sizeof(pv->pv_uuid));
  51. memcpy(pv->pv_uuid, lvm_create_uuid(UUID_LEN), UUID_LEN);