Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapcraft.yaml: unset LD_FLAGS and LD_LIBRARY_PATH to allow iterative…
… builds Leaving these set leads to the debian build system including files from $SNAPCRAFT_STAGE in the build and using those libraries, etc. which it should not be doing. Without this, after building successfully once, re-building the snap without cleaning would fail like this: dpkg-shlibdeps: error: no dependency information found for /root/stage/lib/x86_64-linux-gnu/libc.so.6 (used by debian/snapd/usr/lib/snapd/snap-seccomp) Hint: check if the library actually comes from a package. dh_shlibdeps: dpkg-shlibdeps -Tdebian/snapd.substvars debian/snapd/usr/bin/snapfuse debian/snapd/usr/bin/snap debian/snapd/usr/lib/snapd/snap-confine debian/snapd/usr/lib/snapd/snap-seccomp debian/snapd/usr/lib/snapd/snap-bootstrap debian/snapd/usr/lib/snapd/snap-gdb-shim debian/snapd/usr/lib/snapd/snap-repair debian/snapd/usr/lib/snapd/snapd debian/snapd/usr/lib/snapd/snap-failure debian/snapd/usr/lib/snapd/snap-discard-ns debian/snapd/usr/lib/systemd/system-environment-generators/snapd-env-generator debian/snapd/lib/systemd/system-generators/snapd-generator returned exit code 2 debian/rules:102: recipe for target 'binary' failed make: *** [binary] Error 2 dpkg-buildpackage: error: debian/rules binary gave error exit status 2 Failed to run 'override-build': Exit code was 2. because libc.so.6 was included in the linker search path during compiling when it should just be using the one from the build environment instead. Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
- Loading branch information