The current behaviour is to install the extension to ./usr/local (if
prefix is /usr/local), so it ends up in the temporary build directory
instead of the intended absolute prefix.
The slash after $(DESTDIR) is needed to make empty DESTDIR mean
installation to / instead of making the prefix to mean a relative
path. We make it triple slash as POSIX reserves double slashes to
possibly have a special treatment by the OS.
The change for travis is needed as "make install" is run as root, and
once the python extension is actually installed, it leaves a
root-owned .egg-info file.
- podchecker doc/*.pod
- sudo make install
- cd bindings/perl-shared && make test
- - cd ../python && python setup.py test
+ - cd ../python && sudo chown -R travis rrdtool.egg-info && python setup.py test
- /opt/rrdtool-master/bin/rrdtool
- /opt/rrdtool-master/share/rrdtool/examples/4charts.pl
- cd ../..
&& ( cd ${builddir}/python \
&& env BUILDLIBDIR=${abs_top_builddir}/src/.libs \
$(PYTHON) ${abs_srcdir}/python/setup.py install \
- --skip-build --root=$(DESTDIR) --prefix=$(prefix) \
+ --skip-build --root=$(DESTDIR)/// --prefix=$(prefix) \
--exec-prefix=$(exec_prefix)) \
|| true
&& ( cd ${builddir}/python \
&& env BUILDLIBDIR=${abs_top_builddir}/src/.libs \
$(PYTHON) ${abs_srcdir}/python/setup.py install \
- --skip-build --root=$(DESTDIR) --prefix=$(prefix) \
+ --skip-build --root=$(DESTDIR)/// --prefix=$(prefix) \
--exec-prefix=$(exec_prefix)) \
|| true