lib64.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff -Nuar cups_old-2.2.6/config-scripts/cups-directories.m4 cups-2.2.6/config-scripts/cups-directories.m4
  2. --- cups_old-2.2.6/config-scripts/cups-directories.m4 2017-12-14 06:56:50.708946000 +0300
  3. +++ cups-2.2.6/config-scripts/cups-directories.m4 2017-12-14 09:23:45.490213940 +0300
  4. @@ -101,8 +101,8 @@
  5. if test "$libdir" = "\${exec_prefix}/lib"; then
  6. case "$host_os_name" in
  7. linux*)
  8. - if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
  9. - libdir="$exec_prefix/lib64"
  10. + if test -d /usr/lib -a ! -d /usr/lib/fakeroot; then
  11. + libdir="$exec_prefix/lib"
  12. fi
  13. ;;
  14. esac
  15. diff -Nuar cups_old-2.2.6/configure cups-2.2.6/configure
  16. --- cups_old-2.2.6/configure 2017-12-14 06:56:51.766946000 +0300
  17. +++ cups-2.2.6/configure 2017-12-14 09:26:43.667224765 +0300
  18. @@ -6187,8 +6187,8 @@
  19. if test "$libdir" = "\${exec_prefix}/lib"; then
  20. case "$host_os_name" in
  21. linux*)
  22. - if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
  23. - libdir="$exec_prefix/lib64"
  24. + if test -d /usr/lib -a ! -d /usr/lib/fakeroot; then
  25. + libdir="$exec_prefix/lib"
  26. fi
  27. ;;
  28. esac
  29. diff -Nuar cups_old-2.2.6/cups-config.in cups-2.2.6/cups-config.in
  30. --- cups_old-2.2.6/cups-config.in 2017-11-01 17:57:53.000000000 +0300
  31. +++ cups-2.2.6/cups-config.in 2017-12-14 09:22:37.641209818 +0300
  32. @@ -48,7 +48,7 @@
  33. CFLAGS="$CFLAGS -I$includedir"
  34. fi
  35. - if test $libdir != /usr/lib -a $libdir != /usr/lib32 -a $libdir != /usr/lib64; then
  36. + if test $libdir != /usr/lib -a $libdir != /usr/lib32 -a $libdir != /usr/lib; then
  37. LDFLAGS="$LDFLAGS -L$libdir"
  38. fi
  39. fi