From owner-freebsd-ports@FreeBSD.ORG Mon Mar 15 13:47:30 2004 Return-Path: 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 A923416A4CE for ; Mon, 15 Mar 2004 13:47:30 -0800 (PST) Received: from smtp.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 7085343D2F for ; Mon, 15 Mar 2004 13:47:29 -0800 (PST) (envelope-from neuhauser@chello.cz) Received: (qmail 60377 invoked by uid 0); 15 Mar 2004 21:47:28 -0000 Received: from r3al16.mistral.cz (HELO isis.wad.cz) (213.220.229.16) by smtp.dkm.cz with SMTP; 15 Mar 2004 21:47:27 -0000 Received: by isis.wad.cz (Postfix, from userid 1001) id 8290D2FDA01; Mon, 15 Mar 2004 22:48:17 +0100 (CET) Date: Mon, 15 Mar 2004 22:48:17 +0100 From: Roman Neuhauser To: Quincey Koziol Message-ID: <20040315214817.GC77608@isis.wad.cz> Mail-Followup-To: Quincey Koziol , ports@freebsd.org References: <200402230337.i1N3blMk091103@sleipnir.ncsa.uiuc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200402230337.i1N3blMk091103@sleipnir.ncsa.uiuc.edu> User-Agent: Mutt/1.5.4i cc: ports@freebsd.org Subject: Re: Need help debugging makefile changes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 21:47:30 -0000 # koziol@ncsa.uiuc.edu / 2004-02-22 21:37:47 -0600: > Hi all, > I'm trying to get my changes to the graphics/hdf5 port working correctly > and I'm running into a problem that I don't know how to solve. > > Here's my changed Makefile: ... > post-patch: > @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure > @${REINPLACE_CMD} -e 's|[\$$]CFLAGS -pthread|\$$CFLAGS|g ; \ > s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \ > s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \ > ${WRKSRC}/config/freebsd > @${REINPLACE_CMD} -e 's|[\$$]CFLAGS -pthread|\$$CFLAGS|g ; \ > s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \ > s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \ > ${WRKSRC}/config/c++/freebsd > @${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/config/gnu-flags ... > 'make' now gives this output: ... > Patching file configure using Plan A... > Hunk #1 succeeded at 7315 (offset 52 lines). > done > sed: lstat: No such file or directory > *** Error code 1 > > Stop in /usr/ports/graphics/hdf5. > > ============================================================================ > > It's processed all the patches, but I don't know if the "sed: lstat: No > such file or directory" is coming from the tail end of the 'patch' target > or a later target? Can anyone help me out? do all the files patched in post-patch exist when the target is run? IOW, make it: post-patch: ls -l ${WRKSRC}/configure ${WRKSRC}/config/freebsd \ ${WRKSRC}/config/c++/freebsd ${WRKSRC}/config/gnu-flags ${FALSE} or at least remove the silencing @s. -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html