]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Fix python bindings installation in case of empty DESTDIR 1138/head
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Thu, 21 Oct 2021 23:34:08 +0000 (19:34 -0400)
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Fri, 22 Oct 2021 15:42:16 +0000 (11:42 -0400)
commit25491f062ae2104663c19e9ad843c99e1e81f00f
tree1319c787f9092956433bb5ae4586b4292e6f512c
parentd322ada6d9500be694b31ee9529cf665f3b4ee87
Fix python bindings installation in case of empty DESTDIR

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.
.travis.yml
bindings/Makefile.am
bindings/Makefile.in