Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 66dd8410cea698ad8af2319531055d1b > files > 30

apache-2.2.6-8.2mdv2008.0.src.rpm


__FILE__ expands to the full pathname during VPATH builds; this
clutters up the debug log (and also bloats binaries very slightly).
The -pie patch defines AP_FNAME during build which is equivalent
to basename(__FILE__); this uses AP_FNAME in place of __FILE__
for error logging.

AP_FNAME uses $(notdir ...), a GNU make extension, so this can't
go upstream.

Note this patch is useless without the -pie patch.

Upstream-HEAD: committed
Upstream-2.0: needed
Upstream-Status: better fix to server/log.c upstream

--- httpd-2.0.48/include/http_log.h.debuglog
+++ httpd-2.0.48/include/http_log.h
@@ -130,7 +130,11 @@
 
 extern int AP_DECLARE_DATA ap_default_loglevel;
 
+#ifdef AP_FNAME
+#define APLOG_MARK      AP_FNAME,__LINE__
+#else
 #define APLOG_MARK	__FILE__,__LINE__
+#endif
 
 /**
  * Set up for logging to stderr.