]> granicus.if.org Git - apache/commitdiff
Avoid cyclic dependency by moving ap_set_etag() from module http to core.
authorYann Ylavic <ylavic@apache.org>
Wed, 6 Jun 2018 21:04:21 +0000 (21:04 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 6 Jun 2018 21:04:21 +0000 (21:04 +0000)
This function, along with ap_make_etag(), is used by the default_handler in
core.c, and in several modules other than builtin mod_http, breaking static
linking and httpdunit tests build.

The move is done by "svn move modules/http/http_etag.c server/util_etag.c".
MMN major bumped, not backportable (as is) to 2.4.x.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1833083 13f79535-47bb-0310-9956-ffa450edef68

CMakeLists.txt
Makefile.in
NWGNUmakefile
include/ap_mmn.h
libhttpd.dsp
modules/http/config.m4
server/Makefile.in
server/util_etag.c [moved from modules/http/http_etag.c with 100% similarity]

index 34db575bb9873993044a3fc6270f2d0c35594d26..429ce54c7147c0fc6aa2f9b0a44f490ebee7f60a 100644 (file)
@@ -651,7 +651,6 @@ SET(LIBHTTPD_SOURCES
   modules/http/byterange_filter.c
   modules/http/chunk_filter.c
   modules/http/http_core.c
-  modules/http/http_etag.c
   modules/http/http_filters.c
   modules/http/http_protocol.c
   modules/http/http_request.c
@@ -680,6 +679,7 @@ SET(LIBHTTPD_SOURCES
   server/util_cfgtree.c
   server/util_cookies.c
   server/util_debug.c
+  server/util_etag.c
   server/util_expr_eval.c
   server/util_expr_parse.c
   server/util_fcgi.c
index 43d1879a9f900a713e041b9e12d1465a81bb13dc..802aaa6390e275554ff91065c97ba4773e847194 100644 (file)
@@ -7,9 +7,9 @@ PROGRAM_SOURCES      = modules.c
 PROGRAM_LDADD        = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(HTTPD_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
 PROGRAM_PRELINK      = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
 PROGRAM_DEPENDENCIES = \
-  server/libmain.la \
   $(BUILTIN_LIBS) \
   $(MPM_LIB) \
+  server/libmain.la \
   os/$(OS_DIR)/libos.la
 
 sbin_PROGRAMS   = $(PROGRAM_NAME)
index e11219570d6352a6eaef373cf9229634cfa38a84..3cea406800015d197e6bfb8aa87190450002b728 100644 (file)
@@ -242,7 +242,6 @@ FILES_nlm_objs = \
        $(OBJDIR)/http_request.o \
        $(OBJDIR)/byterange_filter.o \
        $(OBJDIR)/chunk_filter.o \
-       $(OBJDIR)/http_etag.o \
        $(OBJDIR)/http_filters.o \
        $(OBJDIR)/listen.o \
        $(OBJDIR)/log.o \
@@ -273,6 +272,7 @@ FILES_nlm_objs = \
        $(OBJDIR)/util_charset.o \
        $(OBJDIR)/util_cookies.o \
        $(OBJDIR)/util_debug.o \
+       $(OBJDIR)/util_etag.o \
        $(OBJDIR)/util_expr_eval.o \
        $(OBJDIR)/util_expr_parse.o \
        $(OBJDIR)/util_expr_scan.o \
index 69746cf256416432a5eeb69ef5066143b9db028e..1db1a6de6e114382e5de4cbe6f6c000b63dd7864 100644 (file)
  * 20180417.2 (2.5.1-dev)  Add AP_GETLINE_NOSPC_EOL flag to http_protocol.h
  * 20180417.3 (2.5.1-dev)  Add ap_fgetline() and AP_GETLINE_NONBLOCK flag
  * 20180422.1 (2.5.1-dev)  Axe ap_rgetline_core()
+ * 20180606.1 (2.5.1-dev)  Move ap_{make,set}_etag() from module http to core
  */
 
 #define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
 
 #ifndef MODULE_MAGIC_NUMBER_MAJOR
-#define MODULE_MAGIC_NUMBER_MAJOR 20180422
+#define MODULE_MAGIC_NUMBER_MAJOR 20180606
 #endif
 #define MODULE_MAGIC_NUMBER_MINOR 1                 /* 0...n */
 
index 929aa0749be5533c51d300b2252824e1dcf43582..d3720c5a3b5abaaef0212de39d920aa12336203b 100644 (file)
@@ -453,10 +453,6 @@ SOURCE=.\modules\http\http_core.c
 # End Source File
 # Begin Source File
 
-SOURCE=.\modules\http\http_etag.c
-# End Source File
-# Begin Source File
-
 SOURCE=.\modules\http\http_filters.c
 # End Source File
 # Begin Source File
@@ -549,6 +545,10 @@ SOURCE=.\include\util_ebcdic.h
 # End Source File
 # Begin Source File
 
+SOURCE=.\server\util_etag.c
+# End Source File
+# Begin Source File
+
 SOURCE=.\server\util_expr_private.h
 # End Source File
 # Begin Source File
index 64960075f63defd529b720df20511d96816022ea..7444e2ceff6a899f490e2c5ab4c038a48e65f0cd 100644 (file)
@@ -2,7 +2,7 @@ dnl modules enabled in this directory by default
 
 APACHE_MODPATH_INIT(http)
 
-http_objects="http_core.lo http_protocol.lo http_request.lo http_filters.lo chunk_filter.lo byterange_filter.lo http_etag.lo"
+http_objects="http_core.lo http_protocol.lo http_request.lo http_filters.lo chunk_filter.lo byterange_filter.lo"
 
 dnl mod_http should only be built as a static module for now.
 dnl this will hopefully be "fixed" at some point in the future by
index 71aea62056aeb2a8b30c554c067684a1d1ca9f68..e77efbacb9799b0578bc1f797da0730574e7b820 100644 (file)
@@ -7,7 +7,7 @@ SUBDIRS = mpm
 
 LTLIBRARY_NAME    = libmain.la
 LTLIBRARY_SOURCES = \
-       config.c log.c main.c vhost.c util.c util_fcgi.c \
+       config.c log.c main.c vhost.c util.c util_etag.c util_fcgi.c \
        util_script.c util_md5.c util_cfgtree.c util_ebcdic.c util_time.c \
        connection.c listen.c util_mutex.c \
        mpm_common.c mpm_unix.c mpm_fdqueue.c \
similarity index 100%
rename from modules/http/http_etag.c
rename to server/util_etag.c