etc-update doesn't order the $LDPATH values in the alphabetical order of the /etc/env.d files. The $LDPATH of /etc/env.d/00basic is "/usr/local/lib", and that of /etc/env.d/10xfree is "/usr/X11R6/lib". But after running env-update, "/usr/X11R6/lib" comes before "/usr/local/lib" in the /etc/ld.so.conf file. There's no problem in ordering the $PATH. The env-update script orders the paths in ld.so.conf alphabetically. Reproducible: Always Steps to Reproduce: 1. 2. 3.
*** This bug has been marked as a duplicate of 44028 ***