Comment 2 for bug 1257036

Revision history for this message
Scott Moser (smoser) wrote :

In trying to test my fix for this, i went through a few packages before I found one that was actually broken. It seems that many packages (apache2, postgres, anacron) end up cleaning their own environment.

One package that *is* affected is 'backuppc' as demonstrated here:

$ sudo apt-get install --quiet --assume-yes eatmydata
$ sudo eatmydata apt-get install --assume-yes backuppc
$ sudo service backuppc status
 * backuppc is running
$ sudo cat /proc/$pid/environ | tr '\0' '\n' | grep ^LD_PRELOAD
LD_PRELOAD=/usr/lib/libeatmydata/libeatmydata.so /usr/lib/libeatmydata/libeatmydata.so

After the fix is applied, we see:

$ sudo cat /proc/$pid/environ | tr '\0' '\n' | grep ^LD_PRELOAD
LD_PRELOAD=