texlive-20091107-set-selfautodir.patch 847 B

123456789101112131415
  1. diff -up ptexlive-20100322/build/texlive-20091107-source/texk/kpathsea/progname.c\~ ptexlive-20100322/build/texlive-20091107-source/texk/kpathsea/progname.c
  2. --- ptexlive-20100322/build/texlive-20091107-source/texk/kpathsea/progname.c~ 2009-03-17 00:13:07.000000000 +0900
  3. +++ ptexlive-20100322/build/texlive-20091107-source/texk/kpathsea/progname.c 2010-05-08 19:19:23.000000000 +0900
  4. @@ -571,7 +571,8 @@ kpathsea_set_program_name (kpathsea kpse
  5. kpathsea_xputenv (kpse, "SELFAUTOLOC", sdir);
  6. sdir_parent = xdirname (sdir);
  7. kpathsea_xputenv (kpse, "SELFAUTODIR", sdir_parent);
  8. - sdir_grandparent = xdirname (sdir_parent);
  9. + //sdir_grandparent = xdirname (sdir_parent);
  10. + sdir_grandparent = strdup ("/usr/share");
  11. kpathsea_xputenv (kpse, "SELFAUTOPARENT", sdir_grandparent);
  12. free (sdir);
  13. Diff finished. Sat May 8 19:19:30 2010