From owner-freebsd-ports@FreeBSD.ORG Thu Dec 15 23:21:52 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE95F16A41F; Thu, 15 Dec 2005 23:21:51 +0000 (GMT) (envelope-from freebsd.ports@melvyn.homeunix.org) Received: from sarevok.lan.melvyn.homeunix.org (i153153.upc-i.chello.nl [62.195.153.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6084543D55; Thu, 15 Dec 2005 23:21:51 +0000 (GMT) (envelope-from freebsd.ports@melvyn.homeunix.org) Received: by sarevok.lan.melvyn.homeunix.org (Postfix, from userid 100) id 43E3E11437; Fri, 16 Dec 2005 00:21:50 +0100 (CET) From: Melvyn Sopacua To: freebsd-ports@freebsd.org Date: Fri, 16 Dec 2005 00:21:49 +0100 User-Agent: KMail/1.8.3 References: <20051215191038.GH49639@iib.unsam.edu.ar> <200512152115.28786.freebsd.ports@melvyn.homeunix.org> <20051215210308.GK49639@iib.unsam.edu.ar> In-Reply-To: <20051215210308.GK49639@iib.unsam.edu.ar> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_OqfoDTdSBHS6NWj" Message-Id: <200512160021.50048.freebsd.ports@melvyn.homeunix.org> Cc: FreeBSD Ports , Hiram Clawson , Jim Kent Subject: Re: need help from a C programmer X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 23:21:52 -0000 --Boundary-00=_OqfoDTdSBHS6NWj Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 15 December 2005 22:03, Fernan Aguero wrote: > | +_MACHTYPE!= uname -m > | +MACHTYPE?= ${_MACHTYPE} > | +MAKE_ENV+= MACHTYPE=${MACHTYPE} > | > | post-patch: > | @${MKDIR} ${WRKSRC}/bin/${MACHTYPE} > > Mmm ... it worked fine for me in FreeBSD-4.11 > > Anyway, it works also with your patch ;) Probably cause you have MACHTYPE in your env. Anyway, this sets it if unset, which means crossbuilds are theoretically supported ;-) > | As for the error, there's some redefining going on in common.h, and > | probably screwing up some macros in the end. > | # cat files/patch-hg-pslPretty-pslPretty.c > | --- hg/pslPretty/pslPretty.c.orig Fri Mar 26 02:03:59 2004 > | +++ hg/pslPretty/pslPretty.c Thu Dec 15 21:09:52 2005 > | @@ -686,7 +686,7 @@ > | if (--dotMod <= 0) > | { > | printf("."); > | - fflush(stdout); > | + fflush(uglyOut); > | dotMod = dot; > | } > | } > > +----] > > I've tried this patch but it didn't fix the problem. > > Are you suggesting that other references to 'stdout' should > be replaced by 'uglyOut'? You sure it fails there, cause it actually fails right after currently, because of a makefile problem in the next target (using $HOME ...). Thanks to Nikola - there's left-over object files in the source distribution. THe previous fix worked, simply because the .c file was changed and therefore the object file had to be remade. BSD's stdio.h defines stdout to __stdoutp, the object files in the distribution apparently do not and so stdout becomes undefined. As for the port, you can delete all the patches from files (accept patch-lib-sqlum.c, didn't look at that) and use the attached Makefile, which takes care of the build process. -- Melvyn Sopacua freebsd.ports@melvyn.homeunix.org FreeBSD 6.0-STABLE Qt: 3.3.5 KDE: 3.4.3 --Boundary-00=_OqfoDTdSBHS6NWj Content-Type: text/plain; charset="iso-8859-1"; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Makefile" # ex:ts=8 # New ports collection makefile for: blat # Date created: 08 Dec 2005 # Whom: Fernan Aguero # # $FreeBSD$ # PORTNAME= blat PORTVERSION= 33 CATEGORIES= biology MASTER_SITES= http://www.soe.ucsc.edu/~kent/src/ DISTNAME= ${PORTNAME}Src${PORTVERSION} MAINTAINER= fernan@iib.unsam.edu.ar COMMENT= A USE_ZIP= yes USE_GMAKE= yes USE_GCC= 3.4+ USE_REINPLACE= yes MAKEFILE= makefile WRKSRC= ${WRKDIR}/${PORTNAME}Src _MACHTYPE!= uname -m MACHTYPE?= ${_MACHTYPE} MAKE_ENV+= MACHTYPE=${MACHTYPE} WRKSRC=${WRKSRC} post-patch: @${MKDIR} ${WRKSRC}/bin/${MACHTYPE} @${MKDIR} ${WRKSRC}/lib/${MACHTYPE} @${FIND} ${WRKSRC} -name makefile -print | ${XARGS} ${REINPLACE_CMD} \ -e "s%\$$(HOME)%\$$(WRKSRC)%" \ -e "s%\$${HOME}%\$$(WRKSRC)%" \ -e "s%gcc%\$$(CC)%" @${FIND} ${WRKSRC} -name '*.o' -delete .include --Boundary-00=_OqfoDTdSBHS6NWj--