Fix Debian Packaging on AARCH64 04/9904/2
authorNitin Saxena <nsaxena@cavium.com>
Wed, 27 Dec 2017 10:31:41 +0000 (10:31 +0000)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 8 Jan 2018 01:29:34 +0000 (01:29 +0000)
Error msg:
pkg-shlibdeps: error: couldn't find library libvppinfra.so.0 needed by
debian/vpp/usr/bin/vpp_json_test (ELF format: 'elf64-littleaarch64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libvppinfra.so.0 needed by
debian/vpp/usr/bin/svmdbtool (ELF format: 'elf64-littleaarch64'; RPATH: '')
...

Changes to create architecture specific folder in /usr/lib/

Change-Id: Id0e42b175348e32e2c72b404ff60eb87c9146968
Signed-off-by: Nitin Saxena <nsaxena@cavium.com>
build-data/platforms.mk

index 7904cc4..196a674 100644 (file)
@@ -36,7 +36,7 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
        find $(INSTALL_PREFIX)$(ARCH)/*/lib* \( -type f -o  -type l \)  \
          -print | egrep -e '*\.so\.*\.*\.*'                            \
          | grep -v plugins\/                                           \
-         | sed -e 's:.*:../& /usr/lib/x86_64-linux-gnu:'               \
+         | sed -e 's:.*:../& /usr/lib/$(MACHINE)-linux-gnu:'           \
            > deb/debian/vpp-lib.install ;                              \
                                                                        \
        : vnet api definitions ;                                        \