Ticket #1813: librsvg-2.12.7-system_nspr-1.patch

File librsvg-2.12.7-system_nspr-1.patch, 1.4 KB (added by Randy McMurchy, 18 years ago)

librsvg patch to fix breakage when using system-installed NSPR

  • librsvg-2.12.

    Submitted By:            Randy McMurchy <randy_at_linuxfromscratch_dot_org>
    Date:                    2006-02-25
    Initial Package Version: 2.12.7
    Upstream Status:         Not submitted (LFS specific) This patch cannot really
                             be sent upstream yet (well, I suppose it could, but it
                             would probably be rejected) because Firefox/Mozilla
                             does not yet officiall support building with system
                             installed NSPR libraries
    Origin:                  Randy McMurchy
    Description:             Fixes breakage if using system-installed NSPR libraries
    
    
    diff -Naur librsvg-2.12.7-orig/configure librsvg-2.12.7/configure
    old new  
    2372923729
    2373023730   if test "x$MOZILLA_CONFIG" != "xno"; then
    2373123731      _mozilla_include_dir=`$MOZILLA_CONFIG --cflags|sed 's/-I\(.*\) .*/\1/'`
    23732       MOZILLA_CFLAGS="-I$_mozilla_include_dir/plugin -I$_mozilla_include_dir/java -I$_mozilla_include_dir/nspr"
     23732      _nspr_include_dir=`for cflaglist in $($MOZILLA_CONFIG --cflags); \
     23733                        do echo $cflaglist | grep nspr >/dev/null; \
     23734                        if [ $? -eq 0 ]; then echo $cflaglist; fi; done`
     23735      MOZILLA_CFLAGS="-I$_mozilla_include_dir/plugin -I$_mozilla_include_dir/java $_nspr_include_dir"
    2373323736   else
    2373423737
    2373523738  succeeded=no