From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 12 09:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9FAD6F7 for ; Sun, 12 May 2013 09:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 850D4195 for ; Sun, 12 May 2013 09:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4C9A0ck051671 for ; Sun, 12 May 2013 09:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4C9A0hv051670; Sun, 12 May 2013 09:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 12 May 2013 09:10:00 GMT Resent-Message-Id: <201305120910.r4C9A0hv051670@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, John Marino Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B8B72EBD for ; Sun, 12 May 2013 09:01:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 90E2713E for ; Sun, 12 May 2013 09:01:50 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4C91nlS054887 for ; Sun, 12 May 2013 09:01:49 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4C91nZV054883; Sun, 12 May 2013 09:01:49 GMT (envelope-from nobody) Message-Id: <201305120901.r4C91nZV054883@oldred.FreeBSD.org> Date: Sun, 12 May 2013 09:01:49 GMT From: John Marino To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178529: net/hornetq: uses home directory during build, not allowed X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 09:10:00 -0000 >Number: 178529 >Category: ports >Synopsis: net/hornetq: uses home directory during build, not allowed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 12 09:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John Marino >Release: >Organization: >Environment: >Description: net/hornetq uses $HOME during the install, apparently assuming the builder is the user. This obviously isn't true for ports, so at the very least hornetq isn't getting installed as expected. Ports are not supposed to use $HOME at all. Proof can be seen when $HOME is set to read-only: maven-install: [java] [INFO] Scanning for projects... [java] [INFO] ------------------------------------------------------------------------ [java] [INFO] Building HornetQ [java] [INFO] task-segment: [initialize] [java] [INFO] ------------------------------------------------------------------------ [java] Downloading: https://repository.jboss.org/nexus/content/groups/public/org/jboss/maven/plugins/maven-buildmagic-thirdparty-plugin/2.2.1.Final/maven-buildmag [java] [WARNING] Unable to get resource 'org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:pom:2.2.1.Final' from repository jboss.release (https://reposi [java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-buildmagic-thirdparty-plugin/2.2.1.Final/maven-buildmagic-thirdparty-plugin-2.2.1. [java] [INFO] Unable to find resource 'org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:pom:2.2.1.Final' in repository central (http://repo1.maven.org/m [java] Downloading: https://repository.jboss.org/nexus/content/groups/public//org/jboss/maven/plugins/maven-buildmagic-thirdparty-plugin/2.2.1.Final/maven-buildma [java] [WARNING] Unable to get resource 'org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:pom:2.2.1.Final' from repository jboss.release (https://reposi [java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-buildmagic-thirdparty-plugin/2.2.1.Final/maven-buildmagic-thirdparty-plugin-2.2.1. [java] [INFO] Unable to find resource 'org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:pom:2.2.1.Final' in repository central (http://repo1.maven.org/m [java] [INFO] ------------------------------------------------------------------------ [java] [ERROR] BUILD ERROR [java] [INFO] ------------------------------------------------------------------------ [java] [INFO] Error building POM (may not be this project's POM). >How-To-Repeat: >Fix: I tried to fix this with the following patch, but it didn't work. I suspect the final solution will be similar, but there is probably more than one spot where M2_HOME is defined with this illegal default. --- tools/maven/bin/m2.conf.orig 2012-11-12 19:20:57.000000000 +0000 +++ tools/maven/bin/m2.conf @@ -1,6 +1,6 @@ main is org.apache.maven.cli.compat.CompatibleMain from plexus.core -set maven.home default ${user.home}/m2 +set maven.home default /tmp/m2 [plexus.core] load ${maven.home}/lib/*.jar >Release-Note: >Audit-Trail: >Unformatted: