From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 22 23:10:08 2012 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 D33A8106566B for ; Sun, 22 Jan 2012 23:10:08 +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 A5DAC8FC17 for ; Sun, 22 Jan 2012 23:10:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0MNA8v3082564 for ; Sun, 22 Jan 2012 23:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0MNA8GA082563; Sun, 22 Jan 2012 23:10:08 GMT (envelope-from gnats) Resent-Date: Sun, 22 Jan 2012 23:10:08 GMT Resent-Message-Id: <201201222310.q0MNA8GA082563@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, Grzegorz Blach Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98FDD1065672 for ; Sun, 22 Jan 2012 23:02:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 6A5278FC23 for ; Sun, 22 Jan 2012 23:02:12 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0MN2CvZ082180 for ; Sun, 22 Jan 2012 23:02:12 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0MN2Cmn082179; Sun, 22 Jan 2012 23:02:12 GMT (envelope-from nobody) Message-Id: <201201222302.q0MN2Cmn082179@red.freebsd.org> Date: Sun, 22 Jan 2012 23:02:12 GMT From: Grzegorz Blach To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/164387: devel/goprotobuf: Making port usable 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, 22 Jan 2012 23:10:09 -0000 >Number: 164387 >Category: ports >Synopsis: devel/goprotobuf: Making port usable >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jan 22 23:10:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Grzegorz Blach >Release: 9.0 amd64 >Organization: >Environment: FreeBSD silver.nine 9.0-RELEASE FreeBSD 9.0-RELEASE #5 r229491: Wed Jan 4 19:17:56 CET 2012 magik@silver.nine:/usr/obj/usr/src/sys/SILVER amd64 >Description: Currently goprotobuf raise errors when I try to use its. To fix problem two changes need to be done: - Add devel/protbuf to RUN_DEPENDS - Install Make.protobuf file >How-To-Repeat: Try to build this code: http://files.roorback.net/goprotobuf-test.tar.gz >Fix: Apply my patches Patch attached with submission follows: diff -ruN devel/goprotobuf/Makefile devel/goprotobuf/Makefile --- devel/goprotobuf/Makefile 2012-01-22 19:48:30.000000000 +0100 +++ devel/goprotobuf/Makefile 2012-01-22 23:36:37.962111778 +0100 @@ -7,6 +7,7 @@ PORTNAME= goprotobuf PORTVERSION= 20120122 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://m.ahze.net/packages/ \ LOCAL/ahze @@ -14,10 +15,18 @@ MAINTAINER= ahze@FreeBSD.org COMMENT= Go support for Google's protocol buffers +LICENSE= BSD + +RUN_DEPENDS= protoc:${PORTSDIR}/devel/protobuf + USE_GO= yes NO_BUILD= yes MAKE_ENV= GOBIN=${PREFIX}/bin +post-install: + ${INSTALL} -d ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/ + ${INSTALL} -m 644 ${WRKSRC}/Make.protobuf ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/ + .include .include "${PORTSDIR}/lang/go/files/bsd.go.mk" .include diff -ruN devel/goprotobuf/pkg-plist devel/goprotobuf/pkg-plist --- devel/goprotobuf/pkg-plist 2012-01-22 19:48:30.000000000 +0100 +++ devel/goprotobuf/pkg-plist 2012-01-22 23:10:16.880113579 +0100 @@ -3,6 +3,9 @@ %%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/compiler/generator.a %%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/compiler/plugin.a %%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/proto.a +go/src/pkg/goprotobuf.googlecode.com/hg/Make.protobuf @dirrm %%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/compiler @dirrm %%GO_LIBDIR%%/goprotobuf.googlecode.com/hg @dirrm %%GO_LIBDIR%%/goprotobuf.googlecode.com +@dirrm go/src/pkg/goprotobuf.googlecode.com/hg +@dirrm go/src/pkg/goprotobuf.googlecode.com >Release-Note: >Audit-Trail: >Unformatted: