develooper Front page | perl.perl5.porters | Postings from August 2011

Re: is MUTLIARCH pointless?

Thread Previous
From:
H.Merijn Brand
Date:
August 31, 2011 04:10
Subject:
Re: is MUTLIARCH pointless?
Message ID:
20110831131024.590b8f00@pc09.procura.nl
On Tue, 30 Aug 2011 11:04:26 +0100, Nicholas Clark <nick@ccl4.org>
wrote:

> tl;dr version - MULTIARCH as implemented can not work, and should go.
> 
> 
> multiarch (multiarch.U):
> 	This variable conditionally defines the MULTIARCH symbol
> 	which signifies the presence of multiplatform files.
> 	This is normally set by hints files.
>
> MULTIARCH is referenced in these files:
> 
> config_h.SH
> NetWare/config_H.wc
> plan9/config_h.sample
> plan9/config.plan9
> Porting/config_H
> Porting/config_h.pl
> Porting/Glossary
> pp_pack.c
> uconfig.h
> win32/config_H.bc
> win32/config_H.ce
> win32/config_H.gc
> win32/config_H.gc64
> win32/config_H.gc64nox
> win32/config_H.vc
> win32/config_H.vc64
> 
> It's all config.h and related

$ metagrep MULTIARCH
<(?^i:MULTIARCH)>
U/compline/byteorder.U: usecrosscompile multiarch uvtype uvsize i_stdlib
U/compline/byteorder.U:?H:?%<:#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
U/compline/byteorder.U:case "$usecrosscompile$multiarch" in
U/compline/byteorder.U:You seem to be either cross-compiling or doing a multiarchitecture build,
U/compline/alignbytes.U:?MAKE:alignbytes: Myread Compile cat rm_try usecrosscompile multiarch run \
U/compline/alignbytes.U:?H:?%<:#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
U/compline/alignbytes.U:case "$usecrosscompile$multiarch" in
U/compline/alignbytes.U:You seem to be either cross-compiling or doing a multiarchitecture build,
U/a_dvisory/multiarch.U:?MAKE:multiarch: osname
U/a_dvisory/multiarch.U:?S:multiarch:
U/a_dvisory/multiarch.U:?S:     This variable conditionally defines the MULTIARCH symbol
U/a_dvisory/multiarch.U:?C:MULTIARCH:
U/a_dvisory/multiarch.U:?H:#$multiarch MULTIARCH                /**/
U/a_dvisory/multiarch.U:next|rhapsody|darwin) multiarch="$define" ;;
U/a_dvisory/multiarch.U:case "$multiarch" in
U/a_dvisory/multiarch.U:''|[nN]*) multiarch="$undef" ;;

When all the references to MULTIARCH/multiarch have gone, multiarch.U
will not be included (at least it should not), but as you can see, the
metaunits byteorder.U and alignbytes.U also depend on it.

Whatever you decide to do, I will have to synchronize actions to make
multiarch.U disappear when required.

-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using 5.00307 through 5.14 and porting perl5.15.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.4 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous


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