]> git.proxmox.com Git - mirror_iproute2.git/commit - Makefile
iproute: DESTDIR vs LIBDIR.
authorAndreas Henriksson <andreas@fatal.se>
Fri, 22 Aug 2008 14:54:12 +0000 (16:54 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 18 Sep 2008 05:04:02 +0000 (22:04 -0700)
commit5e3bb534ae179be141a92eb1a4e2eb48094193b7
tree6b407c1e23a1a1bcefe6e81bb7e25dcf7379c328
parent839c8456fbe08fc2497857673805b84dffb45507
iproute: DESTDIR vs LIBDIR.

Hello Rafael Almeida.

I noticed your patch adding DESTDIR support in the latest iproute2 release.
Much appreciated! Soon the debian packages might be able to move to actually
using "make install" rather then it's own installation procedure when
building packages. I've noticed something that will break though....

Debian packages usually sets DESTDIR=debian/tmp/ and packages the contents
of that directory as if it where the root file system. This will break
the /usr/lib/{tc,ip}/ module loading, because they DESTDIR (/usr) will be
/whatever-the-build-path-was/debian/tmp/lib/{tc,ip}/.
I beleive others usually call this the LIBDIR to make the separation between
DISTDIR being the (possibly temporary) place things are put when build is
done, and LIBDIR (and others) are used for actual runtime paths.

I'm attaching a patch that I think fixes this, but would be really happy if
you could have a look at to verify I'm not screwing something up.

--
Regards,
Andreas Henriksson

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
Makefile
ip/iplink.c
tc/Makefile
tc/tc_util.c