Cannot use imagemagick with adt-run on touch

Bug #1407949 reported by Richard Huddie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Trying to use imagemagick 'convert-im6' in an autopilot test using adt-run generates the following error:
convert-im6: error while loading shared libraries: libMagickCore-6.Q16.so.2: cannot open shared object file: No such file or directory

The imagemagick library file gets installed to the following directory, but it cannot be found:
/tmp/adt-run.cdEia7/deps/usr/lib/arm-linux-gnueabihf/libMagickCore-6.Q16.so.2.0.0

If imagemagick is installed on the device directly then the test will work. This problem occurs only when trying to install and run imagemagick using adt-run.

Tested on mako vivid-proposed #58, with read-only testbed.

Revision history for this message
Martin Pitt (pitti) wrote :

This doesn't happen in QEMU, but I can reproduce it on the emulator.

Changed in autopkgtest (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Ah, it's because /etc/environment on touch is evil and completely stomps on an already set LD_LIBRARY_PATH:

etc/environment:LD_LIBRARY_PATH=/vendor/lib:/system/lib

summary: - Cannot use imagemagick with adt-run
+ Cannot use imagemagick with adt-run on touch
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.9.4

---------------
autopkgtest (3.9.4) unstable; urgency=medium

  * Recognize modern "Package-Type:" control field in addition to
    XC-Package-Type.
  * ssh-setup/adb: Guard adb wait-for-device with a 5 min timeout.
    (LP: #1414939)
  * README.running-tests.rst: Fix mis-spelled ro-apt setup command.
  * Add setup-commands/ro-apt-update: Shortcut for temporarily mounting a
    readonly root file system writable and run apt-get. This allows tests to
    download/unpack test dependencies on older images whose apt indexes are
    out of date. (LP: #1408350)
  * Export temp dir install mode variables in the test run script instead of
    merely running it under that environment, so that we trump non-extending
    LD_LIBRARY_PATHs in /etc/environment. (LP: #1407949)
  * setup-commands/ubuntu-touch-session: Ensure that /dev/uinput is always
    accessible, as we don't necessarily have local logind sessions during
    tests. (part of LP #1415514)
  * setup-commands/ubuntu-touch-session: Unset UPSTART_JOB (which crept into
    the environment from a recent upstart version) when calling initctl, to
    fix querying the session D-BUS address. (LP: #1415514)

 -- Martin Pitt <email address hidden> Thu, 29 Jan 2015 19:01:41 +0100

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.