apache13 port problems

FUJISHIMA Satsuki sf at FreeBSD.org
Fri Nov 7 19:02:11 PST 2003


At Fri, 07 Nov 2003 13:06:58 -0800,
Rick Updegrove wrote:
> 
> Andrey Chernov wrote:
> 
> > I can't reproduce that. Try to rm -rf /usr/local/www/data-dist first.
> 
> That worked.  Thanks.
> 
> Now what caused it?  I installed like every possible apache port over 
> the past week and I have no idea which one installs 
> "/usr/local/www/data-dist" as apposed to "/usr/local/www/data" etc.

You have had some files which include xargs-unsafe character in its
filename. e.g.) '(single quotation). The solution is to utilize xargs -0.

Index: files/patch-ab
===================================================================
RCS file: /home/ncvs/ports/www/apache13/files/patch-ab,v
retrieving revision 1.25
diff -u -r1.25 patch-ab
--- files/patch-ab	22 Jun 2002 05:47:36 -0000	1.25
+++ files/patch-ab	8 Nov 2003 02:58:36 -0000
@@ -1,5 +1,5 @@
---- Makefile.tmpl.orig	Thu Mar 14 00:05:27 2002
-+++ Makefile.tmpl	Sat Jun 22 09:33:52 2002
+--- Makefile.tmpl.orig	Mon Apr 28 22:32:12 2003
++++ Makefile.tmpl	Sat Nov  8 11:58:34 2003
 @@ -270,10 +270,10 @@
  	$(MKDIR) $(root)$(mandir)/man1
  	$(MKDIR) $(root)$(mandir)/man8
@@ -30,13 +30,13 @@
 -	- at if [ -d $(TOP)/htdocs/manual ]; then \
 +		(cd $(root)$(htdocsdir)-dist/ && $(TAR) -xf -); \
 +		find $(root)$(htdocsdir)-dist/ -type d -exec chmod a+rx {} \; ; \
-+		find $(root)$(htdocsdir)-dist/ -type f -print | xargs chmod a+r ;
++		find $(root)$(htdocsdir)-dist/ -type f -print0 | xargs -0 chmod a+r ;
  		echo "Copying tree $(TOP)/htdocs/manual -> $(root)/$(manualdir)/"; \
  		(cd $(TOP)/htdocs/manual/ && $(TAR) $(TAROPT) - *) |\
  		(cd $(root)$(manualdir)/ && $(TAR) -xf -); \
  		find $(root)$(manualdir)/ -type d -exec chmod a+rx {} \; ; \
 -		find $(root)$(manualdir)/ -type f -print | xargs chmod a+r ; \
-+		find $(root)$(manualdir)/ -type f -print | xargs chmod a+r ;
++		find $(root)$(manualdir)/ -type f -print0 | xargs -0 chmod a+r ;
 +	if [ ! -d $(root)$(htdocsdir)/ ]; then \
 +		$(LN) -sf $(root)$(htdocsdir)-dist $(root)$(htdocsdir); \
  	fi
@@ -73,9 +73,9 @@
 +			-e "s;logs/referer_log;$(logfiledir)/$${target_prefix}httpd-referer.log;" \
 +			-e "s;logs/agent_log;$(logfiledir)/$${target_prefix}httpd-agent.log;" \
  			-e 's;conf/magic;$(sysconfdir)/magic;' \
- 			-e 's;conf/mime\.types;$(sysconfdir)/mime.types;' \
- 			-e 's;User nobody;User $(conf_user);' \
-@@ -537,8 +533,8 @@
+ 			-e 's;conf/srm.conf;$(sysconfdir)/srm.conf;' \
+ 			-e 's;conf/access.conf;$(sysconfdir)/access.conf;' \
+@@ -539,8 +535,8 @@
  			-e 's;ServerAdmin you at your.address;ServerAdmin $(conf_serveradmin);' \
  			-e 's;ServerName new.host.name;ServerName $(conf_servername);' \
  			> $(TOP)/$(SRC)/.apaci.install.tmp && \
@@ -86,7 +86,7 @@
  		if [ ! -f "$(root)$(sysconfdir)/$${target_conf}" ]; then \
  			echo "$(INSTALL_DATA) $(TOP)/conf/$${conf}-dist[*] $(root)$(sysconfdir)/$${target_conf}"; \
  			$(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(sysconfdir)/$${target_conf}; \
-@@ -547,8 +543,8 @@
+@@ -549,8 +545,8 @@
  		fi; \
  	done
  	- at for conf in mime.types magic; do \


More information about the freebsd-ports mailing list