ports/141440: [patch] add amd64 support for lang/gprolog

Nathan Smoot putwastehere at gmail.com
Sun Dec 13 23:40:02 UTC 2009


>Number:         141440
>Category:       ports
>Synopsis:       [patch] add amd64 support for lang/gprolog
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 13 23:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Smoot
>Release:        8.0-RELEASE-p1
>Organization:
University of Maryland
>Environment:
FreeBSD fbsd.mydomain.local 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Tue Dec  8 16:27:01 EST 2009     root at fbsd.mydomain.local:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The port lang/gprolog is restricted to the i386 arch by ONLY_FOR_ARCHS.
>How-To-Repeat:
from a machine running amd64 FreeBSD...

# cd /usr/local/lang/gprolog
# make install clean
===> gprolog-1.3.0 is only for i386, while you are running amd64.
*** Error code 1

Stop in /usr/ports/lang/gprolog.
#
>Fix:
There is a newer version of gprolog available. Ports currently has 1.3.0 while 1.3.1 exists. The configure.in of 1.3.1 has:

x86_64*bsd*)      AC_DEFINE(M_x86_64_bsd);;

while 1.3.0 does not.

By upgrading to version 1.3.1 and modifying the ports Makefile to define CONFIGURE_TARGET, lang/gprolog builds successfully on 8.0-RELEASE-p1 amd64. Please see attached patch.



Patch attached with submission follows:

diff -ru gprolog.old/Makefile gprolog.new/Makefile
--- gprolog.old/Makefile	2008-08-21 02:17:30.000000000 -0400
+++ gprolog.new/Makefile	2009-12-13 17:44:33.351030576 -0500
@@ -6,14 +6,14 @@
 #
 
 PORTNAME=	gprolog
-PORTVERSION=	1.3.0
+PORTVERSION=	1.3.1
 CATEGORIES=	lang
 MASTER_SITES=	http://www.gprolog.org/
 
 MAINTAINER=	vs at FreeBSD.org
 COMMENT=	A free Prolog compiler
 
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
 
@@ -23,6 +23,8 @@
 		--with-doc-dir="${DOCSDIR}" \
 		--with-examples-dir="${EXAMPLESDIR}"
 
+CONFIGURE_TARGET=	${ARCH:S/amd64/x86_64/}-portbld-freebsd${OSREL}
+
 PLIST_SUB+=	GPROLOG_VER=${PORTVERSION}
 
 PORTDOCS=	*
diff -ru gprolog.old/distinfo gprolog.new/distinfo
--- gprolog.old/distinfo	2008-03-19 03:43:35.000000000 -0400
+++ gprolog.new/distinfo	2009-12-12 21:34:05.000000000 -0500
@@ -1,3 +1,3 @@
-MD5 (gprolog-1.3.0.tar.gz) = 950736db26248f6ed942191ec6c441e9
-SHA256 (gprolog-1.3.0.tar.gz) = 1aca625e06d4cf05f9d6049e33f7a87afff98995670faf8bc3dfd1768244d3a7
-SIZE (gprolog-1.3.0.tar.gz) = 3016665
+MD5 (gprolog-1.3.1.tar.gz) = cbae19c31e17bcfca4b57fe35ec4aba2
+SHA256 (gprolog-1.3.1.tar.gz) = 3c33159b9d234647a06e78870c14a0518d6a2a5f85db906360777feb3d98c316
+SIZE (gprolog-1.3.1.tar.gz) = 2949369


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



More information about the freebsd-ports-bugs mailing list