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.

206 lines
10 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ocfs2-tools/ocfs2-tools-1.2.2-fix-defines.patch
  5. # Copyright (C) 2006 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. Submitted by: Christian Wiese (morfoh at opensde dot org)
  17. Date: 2006-12-02
  18. Initial Package Version: 1.2.2
  19. Upstream Status: not submitted yet
  20. Origin: ocfs2-tools-1.2.2-fix-defines.patch by Christian Wiese made for the
  21. Open System Development Environment (OpenSDE - http://opensde.org)
  22. Description: ocfs2-tools doesn't compile because the offsetof function is not
  23. defined. This patch fixes certain problems discovered while observing
  24. the problem described in http://trac.opensde.org/ticket/199.
  25. diff -ruN ocfs2-tools-1.2.2/Config.make.in ocfs2-tools-1.2.2-fix-defines/Config.make.in
  26. --- ocfs2-tools-1.2.2/Config.make.in 2006-10-19 20:10:53.000000000 +0300
  27. +++ ocfs2-tools-1.2.2-fix-defines/Config.make.in 2006-12-02 18:52:49.000000000 +0200
  28. @@ -44,6 +44,8 @@
  29. AR = @AR@
  30. RANLIB = @RANLIB@
  31. +DEFINES = @DEFINES@
  32. +
  33. CFLAGS = @CFLAGS@
  34. CPPFLAGS = @CPPFLAGS@
  35. LDFLAGS = @LDFLAGS@
  36. diff -ruN ocfs2-tools-1.2.2/Preamble.make ocfs2-tools-1.2.2-fix-defines/Preamble.make
  37. --- ocfs2-tools-1.2.2/Preamble.make 2006-10-19 20:10:53.000000000 +0300
  38. +++ ocfs2-tools-1.2.2-fix-defines/Preamble.make 2006-12-02 19:07:35.000000000 +0200
  39. @@ -26,7 +26,6 @@
  40. DIST_RULES =
  41. INCLUDES =
  42. -DEFINES =
  43. CFLAGS += $($(subst /,_,$(basename $@))_CFLAGS)
  44. CFLAGS += -pipe
  45. diff -ruN ocfs2-tools-1.2.2/configure ocfs2-tools-1.2.2-fix-defines/configure
  46. --- ocfs2-tools-1.2.2/configure 2006-12-02 18:32:53.000000000 +0200
  47. +++ ocfs2-tools-1.2.2-fix-defines/configure 2006-12-02 19:13:41.000000000 +0200
  48. @@ -309,7 +309,7 @@
  49. # include <unistd.h>
  50. #endif"
  51. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE MAJOR_VERSION MINOR_VERSION MICRO_VERSION EXTRA_VERSION DIST_VERSION VERSION RPM_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB AR EGREP root_prefix root_bindir root_sbindir root_sysconfdir OCFS2_DEBUG PKG_CONFIG COM_ERR_CFLAGS COM_ERR_LIBS UUID_LIBS NCURSES_LIBS READLINE_LIBS OCFS2_DEBUG_EXE OCFS2_DYNAMIC_FSCK OCFS2_DYNAMIC_CTL GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS BUILD_OCFS2CDSL BUILD_DEBUGOCFS2 PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir PYTHON_INCLUDES BLKID_CFLAGS BLKID_LIBS HAVE_BLKID BUILD_OCFS2CONSOLE LIBOBJS LTLIBOBJS'
  52. +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFINES ECHO_C ECHO_N ECHO_T LIBS PACKAGE MAJOR_VERSION MINOR_VERSION MICRO_VERSION EXTRA_VERSION DIST_VERSION VERSION RPM_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB AR EGREP root_prefix root_bindir root_sbindir root_sysconfdir OCFS2_DEBUG PKG_CONFIG COM_ERR_CFLAGS COM_ERR_LIBS UUID_LIBS NCURSES_LIBS READLINE_LIBS OCFS2_DEBUG_EXE OCFS2_DYNAMIC_FSCK OCFS2_DYNAMIC_CTL GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS BUILD_OCFS2CDSL BUILD_DEBUGOCFS2 PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir PYTHON_INCLUDES BLKID_CFLAGS BLKID_LIBS HAVE_BLKID BUILD_OCFS2CONSOLE LIBOBJS LTLIBOBJS'
  53. ac_subst_files=''
  54. # Initialize some variables set by options.
  55. @@ -1161,7 +1161,7 @@
  56. done
  57. ac_signal=0
  58. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  59. +# confdefs.h avoids OS command line length limits that DEFINES can exceed.
  60. rm -rf conftest* confdefs.h
  61. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  62. echo >confdefs.h
  63. @@ -3142,8 +3142,8 @@
  64. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  65. - inttypes.h stdint.h unistd.h
  66. +for ac_header in sys/types.h sys/stat.h stdlib.h stddef.h string.h memory.h \
  67. + strings.h inttypes.h stdint.h unistd.h
  68. do
  69. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  70. echo "$as_me:$LINENO: checking for $ac_header" >&5
  71. @@ -6766,7 +6766,7 @@
  72. }'
  73. fi
  74. -# Transform confdefs.h into DEFS.
  75. +# Transform confdefs.h into DEFINES.
  76. # Protect against shell expansion while executing Makefile rules.
  77. # Protect against Makefile macro expansion.
  78. #
  79. @@ -6795,7 +6795,7 @@
  80. # platform that uses two characters for line-breaks (e.g., DOS), tr
  81. # would break.
  82. ac_LF_and_DOT=`echo; echo .`
  83. -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  84. +DEFINES=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  85. rm -f confdef2opt.sed
  86. @@ -7354,7 +7354,7 @@
  87. s,@build_alias@,$build_alias,;t t
  88. s,@host_alias@,$host_alias,;t t
  89. s,@target_alias@,$target_alias,;t t
  90. -s,@DEFS@,$DEFS,;t t
  91. +s,@DEFINES@,$DEFINES,;t t
  92. s,@ECHO_C@,$ECHO_C,;t t
  93. s,@ECHO_N@,$ECHO_N,;t t
  94. s,@ECHO_T@,$ECHO_T,;t t
  95. diff -ruN ocfs2-tools-1.2.2/fsck.ocfs2/Makefile ocfs2-tools-1.2.2-fix-defines/fsck.ocfs2/Makefile
  96. --- ocfs2-tools-1.2.2/fsck.ocfs2/Makefile 2006-10-19 20:10:45.000000000 +0300
  97. +++ ocfs2-tools-1.2.2-fix-defines/fsck.ocfs2/Makefile 2006-12-02 19:26:02.000000000 +0200
  98. @@ -28,7 +28,7 @@
  99. CFLAGS := $(OPTS) -Wall -Wstrict-prototypes -Wmissing-prototypes \
  100. -Wmissing-declarations
  101. -DEFINES = -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  102. +DEFINES += -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  103. CFILES = fsck.c \
  104. dirblocks.c \
  105. diff -ruN ocfs2-tools-1.2.2/libocfs2/Makefile ocfs2-tools-1.2.2-fix-defines/libocfs2/Makefile
  106. --- ocfs2-tools-1.2.2/libocfs2/Makefile 2006-10-19 20:10:46.000000000 +0300
  107. +++ ocfs2-tools-1.2.2-fix-defines/libocfs2/Makefile 2006-12-02 21:46:50.000000000 +0200
  108. @@ -22,7 +22,7 @@
  109. LIBO2CB_DEPS = $(TOPDIR)/libo2cb/libo2cb.a
  110. CFLAGS = $(OPTS) $(WARNINGS) -fPIC
  111. -CPPFLAGS += -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  112. +DEFINES += -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  113. ifneq ($(OCFS2_DEBUG_EXE),)
  114. DEBUG_EXE_FILES = $(shell awk '/DEBUG_EXE/{if (k[FILENAME] == 0) {print FILENAME; k[FILENAME] = 1;}}' $(CFILES))
  115. diff -ruN ocfs2-tools-1.2.2/libocfs2/include/ocfs2.h ocfs2-tools-1.2.2-fix-defines/libocfs2/include/ocfs2.h
  116. --- ocfs2-tools-1.2.2/libocfs2/include/ocfs2.h 2006-10-19 20:10:46.000000000 +0300
  117. +++ ocfs2-tools-1.2.2-fix-defines/libocfs2/include/ocfs2.h 2006-12-02 22:09:47.000000000 +0200
  118. @@ -34,7 +34,22 @@
  119. # define _LARGEFILE64_SOURCE
  120. #endif
  121. +#ifdef HAVE_STDIO_H
  122. #include <stdio.h>
  123. +#endif
  124. +
  125. +#if defined(STDC_HEADERS)
  126. +# include <stdlib.h>
  127. +# include <stddef.h>
  128. +#else
  129. +# if defined(HAVE_STDLIB_H)
  130. +# include <stdlib.h>
  131. +# endif
  132. +# if defined(HAVE_STDDEF_H)
  133. +# include <stddef.h>
  134. +# endif
  135. +#endif
  136. +
  137. #include <stdint.h>
  138. #include <sys/stat.h>
  139. #include <time.h>
  140. diff -ruN ocfs2-tools-1.2.2/listuuid/Makefile ocfs2-tools-1.2.2-fix-defines/listuuid/Makefile
  141. --- ocfs2-tools-1.2.2/listuuid/Makefile 2006-10-19 20:10:46.000000000 +0300
  142. +++ ocfs2-tools-1.2.2-fix-defines/listuuid/Makefile 2006-12-02 19:29:49.000000000 +0200
  143. @@ -25,7 +25,7 @@
  144. CFLAGS := $(OPTS) -Wall -Wstrict-prototypes -Wmissing-prototypes \
  145. -Wmissing-declarations
  146. -DEFINES = -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  147. +DEFINES += -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  148. UNINST_PROGRAMS = listuuid
  149. diff -ruN ocfs2-tools-1.2.2/mount.ocfs2/Makefile ocfs2-tools-1.2.2-fix-defines/mount.ocfs2/Makefile
  150. --- ocfs2-tools-1.2.2/mount.ocfs2/Makefile 2006-10-19 20:10:46.000000000 +0300
  151. +++ ocfs2-tools-1.2.2-fix-defines/mount.ocfs2/Makefile 2006-12-02 19:28:35.000000000 +0200
  152. @@ -23,7 +23,7 @@
  153. CFLAGS := $(OPTS) -Wall -Wstrict-prototypes -Wmissing-prototypes \
  154. -Wmissing-declarations
  155. -DEFINES = -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES \
  156. +DEFINES += -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES \
  157. -DO2CB_FLAT_INCLUDES -DVERSION=\"$(VERSION)\"
  158. CFILES = opts.c mount.ocfs2.c
  159. diff -ruN ocfs2-tools-1.2.2/ocfs2_hb_ctl/Makefile ocfs2-tools-1.2.2-fix-defines/ocfs2_hb_ctl/Makefile
  160. --- ocfs2-tools-1.2.2/ocfs2_hb_ctl/Makefile 2006-10-19 20:10:46.000000000 +0300
  161. +++ ocfs2-tools-1.2.2-fix-defines/ocfs2_hb_ctl/Makefile 2006-12-02 19:27:10.000000000 +0200
  162. @@ -27,7 +27,7 @@
  163. CFLAGS := $(OPTS) -Wall -Wstrict-prototypes -Wmissing-prototypes \
  164. -Wmissing-declarations
  165. -DEFINES = -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES \
  166. +DEFINES += -DOCFS2_FLAT_INCLUDES -DO2DLM_FLAT_INCLUDES \
  167. -DO2CB_FLAT_INCLUDES -DVERSION=\"$(VERSION)\"
  168. CFILES = ocfs2_hb_ctl.c
  169. diff -ruN ocfs2-tools-1.2.2/sizetest/Makefile ocfs2-tools-1.2.2-fix-defines/sizetest/Makefile
  170. --- ocfs2-tools-1.2.2/sizetest/Makefile 2006-10-19 20:10:49.000000000 +0300
  171. +++ ocfs2-tools-1.2.2-fix-defines/sizetest/Makefile 2006-12-02 19:31:00.000000000 +0200
  172. @@ -16,7 +16,7 @@
  173. UNINST_PROGRAMS = sizetest.ocfs2
  174. INCLUDES = -I$(TOPDIR)/libocfs2/include -I$(TOPDIR)/libo2dlm/include -I$(TOPDIR)/libo2cb/include
  175. -DEFINES = -DOCFS2_FLAT_INCLUDES -DVERSION=\"$(VERSION)\" -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  176. +DEFINES += -DOCFS2_FLAT_INCLUDES -DVERSION=\"$(VERSION)\" -DO2DLM_FLAT_INCLUDES -DO2CB_FLAT_INCLUDES
  177. CFILES = sizetest.c
  178. OBJS = $(subst .c,.o,$(CFILES))