Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 00:39:39 GMT
From:      Jesse Smith <jessefrgsmith@yahoo.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/148610: Submitting fix for math/emc2 port (size mismatch)
Message-ID:  <201007150039.o6F0ddl1013165@www.freebsd.org>
Resent-Message-ID: <201007150040.o6F0e2lu003997@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148610
>Category:       ports
>Synopsis:       Submitting fix for math/emc2 port (size mismatch)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 00:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jesse Smith
>Release:        8.0
>Organization:
RM
>Environment:
PC-BSD 8.0
>Description:
The math/emc2 port is broken with a size mismatch error. The attached "shar" output is from a corrected version of the emc2 port. It fixes the size mismatch error and also adds a patch to fix a compile error in the upstream package.

>How-To-Repeat:
cd /usr/ports/math/emc2
make install

The build immediately exits with a size mismatch error.
>Fix:
The port's makefile has been updated and a patch has been added, fixing the port's compiler error. Please see attached.

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	emc2
#	emc2/files
#	emc2/files/patch-makefile
#	emc2/files/patch-libI77::fio.h
#	emc2/files/patch-Makefile
#	emc2/Makefile
#	emc2/distinfo
#	emc2/pkg-descr
#	emc2/pkg-plist
#
echo c - emc2
mkdir -p emc2 > /dev/null 2>&1
echo c - emc2/files
mkdir -p emc2/files > /dev/null 2>&1
echo x - emc2/files/patch-makefile
sed 's/^X//' >emc2/files/patch-makefile << 'b3b3df6974cc8bbf7d9b67b8180d508e'
X--- Makefile.old	2010-07-14 21:07:54.000000000 -0300
X+++ Makefile	2010-07-14 21:08:00.000000000 -0300
X@@ -1,7 +1,7 @@
X #  pour la version francaise make
X #FRENCH =  -DFRENCH
X #  for hp9000s700 
X-CFLAGS=-O -D_HPUX_SOURCE $(FRENCH) +DA1.1
X+CFLAGS=-O -D_HPUX_SOURCE $(FRENCH) 
X CC=gcc
X #  for DEC ALPHA
X #
b3b3df6974cc8bbf7d9b67b8180d508e
echo x - emc2/files/patch-libI77::fio.h
sed 's/^X//' >emc2/files/patch-libI77::fio.h << 'fec9e97354089d70c420fbd9c481e368'
X--- libI77/fio.h.orig	Tue Nov  9 15:58:43 1999
X+++ libI77/fio.h	Tue Dec 16 23:53:43 2003
X@@ -17,6 +17,12 @@
X #endif
X #endif
X 
X+#ifdef  __FreeBSD__
X+#ifndef NON_UNIX_STDIO
X+#define NON_UNIX_STDIO
X+#endif
X+#endif
X+
X #ifdef UIOLEN_int
X typedef int uiolen;
X #else
fec9e97354089d70c420fbd9c481e368
echo x - emc2/files/patch-Makefile
sed 's/^X//' >emc2/files/patch-Makefile << '32e32fc1374946be35f5e891a95a4be3'
X--- Makefile.orig	Mon Feb 10 09:17:51 2003
X+++ Makefile	Tue Dec 16 23:22:42 2003
X@@ -8,9 +8,9 @@
X # for IBM RS6000
X #CC=xlc
X #CFLAGS=-O
X-BIN=/usr/local/bin
X-X11INCLUDEDIR=/usr/include/X11R6
X-X11LIBDIR=/usr/lib/X11R6
X+BIN=$(PREFIX)/bin
X+X11INCLUDEDIR=$(LOCALBASE)/include
X+X11LIBDIR=$(LOCALBASE)/lib
X X11LIB= -L$(X11LIBDIR)  -lX11
X MATHLIB=  -lm
32e32fc1374946be35f5e891a95a4be3
echo x - emc2/Makefile
sed 's/^X//' >emc2/Makefile << 'da23bc43922cf8c691d9beb180794d58'
X# New ports collection makefile for:	emc2
X# Date created:        16 December 2003
X# Whom:                thierry@pompo.net
X#
X# $FreeBSD: ports/math/emc2/Makefile,v 1.9 2010/04/07 18:20:35 itetcu Exp $
X#
X
XPORTNAME=	emc2
XPORTVERSION=	2.15
XPORTREVISION=	6
XCATEGORIES=	math science
XMASTER_SITES=	http://pauillac.inria.fr/cdrom_a_graver/ftp/emc2/
XDISTFILES=	${PORTNAME}${EXTRACT_SUFX}
X.if !defined(NOPORTDOCS)
XDISTFILES+=	${PORTNAME}-doc-en.ps.gz ${PORTNAME}-doc-fr.ps.gz
XEXTRACT_ONLY=	${PORTNAME}${EXTRACT_SUFX}
X.endif
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	A graphic editor of two dimensional geometry and mesh
X
XRESTRICTED=	No resale, contact author for commercial usage
X
X# BROKEN=		size mismatch
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XUSE_XORG=	x11
XUSE_GMAKE=	yes
XALL_TARGET=	${PORTNAME}
X
X.if defined(LANG) && ${LANG:Mfr*} != ""
XCFLAGS+=	-DFRENCH
X.endif
X
Xpost-install:
X	@${STRIP_CMD} ${PREFIX}/bin/emc2
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
X	@${GZCAT} ${DISTDIR}/${PORTNAME}-doc-en.ps.gz > ${DOCSDIR}/${PORTNAME}-en.ps
X	@${GZCAT} ${DISTDIR}/${PORTNAME}-doc-fr.ps.gz > ${DOCSDIR}/${PORTNAME}-fr.ps
X	@${ECHO_MSG} "===>  Documentation installed in ${DOCSDIR}."
X.endif
X.if !defined(NOPORTEXAMPLES)
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
X	@${ECHO_MSG} "===>  Examples installed in ${EXAMPLESDIR}."
X.endif
X
X.include <bsd.port.mk>
da23bc43922cf8c691d9beb180794d58
echo x - emc2/distinfo
sed 's/^X//' >emc2/distinfo << '5def989dbdd4d28c3dc0b33481b75763'
XMD5 (emc2.tar.gz) = f20c239649c5b3e054d09cd6335c8a97
XSHA256 (emc2.tar.gz) = 1e61cf6c035e4af95c70ec39e76911fed98552beb1d4cec87f261ffabdff227c
XSIZE (emc2.tar.gz) = 650540
XMD5 (emc2-doc-en.ps.gz) = 5056bcca5d12d2410c121778404ab40c
XSHA256 (emc2-doc-en.ps.gz) = a129d5821624dd8b0b91c811572f10081a1ec44acfd85e21cc5c2a54c737294a
XSIZE (emc2-doc-en.ps.gz) = 447045
XMD5 (emc2-doc-fr.ps.gz) = 9c65a98f9926eb85e51c651aa9ee4488
XSHA256 (emc2-doc-fr.ps.gz) = eca8d1f6254a2071222f11c04b9d2d414ac5fb7d32a3caabd4671546bf3e23d3
XSIZE (emc2-doc-fr.ps.gz) = 451024
5def989dbdd4d28c3dc0b33481b75763
echo x - emc2/pkg-descr
sed 's/^X//' >emc2/pkg-descr << '2f765491231f8b3dcc52a652659d4e17'
XEmc2 is a portable, interactive and graphic software Edition of two
Xdimensional geometry and mesh. We can create and modify the geometry
X(CAD), define the discretization on the lines, define the subdomains,
Xand define some reference numbers to take into account the boundary
Xconditions and material properties. The elements of the mesh are triangles
Xand quadrilaterals. We have two kind of meshes: grid mesh and Delaunay
XVoronoo (automatic mesh). We make the edition of the mesh by moving,
Xremoving, adding vertices, by regularization, or by transformations
X(symmetry, rotation,..), etc.
X
XSuggested add-on: the port math/bamg.
X
XWWW: http://pauillac.inria.fr/cdrom_a_graver/prog/unix/emc2/eng.htm
2f765491231f8b3dcc52a652659d4e17
echo x - emc2/pkg-plist
sed 's/^X//' >emc2/pkg-plist << 'f61621cb9287c65fcc78a527176fb5bb'
Xbin/emc2
Xbin/prf_f3d
X%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
X%%PORTDOCS%%%%DOCSDIR%%/emc2-en.ps
X%%PORTDOCS%%%%DOCSDIR%%/emc2-fr.ps
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cooler.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/culot1.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demi_carre.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fissure.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gruyere.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/houman.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/levier.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mos.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/naca.f
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/naca.pts
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/naca012.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/q.emc2_bd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rotor.emc2_bd
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
f61621cb9287c65fcc78a527176fb5bb
exit



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007150039.o6F0ddl1013165>