ports/59603: [maintainer fix] www/mod_layout: (hopefully) fix build on amd64
Clement Laforet
sheepkiller at cultdeadsheep.org
Sun Nov 23 10:10:15 UTC 2003
>Number: 59603
>Category: ports
>Synopsis: [maintainer fix] www/mod_layout: (hopefully) fix build on amd64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 23 02:10:10 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Clement Laforet
>Release: FreeBSD 5.2-BETA i386
>Organization:
cotds.org
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.2-BETA FreeBSD 5.2-BETA #0: Sat Nov 22 21:09:27 CET 2003 clement at lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386
>Description:
According to bento log, -fPIC option is required to build.
Now we respect CFLAGS and -fPIC is added
While I'm here, let's use %%DOCSDIR%% too.
>How-To-Repeat:
http://bento.freebsd.org/errorlogs/amd64-5-latest/mod_layout-3.2.1.log
>Fix:
--- mod_layout.diff begins here ---
Index: mod_layout/Makefile
===================================================================
RCS file: /WORK/REPO/FreeBSD/ports/www/mod_layout/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- mod_layout/Makefile 7 Nov 2003 09:12:53 -0000 1.12
+++ mod_layout/Makefile 23 Nov 2003 09:49:09 -0000
@@ -16,10 +16,11 @@
USE_APACHE= yes
USE_REINPLACE= yes
+CFLAGS+= -fPIC
+
post-patch:
@${REINPLACE_CMD} -e 's!apxs!${LOCALBASE}/sbin/apxs!g; \
- s!-DDEBUG!!g' ${WRKSRC}/Makefile
-
+ s!-DDEBUG!$$(CFLAGS)!g' ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
Index: mod_layout/pkg-plist
===================================================================
RCS file: /WORK/REPO/FreeBSD/ports/www/mod_layout/pkg-plist,v
retrieving revision 1.4
diff -u -r1.4 pkg-plist
--- mod_layout/pkg-plist 6 Jul 2002 06:47:45 -0000 1.4
+++ mod_layout/pkg-plist 23 Nov 2003 09:51:44 -0000
@@ -1,40 +1,40 @@
libexec/apache/mod_layout.so
@exec %D/sbin/apxs -e -a -n layout %D/%f
@unexec echo "===> If you do not plan on reinstalling mod_layout, you must manually remove"; echo "===> references to it in httpd.conf."
-%%PORTDOCS%%share/doc/mod_layout/faq.html
-%%PORTDOCS%%share/doc/mod_layout/directives/Layout.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutCache.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutCacheNeeded.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutComment.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutDefaultHandlers.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutDisplayOriginal.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutFooter.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutFooterFile.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutFooterOff.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutFooterTXT.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHTTPHeader.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHTTPHeaderOff.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHTTPOverrideHandler.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHTTPOverrideURI.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHandler.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHandlerGlob.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHeader.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHeaderFile.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHeaderOff.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutHeaderTXT.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutIgnoreFooterURI.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutIgnoreHeaderURI.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutIgnoreTag.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutIgnoreTagFooter.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutIgnoreTagHeader.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutIgnoreURI.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutMerge.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutMergeBeginTag.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutMergeEndTag.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutMergeErrorIgnore.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutPostAsync.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutProxy.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutReplaceTags.html
-%%PORTDOCS%%share/doc/mod_layout/directives/LayoutTimeFormat.html
-%%PORTDOCS%%@dirrm share/doc/mod_layout/directives
-%%PORTDOCS%%@dirrm share/doc/mod_layout
+%%PORTDOCS%%%%DOCSDIR%%/faq.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/Layout.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutCache.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutCacheNeeded.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutComment.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutDefaultHandlers.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutDisplayOriginal.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutFooter.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutFooterFile.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutFooterOff.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutFooterTXT.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHTTPHeader.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHTTPHeaderOff.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHTTPOverrideHandler.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHTTPOverrideURI.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHandler.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHandlerGlob.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHeader.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHeaderFile.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHeaderOff.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutHeaderTXT.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutIgnoreFooterURI.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutIgnoreHeaderURI.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutIgnoreTag.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutIgnoreTagFooter.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutIgnoreTagHeader.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutIgnoreURI.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutMerge.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutMergeBeginTag.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutMergeEndTag.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutMergeErrorIgnore.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutPostAsync.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutProxy.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutReplaceTags.html
+%%PORTDOCS%%%%DOCSDIR%%/directives/LayoutTimeFormat.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/directives
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- mod_layout.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list