From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 13 23:40:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46E0E10656E4 for ; Sun, 13 Dec 2009 23:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 074758FC13 for ; Sun, 13 Dec 2009 23:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBDNe1Og031986 for ; Sun, 13 Dec 2009 23:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBDNe1jP031985; Sun, 13 Dec 2009 23:40:01 GMT (envelope-from gnats) Resent-Date: Sun, 13 Dec 2009 23:40:01 GMT Resent-Message-Id: <200912132340.nBDNe1jP031985@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nathan Smoot Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3A98106568B for ; Sun, 13 Dec 2009 23:33:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 88A598FC13 for ; Sun, 13 Dec 2009 23:33:02 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBDNX225094356 for ; Sun, 13 Dec 2009 23:33:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBDNX2NS094355; Sun, 13 Dec 2009 23:33:02 GMT (envelope-from nobody) Message-Id: <200912132333.nBDNX2NS094355@www.freebsd.org> Date: Sun, 13 Dec 2009 23:33:02 GMT From: Nathan Smoot To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/141440: [patch] add amd64 support for lang/gprolog X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2009 23:40:02 -0000 >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@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@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: