ports/150966: [PATCH] math/giacxcas build broken on pointyhat + run Pb on amd64
Han Frederic
han at math.jussieu.fr
Sun Sep 26 14:10:08 UTC 2010
>Number: 150966
>Category: ports
>Synopsis: [PATCH] math/giacxcas build broken on pointyhat + run Pb on amd64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 26 14:10:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Han Frederic
>Release: i386-8
>Organization:
Universite Paris 7
>Environment:
FreeBSD pepitoBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
- bash and gettext are removed after patching in the automatic build procedure but they are needed also in build. cf all errors:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.8.2010092307412/giacxcas-0.9.0.log
- update flag for amd64 run problem
- add a new mastersite
- update source from author.(for diff of giac-0.9.0.tar.gz see:
http://people.math.jussieu.fr/~han/xcas/sources/rev1/giac-0.9.0.diff-qruN
http://people.math.jussieu.fr/~han/xcas/sources/rev1/giac-0.9.0.diff-ruN.gz
NB: big diff file because of tests files outputs)
-for amd64 pr=ports/150787 is required
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN giacxcas.bak/Makefile giacxcas/Makefile
--- giacxcas.bak/Makefile 2010-09-21 17:29:52.000000000 +0200
+++ giacxcas/Makefile 2010-09-26 09:15:32.000000000 +0200
@@ -7,9 +7,10 @@
PORTNAME= giacxcas
PORTVERSION= 0.9.0
+PORTREVISION= 1
CATEGORIES= math
-MASTER_SITES= http://people.math.jussieu.fr/~han/xcas/sources/ \
- http://www.institut.math.jussieu.fr/~han/xcas/sources/
+MASTER_SITES= ftp://ftp-fourier.ujf-grenoble.fr/xcas/freebsd/ \
+ http://people.math.jussieu.fr/~han/xcas/sources/rev1/
DISTFILES= fltkdev.tgz CoCoALib.tgz giac-${PORTVERSION}.tar.gz
DIST_SUBDIR= ${PORTNAME}
@@ -18,7 +19,9 @@
BUILD_DEPENDS= hevea:${PORTSDIR}/textproc/hevea \
latex:${PORTSDIR}/print/teTeX-base \
- dvips:${PORTSDIR}/print/dvipsk-tetex\
+ dvips:${PORTSDIR}/print/dvipsk-tetex \
+ ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
+ gettext:${PORTSDIR}/devel/gettext \
${LOCALBASE}/lib/libntl.a:${PORTSDIR}/math/ntl
PATCH_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= gmp:${PORTSDIR}/math/gmp \
@@ -37,6 +40,13 @@
CPPFLAGS+= -I${FLTKDEV-GIAC} -I${COCOALIB-GIAC}/include -I${LOCALBASE}/include
LDFLAGS+= -L${FLTKDEV-GIAC}/lib -L${COCOALIB-GIAC}/lib -L${LOCALBASE}/lib
CXXFLAGS+= -I${LOCALBASE}/include
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CXXFLAGS+= -DSMARTPTR64 -D_I386_ -fPIC
+.endif
+
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
WRKSRC= ${WRKDIR}/giac-${PORTVERSION}
@@ -57,4 +67,4 @@
./configure --prefix=${FLTKDEV-GIAC} \
&& ${MAKE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN giacxcas.bak/distinfo giacxcas/distinfo
--- giacxcas.bak/distinfo 2010-09-21 17:29:52.000000000 +0200
+++ giacxcas/distinfo 2010-09-26 08:15:36.000000000 +0200
@@ -4,6 +4,6 @@
MD5 (giacxcas/CoCoALib.tgz) = b8a7ed67355a0975321ef3cfd08c511e
SHA256 (giacxcas/CoCoALib.tgz) = 501048b46125e730c24b9733eb180531461bd9a045a6e3a640e9aae512ce0293
SIZE (giacxcas/CoCoALib.tgz) = 1580875
-MD5 (giacxcas/giac-0.9.0.tar.gz) = f38f028deebc6f7e652078ead0c2ebd5
-SHA256 (giacxcas/giac-0.9.0.tar.gz) = b7c31f32a8702af7ad8b91305b5f1934f9b1e328cd4bc0b861918db1f4b61241
-SIZE (giacxcas/giac-0.9.0.tar.gz) = 16260457
+MD5 (giacxcas/giac-0.9.0.tar.gz) = 736b8a37ac027bb6203d59f3d8432d28
+SHA256 (giacxcas/giac-0.9.0.tar.gz) = abed026e9869acb77275b3381dec53d3f242ab54c65485d32fcaeb05f7a24082
+SIZE (giacxcas/giac-0.9.0.tar.gz) = 18705169
diff -ruN giacxcas.bak/pkg-plist giacxcas/pkg-plist
--- giacxcas.bak/pkg-plist 2010-09-21 17:29:52.000000000 +0200
+++ giacxcas/pkg-plist 2010-09-26 13:35:32.000000000 +0200
@@ -2947,6 +2947,6 @@
@dirrm share/doc/giac/Exemples/analyse
@dirrm share/doc/giac/Exemples
@dirrm share/doc/giac
- at dirrm share/applications
- at dirrm share/application-registry
+ at dirrmtry share/applications
+ at dirrmtry share/application-registry
@dirrm include/giac
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list