You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Crow Lee Contr 379 ECS <Le...@auab.aorcentaf.af.mil> on 2003/07/15 07:02:13 UTC

[users@httpd] Patching Makefile

Help!  I've looked everywhere and I don't know where else to turn to.  I
know this is a Unix basic, but I just can get it down.  I'm using FreeBSD
5.1 and Apache2.  I'm trying to patch the Makefile in
/usr/ports/www/p5-Apache-DBI with the patch found at:
http://www.freebsd.org/cgi/query-pr.cgi?pr=53204
<http://www.freebsd.org/cgi/query-pr.cgi?pr=53204>  Here are the contents of
the patch:
 
--- p5-Apache-DBI-mp2.diff begins here ---
diff -ruN p5-Apache-DBI.bak/Makefile p5-Apache-DBI/Makefile
--- p5-Apache-DBI.bak/Makefile  Mon Jun  9 22:43:46 2003
+++ p5-Apache-DBI/Makefile      Tue Jun 10 20:39:27 2003
@@ -15,8 +15,14 @@
 MAINTAINER=     skv@FreeBSD.org
 COMMENT= DBI persistent connection, authentication and authorization
 
-RUN_DEPENDS=
${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl \
-
${SITE_PERL}/${PERL_ARCH}/Bundle/DBI.pm:${PORTSDIR}/databases/p5-DBI
+RUN_DEPENDS=
${SITE_PERL}/${PERL_ARCH}/Bundle/DBI.pm:${PORTSDIR}/databases/p5-DBI
+
+.if defined(WITH_MODPERL2)
+RUN_DEPENDS+=
${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
+.else
+RUN_DEPENDS+=
${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
+.endif
+
 BUILD_DEPENDS=  ${RUN_DEPENDS}
 
 PERL_CONFIGURE= yes
--- p5-Apache-DBI-mp2.diff ends here ---
 
 
Can someone please explain this to me in detail?  I've read the manpages for
diff, but none of it seems too straight forward.  I'm sure this is easy but,
for some reason, I just can't get it.
 
Thanks in advance for any help!
 
Sincerely,
 
Lee

Re: [users@httpd] Patching Makefile

Posted by Brian Dessent <br...@dessent.net>.
> Crow Lee Contr 379 ECS wrote:
> 
> Help!  I've looked everywhere and I don't know where else to turn to.
> I know this is a Unix basic, but I just can get it down.  I'm using
> FreeBSD 5.1 and Apache2.  I'm trying to patch the Makefile in
> /usr/ports/www/p5-Apache-DBI with the patch found at:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=53204 Here are the contents
> of the patch:

In the same directory as Makefile, type "patch -p1 < filename.patch"
where filename.patch is the name of the patch.  You can also add "-b" if
you want to backup the changed file.

Brian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org