home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.409 < prev    next >
Encoding:
Internet Message Format  |  2014-08-17  |  4.3 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.409
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.409
  11. Problem:    Can't build with Perl on Fedora 20.
  12. Solution:   Find xsubpp in another directory. (Michael Henry)
  13. Files:        src/Makefile, src/config.mk.in, src/configure.in,
  14.         src/auto/configure
  15.  
  16.  
  17. *** ../vim-7.4.408/src/Makefile    2014-08-10 13:34:59.052785459 +0200
  18. --- src/Makefile    2014-08-17 16:59:03.527072144 +0200
  19. ***************
  20. *** 2477,2483 ****
  21.   
  22.   auto/if_perl.c: if_perl.xs
  23.       $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
  24. !     $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
  25.           $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
  26.   
  27.   auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
  28. --- 2478,2484 ----
  29.   
  30.   auto/if_perl.c: if_perl.xs
  31.       $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
  32. !     $(PERL) $(PERL_XSUBPP) -prototypes -typemap \
  33.           $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
  34.   
  35.   auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
  36. *** ../vim-7.4.408/src/config.mk.in    2014-06-12 18:03:24.936319000 +0200
  37. --- src/config.mk.in    2014-08-17 16:56:28.371077771 +0200
  38. ***************
  39. *** 48,58 ****
  40.   MZSCHEME_OBJ    = @MZSCHEME_OBJ@
  41.   MZSCHEME_CFLAGS    = @MZSCHEME_CFLAGS@
  42.   MZSCHEME_PRO    = @MZSCHEME_PRO@
  43. ! MZSCHEME_EXTRA  = @MZSCHEME_EXTRA@
  44.   MZSCHEME_MZC    = @MZSCHEME_MZC@
  45.   
  46.   PERL        = @vi_cv_path_perl@
  47.   PERLLIB        = @vi_cv_perllib@
  48.   PERL_LIBS    = @PERL_LIBS@
  49.   SHRPENV        = @shrpenv@
  50.   PERL_SRC    = @PERL_SRC@
  51. --- 48,59 ----
  52.   MZSCHEME_OBJ    = @MZSCHEME_OBJ@
  53.   MZSCHEME_CFLAGS    = @MZSCHEME_CFLAGS@
  54.   MZSCHEME_PRO    = @MZSCHEME_PRO@
  55. ! MZSCHEME_EXTRA    = @MZSCHEME_EXTRA@
  56.   MZSCHEME_MZC    = @MZSCHEME_MZC@
  57.   
  58.   PERL        = @vi_cv_path_perl@
  59.   PERLLIB        = @vi_cv_perllib@
  60. + PERL_XSUBPP    = @vi_cv_perl_xsubpp@
  61.   PERL_LIBS    = @PERL_LIBS@
  62.   SHRPENV        = @shrpenv@
  63.   PERL_SRC    = @PERL_SRC@
  64. *** ../vim-7.4.408/src/configure.in    2014-07-30 13:22:48.263621613 +0200
  65. --- src/configure.in    2014-08-17 16:57:11.183076219 +0200
  66. ***************
  67. *** 933,938 ****
  68. --- 933,946 ----
  69.         fi
  70.         vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
  71.         AC_SUBST(vi_cv_perllib)
  72. +       vi_cv_perl_extutils=unknown_perl_extutils_path
  73. +       for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
  74. +     xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
  75. +     if test -f "$xsubpp_path"; then
  76. +       vi_cv_perl_xsubpp="$xsubpp_path"
  77. +     fi
  78. +       done
  79. +       AC_SUBST(vi_cv_perl_xsubpp)
  80.         dnl Remove "-fno-something", it breaks using cproto.
  81.         perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
  82.             -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[[^ ]]*//'`
  83. *** ../vim-7.4.408/src/auto/configure    2014-07-30 13:22:48.267621613 +0200
  84. --- src/auto/configure    2014-08-17 16:58:43.047072887 +0200
  85. ***************
  86. *** 687,692 ****
  87. --- 687,693 ----
  88.   PERL_OBJ
  89.   PERL_SRC
  90.   shrpenv
  91. + vi_cv_perl_xsubpp
  92.   vi_cv_perllib
  93.   vi_cv_path_perl
  94.   MZSCHEME_MZC
  95. ***************
  96. *** 5604,5609 ****
  97. --- 5605,5618 ----
  98.         fi
  99.         vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
  100.   
  101. +       vi_cv_perl_extutils=unknown_perl_extutils_path
  102. +       for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
  103. +     xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
  104. +     if test -f "$xsubpp_path"; then
  105. +       vi_cv_perl_xsubpp="$xsubpp_path"
  106. +     fi
  107. +       done
  108.               perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
  109.             -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
  110.               perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
  111. *** ../vim-7.4.408/src/version.c    2014-08-16 18:36:38.597993280 +0200
  112. --- src/version.c    2014-08-17 16:53:34.135084090 +0200
  113. ***************
  114. *** 743,744 ****
  115. --- 743,746 ----
  116.   {   /* Add new patch number below this line */
  117. + /**/
  118. +     409,
  119.   /**/
  120.  
  121.  
  122. -- 
  123. To define recursion, we must first define recursion.
  124.  
  125.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  126. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  127. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  128.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  129.