Need help debugging makefile changes
Quincey Koziol
koziol at ncsa.uiuc.edu
Sun Feb 22 19:37:48 PST 2004
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:
============================================================================
# ex:ts=8
# New ports collection makefile for: HDF5
# Date created: Jul 7, 2002
# Whom: ijliao
#
# $FreeBSD: ports/graphics/hdf5/Makefile,v 1.27 2003/11/13 05:33:55 ijliao Exp $
#
PORTNAME= hdf5
PORTVERSION= 1.6.2
CATEGORIES= archivers graphics science
MASTER_SITES= ftp://hdf.ncsa.uiuc.edu/pub/outgoing/hdf5/snapshots/
DISTNAME= hdf5-1.6.2-post1
MAINTAINER= koziol at ncsa.uiuc.edu
COMMENT= Hierarchical Data Format library (from NCSA)
USE_BZIP2= yes
USE_REINPLACE= yes
USE_LIBTOOL= yes
PATCH_DEBUG= yes
LIBTOOLFILES= configure c++/configure
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-cxx --enable-production \
--enable-threadsafe --disable-debug \
--with-pthread
INSTALLS_SHLIB= yes
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
post-install:
.for i in gif2h5 h52gif h5debug h5diff h5dump h5import h5ls h5repart
@${STRIP_CMD} ${PREFIX}/bin/${i}
.endfor
.include <bsd.port.mk>
============================================================================
I've run 'portlint -at' on it and portlint is happy. However, executing
'make' now gives this output:
============================================================================
sleipnir# make
===> Vulnerability check disabled
===> Extracting for hdf5-1.6.2
>> Checksum OK for hdf5-1.6.2-post1.tar.bz2.
===> Patching for hdf5-1.6.2
===> Applying FreeBSD patches for hdf5-1.6.2
===> Applying FreeBSD patch /usr/ports/graphics/hdf5/files/patch-c++::commence.in
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- c++/config/commence.in.orig Mon Jun 30 16:19:35 2003
|+++ c++/config/commence.in Mon Oct 20 23:44:08 2003
--------------------------
Patching file c++/config/commence.in using Plan A...
Hunk #1 succeeded at 27.
Hunk #2 succeeded at 37.
Hunk #3 succeeded at 60.
done
===> Applying FreeBSD patch /usr/ports/graphics/hdf5/files/patch-c++::configure
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- c++/configure.orig Fri Jun 28 03:42:45 2002
|+++ c++/configure Wed Jul 10 01:41:13 2002
--------------------------
Patching file c++/configure using Plan A...
Hunk #1 succeeded at 7572 (offset 9 lines).
done
===> Applying FreeBSD patch /usr/ports/graphics/hdf5/files/patch-commence.in
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- config/commence.in.orig Tue Jul 22 23:39:43 2003
|+++ config/commence.in Mon Oct 20 23:45:00 2003
--------------------------
Patching file config/commence.in using Plan A...
Hunk #1 succeeded at 26 with fuzz 2.
Hunk #2 succeeded at 40 (offset 1 line).
Hunk #3 succeeded at 58 (offset 1 line).
done
===> Applying FreeBSD patch /usr/ports/graphics/hdf5/files/patch-configure
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- configure.orig Sat Jun 29 05:03:55 2002
|+++ configure Wed Jul 10 01:40:52 2002
--------------------------
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?
Thanks,
Quincey Koziol
HDF Development Team
NCSA
More information about the freebsd-ports
mailing list