Okay check this out. I removes all parts from the project except dpkg and xz-utils to speed things up.
If I have a clean tree and run `snapcraft prime` this is what I end up with:
$ ldd prime/usr/bin/xz prime/usr/bin/xz: /lib/x86_64-linux-gnu/liblzma.so.5: version `XZ_5.2' not found (required by prime/usr/bin/xz) linux-vdso.so.1 => (0x00007ffcfebf4000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fbb73c45000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbb73a28000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbb7365e000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbb7345a000) /snap/core/current/lib64/../lib/x86_64-linux-gnu/ld-2.23.so => /lib64/ld-linux-x86-64.so.2 (0x00007fbb73e67000)
Bad. If I clean the tree and now run `snapcraft prime dpkg` followed by `snapcraft prime xz-utils` I get this:
$ ldd prime/usr/bin/xz linux-vdso.so.1 => (0x00007ffc261ea000) liblzma.so.5 => /home/ubuntu/usd-importer/prime/usr/bin/../lib/liblzma.so.5 (0x00007fae8bbdb000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fae8b9be000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fae8b5f4000) /snap/core/current/lib64/../lib/x86_64-linux-gnu/ld-2.23.so => /lib64/ld-linux-x86-64.so.2 (0x00007fae8be11000)
Good! I suspect this is Snapcraft not properly re-evaluating its environment as it executes its lifecycle.
Okay check this out. I removes all parts from the project except dpkg and xz-utils to speed things up.
If I have a clean tree and run `snapcraft prime` this is what I end up with:
$ ldd prime/usr/bin/xz 64-linux- gnu/liblzma. so.5: version `XZ_5.2' not found (required by prime/usr/bin/xz) 4000) 64-linux- gnu/liblzma. so.5 (0x00007fbb73c4 5000) 64-linux- gnu/libpthread. so.0 (0x00007fbb73a2 8000) 64-linux- gnu/libc. so.6 (0x00007fbb7365 e000) 64-linux- gnu/libdl. so.2 (0x00007fbb7345 a000) core/current/ lib64/. ./lib/x86_ 64-linux- gnu/ld- 2.23.so => /lib64/ ld-linux- x86-64. so.2 (0x00007fbb73e6 7000)
prime/usr/bin/xz: /lib/x86_
linux-vdso.so.1 => (0x00007ffcfebf
liblzma.so.5 => /lib/x86_
libpthread.so.0 => /lib/x86_
libc.so.6 => /lib/x86_
libdl.so.2 => /lib/x86_
/snap/
Bad. If I clean the tree and now run `snapcraft prime dpkg` followed by `snapcraft prime xz-utils` I get this:
$ ldd prime/usr/bin/xz a000) usd-importer/ prime/usr/ bin/../ lib/liblzma. so.5 (0x00007fae8bbd b000) 64-linux- gnu/libpthread. so.0 (0x00007fae8b9b e000) 64-linux- gnu/libc. so.6 (0x00007fae8b5f 4000) core/current/ lib64/. ./lib/x86_ 64-linux- gnu/ld- 2.23.so => /lib64/ ld-linux- x86-64. so.2 (0x00007fae8be1 1000)
linux-vdso.so.1 => (0x00007ffc261e
liblzma.so.5 => /home/ubuntu/
libpthread.so.0 => /lib/x86_
libc.so.6 => /lib/x86_
/snap/
Good! I suspect this is Snapcraft not properly re-evaluating its environment as it executes its lifecycle.