develooper Front page | perl.perl5.porters | Postings from March 2007

Re: Change 29407: OS/2 compilation fixes by Ilya

Thread Next
From:
Nicholas Clark
Date:
March 5, 2007 14:52
Subject:
Re: Change 29407: OS/2 compilation fixes by Ilya
Message ID:
20070305225200.GQ6221@plum.flirble.org
This change adds two variables:

On Tue, Nov 28, 2006 at 07:00:04AM -0800, Rafael Garcia-Suarez wrote:
> Change 29407 by rgs@stencil on 2006/11/28 14:59:03
> 
> 	OS/2 compilation fixes by Ilya
> 	
> 	Subject: [PATCH 5.8.8] Build on OS/2
> 	From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
> 	Date: Tue, 28 Nov 2006 03:36:29 -0800
> 	Message-ID: <20061128113629.GA18108@powdermilk.math.berkeley.edu>
> 
> Affected files ...
> 
> ... //depot/perl/config_h.SH#329 edit
> ... //depot/perl/perlvars.h#71 edit
> 
> Differences ...
> 
> ==== //depot/perl/config_h.SH#329 (text) ====
> Index: perl/config_h.SH
> --- perl/config_h.SH#328~29338~	2006-11-21 07:16:46.000000000 -0800
> +++ perl/config_h.SH	2006-11-28 06:59:03.000000000 -0800
> @@ -4054,6 +4054,18 @@
>   */
>  #define Pid_t $pidtype		/* PID type */
>  
> +/* INSTALL_PREFIX:
> + *	This symbol contains the "root" of installation tree for this package.
> + *	The program should be prepared to do ~ expansion.
> + */
> +/* INSTALL_PREFIX_EXP:
> + *	This symbol contains the "root" of installation tree for this package
> + *	to be used
> + *	in programs that are not prepared to deal with ~ expansion at run-time.
> + */
> +#define INSTALL_PREFIX "$installprefix"		/**/
> +#define INSTALL_PREFIX_EXP "$installprefixexp"	/**/
> +
>  /* PRIVLIB:
>   *	This symbol contains the name of the private library for this package.
>   *	The library is private in the sense that it needn't be in anyone's
> 

but a later one takes them out again.

I infer they need to be present for OS/2:

$ sed -e 's/	.*//' <MANIFEST | xargs grep INSTALL_PREFIX
Changes:        Log: Put back INSTALL_PREFIX and INSTALL_PREFIX_EXP as they were
Changes:        Log: Subject: [PATCH 5.8.2 @21574] INSTALL_PREFIX from C
os2/os2.c:              tol = strlen(INSTALL_PREFIX);
os2/os2.c:                      Perl_croak_nocontext("INSTALL_PREFIX too long: `%s'", INSTALL_PREFIX);
os2/os2.c:              memcpy(b, INSTALL_PREFIX, tol + 1);


What's the correct metaconfig magic to make them stick around?

Nicholas Clark

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About