Skip to content

Commit

Permalink
Fix staging and build on FreeBSD
Browse files Browse the repository at this point in the history
Make sure that the filesystem outside of DESTDIR isn't touched,
hence set java.util.prefs.userRoot to $(HOME) and make sure etc/
config files go to $(sysconfdir)/etc/opentsdb instead of
$(pkgdatadir)/etc/opentsdb.

Signed-off-by: Chris Larsen <[email protected]>
  • Loading branch information
xmj authored and manolama committed Nov 9, 2015
1 parent 56d2cd5 commit 37b1705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ printdeps:
# This is kind of a hack, but I couldn't find a better way to adjust the paths
# in the script before it gets installed...
install-exec-hook:
script=tsdb; pkgdatadir='$(pkgdatadir)'; configdir='$(pkgdatadir)/etc/opentsdb'; \
script=tsdb; pkgdatadir='$(pkgdatadir)'; configdir='$(sysconfigdir)/etc/opentsdb'; \
abs_srcdir=''; abs_builddir=''; $(edit_tsdb_script)
cat tsdb.tmp >"$(DESTDIR)$(bindir)/tsdb"
rm -f tsdb.tmp
Expand Down Expand Up @@ -411,7 +411,7 @@ gwtc: .gwtc-stamp
@$(mkdir_p) gwt
{ cd $(srcdir) && cat $(httpui_SRC); } | $(MD5) >"$@-t"
cmp -s "$@" "$@-t" && exit 0; \
$(JAVA) $(GWTC_JVM_ARGS) -cp $(GWT_CLASSPATH) com.google.gwt.dev.Compiler \
$(JAVA) -Djava.util.prefs.userRoot=$(HOME) $(GWTC_JVM_ARGS) -cp $(GWT_CLASSPATH) com.google.gwt.dev.Compiler \
$(GWTC_ARGS) -war gwt tsd.QueryUi
@mv "$@-t" "$@"

Expand Down

0 comments on commit 37b1705

Please sign in to comment.