Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2013 05:10:13 GMT
From:      John Marino <draco@marino.st>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   ports/178529: net/hornetq: uses home directory during build, not allowed
Message-ID:  <201305150510.r4F5ADDU037009@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/178529; it has been noted by GNATS.

From: John Marino <draco@marino.st>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: ports/178529: net/hornetq: uses home directory during build,
 not allowed
Date: Sun, 12 May 2013 09:01:49 GMT

 >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:
 _______________________________________________
 freebsd-ports-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
 To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305150510.r4F5ADDU037009>