ports/149715: [PATCH] emulators/generator: fix make warning
Dmitry Marakasov
amdmi3 at amdmi3.ru
Mon Aug 16 19:50:01 UTC 2010
>Number: 149715
>Category: ports
>Synopsis: [PATCH] emulators/generator: fix make warning
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 16 19:50:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Marakasov
>Release: FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Jul 30 02:50:28 MSD 2010
>Description:
Port's Makefile define two post-patch targets for non-i386 and non-amd64 architectures, which lead to make warning and (judging from the warning) incorrect behaviour:
"Makefile", line 71: warning: duplicate script for target "post-patch" ignored
Port maintainer (alepulver at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
ARCH=ia64 make -C/usr/ports/emulators/generator -VPORTNAME
>Fix:
--- generator-0.35_11.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/emulators/generator/Makefile,v
retrieving revision 1.29
diff -u -u -r1.29 Makefile
--- Makefile 5 Feb 2010 11:36:46 -0000 1.29
+++ Makefile 16 Aug 2010 19:43:46 -0000
@@ -37,18 +37,6 @@
.include <bsd.port.pre.mk>
-.if ${ARCH} != "amd64" && ${ARCH} != "i386"
-post-patch:
-# These architectures do not support "-minline-all-stringops"
- @${REINPLACE_CMD} -e 's|-minline-all-stringops||g' \
- ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-. if ${ARCH} == "alpha"
-# "-ffast-math" does not work on alpha
- @${REINPLACE_CMD} -e 's|-ffast-math||g' \
- ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-. endif
-.endif
-
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
CONFIGURE_ARGS+=--with-gcc=3
.else
@@ -67,6 +55,16 @@
.endif
post-patch:
+.if ${ARCH} != "amd64" && ${ARCH} != "i386"
+# These architectures do not support "-minline-all-stringops"
+ @${REINPLACE_CMD} -e 's|-minline-all-stringops||g' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+. if ${ARCH} == "alpha"
+# "-ffast-math" does not work on alpha
+ @${REINPLACE_CMD} -e 's|-ffast-math||g' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+. endif
+.endif
@${REINPLACE_CMD} -e '/%define %1 @UNDERSCORE@%1 /d' \
${WRKSRC}/raze/raze.asm.in
--- generator-0.35_11.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list