ports/178529: net/hornetq: uses home directory during build, not allowed
John Marino
draco at marino.st
Sun May 12 09:10:00 UTC 2013
>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:
More information about the freebsd-ports-bugs
mailing list