ports/73979: [PATCH] ftp/quftp: fix for sparc64 build issue

Frank J.Laszlo laszlof at vonostingroup.com
Mon Nov 15 18:40:21 UTC 2004


>Number:         73979
>Category:       ports
>Synopsis:       [PATCH] ftp/quftp: fix for sparc64 build issue
>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:   Mon Nov 15 18:40:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Frank J. Laszlo
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD ritamari.vonostingroup.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004 laszlof at ritamari.vonostingroup.com:/usr/obj/usr/src/sys/RITAMARI i386


	
>Description:
        This is a fix for the build issue on sparc64 for the ftp/quftp port. I'm not exactly sure why
        this problem exists, but changing the optimization flag within CFLAGS from -O6 to -02 fixes it.
        Further investation may be required, though this does fix the build and the application does
        function properly as far as I can tell.
>How-To-Repeat:
	Build ftp/quftp on sparc64 platform.
>Fix:

	

--- quftp-1.0.7_2.diff begins here ---
--- Makefile.orig	Mon Nov 15 09:42:37 2004
+++ Makefile	Mon Nov 15 09:40:39 2004
@@ -7,7 +7,7 @@
 
 PORTNAME=	quftp
 PORTVERSION=	1.0.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	ftp
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	quftp
@@ -18,12 +18,22 @@
 LIB_DEPENDS=	readline.5:${PORTSDIR}/devel/readline
 
 GNU_CONFIGURE=	yes
+USE_REINPLACE=	yes
 
-CFLAGS+=	${PTHREAD_CFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+.include <bsd.port.pre.mk>
+
+PATCH_SITES=	${FILESDIR}/
+
+pre-configure:
+.if ${ARCH} == "sparc64"
+	@${REINPLACE_CMD} -e 's|-O6|-O2|g' ${WRKSRC}/Makefile.in
+.endif
+
+CFLAGS+=        ${PTHREAD_CFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}
 CONFIGURE_ENV=	CFLAGS="${CFLAGS}"
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 MAN1=		quftp.1
 PLIST_FILES=	bin/quftp
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- quftp-1.0.7_2.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list