ports/178020: databases/jasperserver: inadequate handling of ~/.m2 problem
John Marino
draco at marino.st
Sun Apr 21 08:20:01 UTC 2013
>Number: 178020
>Category: ports
>Synopsis: databases/jasperserver: inadequate handling of ~/.m2 problem
>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 Apr 21 08:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: John Marino
>Release:
>Organization:
>Environment:
>Description:
Apparently the mere extraction of databases/jasperserver installs files at /root/.m2. This is unacceptable.
The makefile knows this, and tries to work around it.
===================
pre-extract:
@if [ -e ~/.m2 -o -L ~/.m2 ]; then \
${ECHO} A maven repository exists in your home directory. Please remove ~/.m2; \
${FALSE} ; \
fi
post-extract-script:
@${LN} -fs ${WRKDIR}/.m2 ~/.m2 && ${UNZIP_CMD} -qq ${DISTDIR}/${JSMAVENARCH} -d ${WRKDIR}/.m2
post-build:
@if [ -L ~/.m2 ]; then ${RM} -f ~/.m2; fi
===================
Any port that is installing files at /root (or $HOME) is rogue. It's even worse that merely "make extract" will put files in the $HOME directory.
>How-To-Repeat:
> ls ~/.m2 #verify it doesn't exist
> cd /usr/ports/databases/jasperserver
> make extract
> ls ~/.m2
>Fix:
Maybe source files needs to be repacked without ~/.m2?
maybe --exclude option for tar?
In any case, extracting to $HOME and deleting later is not acceptable, makefile needs changing to prevent this.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list