Re: config.arg problem with vim.app recipe

Bram Moolenaar <[email protected]> Fri, 07 Dec 2007 17:06:30 +0100
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Alex Yeh wrote:

> Hello, fellow aap users.
> =

> I recently tried using aap to install Vim.app on my mac. It worked
> beautifully, until I tried adding some additional compilation options
> (ruby, perl, python, multibit, huge features), at which point I
> encountered the following error, which I puzzled over for a couple of
> hours, but could not figure out:
> =

> error:	Error in recipe "/usr/local/aap/vim/vim/src/main.aap"
> line 375: Error executing commands for build object: Error in recipe
> "/usr/local/aap/vim/vim/src/main.aap" line 389: Shell command returned
> 1

There should be an AAPDIR/log file with more detailed info.

> =

> here=92s what I had in my config.arg file:
> =

> --with-features=3Dhuge
> --enable-multibyte
> --enable-perlinterp
> --enable-pythoninterp
> --enable-rubyinterp

Usually there is something wrong with the versions of libraries.  It's
very difficult to make this work for various versions of Mac OS.

> I also tried adding a
> =

> --with-compiledby=3D'My Name <myself@generic_host.org>'
> =

> but the angle brackets seemed to cause problems, even if I escaped
> them with backslashes, so I took the 'compiled-by' argument back out.

I see this problem also.  I'll see if it can be fixed...  OK, try the
patch below.

> Interestingly, when I just used aap to fetch and patch Vim, and then
> used the standard ./configure && make && make install, everything -
> including the --compiled-by argument - worked perfectly.

With the same configuration options?  That's strange.  Please compare
the relevant commands to find out what the difference is that caused the
failure.

> stats:
> Mac OS 10.3.9 with all the latest updates
> Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-5=
17.12.7.obj~1/RELEASE_PPC =

> gcc version 3.3 20030304 (Apple Computer, Inc. build 1671)
> Blue & White "Yosemite" G3, Rev 2 (New World PPC)


*** ../vim-7.1.168/src/main.aap	Tue Sep 25 22:13:14 2007
--- src/main.aap	Fri Dec  7 17:03:31 2007
***************
*** 63,70 ****
          @else:
          @   arch =3D "ppc"
          :print Building for $arch system
          :sys CONFIG_STATUS=3Dauto/config.status
!                 ./configure.aap `file2string("config.arg")`
                      --with-mac-arch=3D$arch
                      --cache-file=3Dauto/config.cache
  =

--- 63,71 ----
          @else:
          @   arch =3D "ppc"
          :print Building for $arch system
+         config_args =3D `file2string("config.arg")`
          :sys CONFIG_STATUS=3Dauto/config.status
!                 ./configure.aap $config_args
                      --with-mac-arch=3D$arch
                      --cache-file=3Dauto/config.cache
  =

***************
*** 440,450 ****
          :print >> $target char_u *all_lflags =3D (char_u *)"$linkcmd";
          @if _no.get("COMPILEDBY"):
              who =3D $COMPILEDBY
!             where =3D ''
          @else:
              :syseval whoami | :eval re.sub("\n", "", stdin) | :assign who
  =

              :syseval hostname | :eval re.sub("\n", "", stdin) | :assign w=
here
          :print >> $target char_u *compiled_user =3D (char_u *)"$who";
          :print >> $target char_u *compiled_sys =3D (char_u *)"$where";
  =

--- 441,453 ----
          :print >> $target char_u *all_lflags =3D (char_u *)"$linkcmd";
          @if _no.get("COMPILEDBY"):
              who =3D $COMPILEDBY
!             where =3D
          @else:
              :syseval whoami | :eval re.sub("\n", "", stdin) | :assign who
  =

              :syseval hostname | :eval re.sub("\n", "", stdin) | :assign w=
here
+         @who =3D string.replace(who, '"', '\\"')
+         @where =3D string.replace(where, '"', '\\"')
          :print >> $target char_u *compiled_user =3D (char_u *)"$who";
          :print >> $target char_u *compiled_sys =3D (char_u *)"$where";
  =



-- =

Press any key to continue, press any other key to quit.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php