| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
After backporting Nicholas' work and slimming down metaconfig.h
|
|
|
|
|
|
|
|
|
|
|
|
| |
Configure would already find /proc/self/exe on NetBSD, where /proc/self is
a symlink to /proc/curproc. However, the revised probe avoids the extra
symlink traversal. Configure did not previously probe for the
relevant path on Solaris, /proc/self/path/a.out
Rename the description of /proc/curproc/file from BSD to FreeBSD, as it seems
that of the "big 3" BSDs, only FreeBSD uses this path.
Based on a patch from Johann 'Myrkraverk' Oskarsson.
|
|
|
|
|
| |
This removes code duplication, and makes it easy to add more variants.
Based on a patch from Johann 'Myrkraverk' Oskarsson.
|
|
|
|
|
|
|
|
|
| |
In Configure, check whether _NSGetExecutablePath() can be used to find the
absolute pathname of the executable. If so, set usensgetexecutablepath in
config.sh and USE_NSGETEXECUTABLEPATH in config.h. If this is set, then use
this approach in S_set_caret_X() to canonicalise $^X as an absolute
path. This approach works on OS X, and possible on other platforms that
use dyld.
|
|
|
|
|
|
|
|
|
|
| |
In Configure, check whether sysctl() and KERN_PROC_PATHNAME can be used
to find the absolute pathname of the executable. If so, set
usekernprocpathname in config.sh and USE_KERN_PROC_PATHNAME in config.h.
If this is set, then use this approach in S_set_caret_X() to canonicalise
$^X as an absolute path. This approach works on (at least) FreeBSD, and
doesn't rely on the /proc filesystem existing, or /proc/curproc/file being
present.
|
|
|
|
|
|
|
|
|
| |
On some Solaris systems, <stdbool.h> is present, but will give an
error if used by a compiler that is not sufficiently c99-compliant.
Check for this by including <stdbool.h> and trying to compile a
short program that uses bool.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
| |
|
|
|
|
|
|
|
|
|
| |
This means that the core uses the compiler's bool type if one exists.
This avoids potential problems of clashes between perl's own implementation
of bool and the compiler's bool type, which otherwise occur when one
attempts to include headers which in turn include <stdbool.h>.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
|
|
|
|
|
| |
There are too many related problems arising from this change
This reverts commit e820c6d6a6d0a8828aa68a6895696b659c471f2f.
|
|
|
|
|
| |
This introduces a volatile into the test program so gcc cannot optimise
out the symbol itself as being unused.
|
|
|
|
| |
Work initiated by Tony Cook
|
|
|
|
| |
This work was actually committed to metaconfig on 16 Feb 2011
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From: Nicholas Clark <nick@ccl4.org>
Date: Mon, 14 Feb 2011 16:01:49 +0000
Message-ID: <20110214160149.GU24189@plum.flirble.org>
INSTALL says this:
=item -DEBUGGING=-g
=item -Doptimize=-g
Adds -g to optimize, but does not set -DDEBUGGING.
(Note: Your system may actually require something like cc -g2.
Check your man pages for cc(1) and also any hint file for your system.)
However, we *aren't* compliant with our documentation, as currently
-Doptimize=-g (or anything containing -g) still causes -DDEBUGGING to be
added to the C flags.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Date: Thu, 20 Jan 2011 19:27:04 +0100
Subject: [PATCH] MirBSD: fix rpath for shared libperl
If you build perl with a shared libperl.so on MirBSD (the default config),
it will work up to the installation; however, once installed, it will be
unable to find libperl. Treat rpath handling like in the other BSD
dialects.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
|
|
|
|
|
|
| |
1. re-generate Configure and config_h.SH
2. update Porting/config_H, which was very outdated
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
|
|
|
|
|
| |
They might have served a purpose in the original files, but Nicholas
and Zefram expressed their concern that in the generated files, these
tags are misleading and unneeded.
|
|
|
|
| |
cbeaa1895 removed the reference to $perlpath
|
| |
|
|
|
|
| |
Sorry for the huge config_h.SH re-order. Don't know (yet) what caused that
|
|
|
|
|
|
|
| |
The special-casing in Configure still referred to ext/Encode, so likely this
was broken when Encode moved to cpan/
Fixes #79494, reported by Marc Lehmann.
|
|
|
|
|
| |
XS-APItest-KeywordRPN has turned out to be less useful as an independent
module than expected, and less strictly about RPN than it originally was.
|
|
|
|
|
|
|
| |
The format of the .patch file is no longer an integer change
number, and generates an error when processed by Configure.
As .patch is now handled by make_patchnum.pl, the attached
patch removes processing of .patch from Configure.
|
|
|
|
|
| |
Add the new static_inline stuff to the "other" config files too
Add the missing Glossary parts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch enables Configure to probe for C99-style 'static inline'.
(That is, functions may be inlined, but will not be externally visible.)
The initial idea is that some common code in messy macros inside headers
might be simplified using inline functions. If the compiler does not
support 'static inline', then a plain 'static' is used instead, along
with the consequent implications of a function call (though the compiler
may optimize away the function call and inline the function anyway).
In either case, you simply use PERL_STATIC_INLINE.
This patch does not *use* this facility at all yet. It is merely a
Configure patch to make the facility availble for others to experiment
with.
VMS and Windows files will still need to be manually updated.
Finally, before actually converting anything to inline functions, please
try to carefully evaluate the performance implications of any proposed
changes. Compilers vary in what they will and will not convert to inline
functions, so it's worth proceeding slowly and carefully.
This patch results from a single new metaconfig unit, d_static_inline.U,
which I will separately upload to the metaconfig repository.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From: Marc Pignat <marc@pignat.org>
Date: Wed, 23 Jun 2010 15:38:37 +0200
My proposed solution is to use the 'volatile' keyword to make sure the
compiler will really do the job.
Please note that it does not work with -O3, but the configure script
compile with -O2, so this should be fine.
At this time I've only tested the Configure scripts, which now detects
the align problem on ARM. I'm compiling the whole thing to check if the
md5 bug goes away!
I hope this will fix this *5 years* old bug, and the upstream bug as
well!
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
linking miniperl
SystemTaps' dtrace binary lives in /usr/bin, so add a check to Configure
for that.
Additionally link the dtrace .o file into miniperl, which is an issue
with SystemTap and also reported on p5p to affect OpenSolaris in
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
|
|
|
| |
Please keep them sorted
|
|
|
|
|
| |
of ANSI escape codes by setting $Config{less} (and thereby
$Config{pager}).
|
|
|
|
|
|
|
|
|
| |
This is needed at least by h2ph, otherwise the generated .ph files
choke on missing __LONG_MAX__ and similar definitions.
Patch by Samuel Thibault <sthibault@debian.org>.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
|
|
|
|
|
|
| |
Regenerated after backporting 88a6f4fc380d30c40
Please *do* remember to notify the metaconfig folk when directly patching Configure
Bring back Missing parts
|
|
|
|
|
|
|
|
|
|
|
|
| |
With commit 1725f55ba78fb58489ea39e2bc0cc1faffd32275 IO-Compress now puts
its .pm files in lib rather than archlib for perls later than 5.11.1, so
the core can now do likewise given that blead will next be released as
5.11.2, i.e. revert the Configure part of 4cc80fc4cbbd82e20f7b14b68abb53d552076022
and revert f4a6a713802da1b781d7108503156fa3a0fe219e.
This change should not be merged into 5.10.x because IO-Compress will
continue to put its .pm files into archlib for the sake of anyone upgrading
a 5.10.x installation in-place.
|
| |
|
| |
|
|
|
|
| |
Use $cpp instead of cpp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Date: Tue, 27 Oct 2009 01:29:40 +0000
From: Zefram <zefram@fysh.org>
To: perl5-porters@perl.org
Subject: bareword sub lookups
Attached is a patch that changes how the tokeniser looks up subroutines,
when they're referenced by a bareword, for prototype and const-sub
purposes. Formerly, it has looked up bareword subs directly in the
package, which is contrary to the way the generated op tree looks up
the sub, via an rv2cv op. The patch makes the tokeniser generate the
rv2cv op earlier, and dig around in that.
The motivation for this is to allow modules to hook the rv2cv op
creation, to affect the name->subroutine lookup process. Currently,
such hooking affects op execution as intended, but everything goes wrong
with a bareword ref where the tokeniser looks at some unrelated CV,
or a blank space, in the package. With the patch in place, an rv2cv
hook correctly affects the tokeniser and therefore the prototype-based
aspects of parsing.
The patch also changes ck_subr (which applies the argument context and
checking parts of prototype behaviour) to handle subs referenced by an
RV const op inside the rv2cv, where formerly it would only handle a gv
op inside the rv2cv. This is to support the most likely kind of modified
rv2cv op.
[This commit includes the Makefile.PL for XS-APITest-KeywordRPN missing
from the original patch, as well as updates to perldiag.pod and a
MANIFEST sort]
|
| |
|
| |
|
|
|
|
|
| |
We used to have extensions automatically sorted because they came from a
single glob, that was itself sorted.
|
|
|
|
|
| |
This required inverting the logic of test for "are we flattened or not".
Currently we can only build XS extensions on Unix from cpan/
|
| |
|
|
|
|
|
|
|
|
| |
After the great ext/ renaming, installperl stopped properly parsing the
new directory names, and hence did not properly deduce which files are
architecture-dependent. This was compounded by Configure's failure to
detect ext/IO-Compress as an architecture-dependent module. These two
patches fix both of those errors.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In searching for previous versions of perl, Configure
forgets to sort the directories according to version number,
so 5.10 sorts later than 5.8.
Specifically, without this patch, you'd get something like:
inc_version_list='5.8.9 5.8.8 5.10.0/i686-linux 5.10.0'
i.e. 5.10.0 would be searched *after* 5.8.8.
With this patch, you get something like:
inc_version_list='5.10.0/i686-linux 5.10.0 5.8.9 5.8.8'
|
| |
|
|
|
|
|
|
| |
From: Andy Dougherty <doughera@lafayette.edu>
Date: Mon, 29 Jun 2009 15:11:30 -0400 (EDT)
Message-ID: <alpine.DEB.2.00.0906291510110.28368@fractal.phys.lafayette.edu>
|
|
|
|
|
| |
This is needed at least by h2ph, otherwise the generated .ph files
choke on missing __LONG_MAX__ and similar definitions.
|