This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig.git
3 years agovoidflags.U: Use new compiler_warning.U
Karl Williamson [Sun, 21 Jun 2020 18:39:34 +0000 (12:39 -0600)]
voidflags.U: Use new compiler_warning.U

3 years agod_attribut.U: Use new compiler_warning.U
Karl Williamson [Sun, 21 Jun 2020 18:38:50 +0000 (12:38 -0600)]
d_attribut.U: Use new compiler_warning.U

3 years agoAdd compiler_warning.U
Karl Williamson [Sun, 21 Jun 2020 18:36:28 +0000 (12:36 -0600)]
Add compiler_warning.U

This is to see if there were compiler warnings generated.  It turns out
that AIX has very weird syntax for warnings, that don't include that
word, so there is special code for that os.

Also, some compiler's warnings aren't all lowercase.

3 years agocontains.U: Need a path to the generated script
Karl Williamson [Sun, 21 Jun 2020 18:33:25 +0000 (12:33 -0600)]
contains.U: Need a path to the generated script

I tested what would happen with 'contains' if grep is actually broken on
the box, and it failed because it didn't know where the generated
work-around script is.

This commit fixes this, but the fact that no failures have been showing
up indicates that modern greps just aren't broken this way.

3 years agocontains.U: echo should go to >&4
Karl Williamson [Tue, 18 Aug 2020 18:30:50 +0000 (12:30 -0600)]
contains.U: echo should go to >&4

3 years agoCopy contains.U from dist to U/modified
Karl Williamson [Tue, 18 Aug 2020 18:24:31 +0000 (12:24 -0600)]
Copy contains.U from dist to U/modified

This is in preparation for modifying it

3 years agod_setlocale.U: Add more info to user messages
Karl Williamson [Mon, 13 Jul 2020 17:55:30 +0000 (11:55 -0600)]
d_setlocale.U: Add more info to user messages

3 years agod_setlocale.U: Pay attention to hints file
Karl Williamson [Sun, 21 Jun 2020 18:46:00 +0000 (12:46 -0600)]
d_setlocale.U: Pay attention to hints file

This was ignoring any hints file setting of d_setlocale, and checking if
the system appears to have a sane one.  But there are cases where the
setlocale isn't really sane, even though it appears to be, and the hints
file is used to override this setting.  This commit now pays attention
to that override.

3 years agoModernize getverlist
H.Merijn Brand [Fri, 21 Aug 2020 13:46:22 +0000 (15:46 +0200)]
Modernize getverlist

- use strict/warnings
- pack "s>s>s>" to ensure best sorting
- fix small typo in comment

3 years agoRemove final vestiges of 5.005 threads
Dagfinn Ilmari Mannsåker [Mon, 10 Aug 2020 18:43:51 +0000 (19:43 +0100)]
Remove final vestiges of 5.005 threads

3 years agoBackport more blead Glossary typo fixes
Dagfinn Ilmari Mannsåker [Mon, 10 Aug 2020 19:02:44 +0000 (20:02 +0100)]
Backport more blead Glossary typo fixes

Commit bc2d571f1bf96e369c3d80c4294161b1d3180299 backported the
"patern" typo fix from
https://github.com/Perl/perl5/commit/4357af6ce6bbf62e83c554355bd8063b6fd0880a,
but missed the instances of "usally" on the same lines.

3 years agoHead.U: Fix Github repository URL
Dagfinn Ilmari Mannsåker [Wed, 8 Jul 2020 21:05:48 +0000 (22:05 +0100)]
Head.U: Fix Github repository URL

3 years agoMerge pull request #64 from ntyni/blead-changes 5.32.0
H.Merijn Brand [Sun, 17 May 2020 12:35:21 +0000 (14:35 +0200)]
Merge pull request #64 from ntyni/blead-changes

Blead changes

3 years agoBackport blead Glossary change fixing typos 64/head
Niko Tyni [Fri, 15 May 2020 21:33:38 +0000 (00:33 +0300)]
Backport blead Glossary change fixing typos

The Glossary change is part of

 https://github.com/Perl/perl5/commit/4357af6ce6bbf62e83c554355bd8063b6fd0880a

3 years agoBackport blead Configure change to contact instructions
Niko Tyni [Fri, 15 May 2020 21:13:25 +0000 (00:13 +0300)]
Backport blead Configure change to contact instructions

The Configure change is part of

 https://github.com/Perl/perl5/commit/35e21c5bf73a6039193bb688ec85ff2cc7716443

3 years agoMinor cleanups
H.Merijn Brand - Tux [Thu, 30 Apr 2020 08:36:59 +0000 (10:36 +0200)]
Minor cleanups

3 years agoMerge pull request #63 from xenu/xenu/sockaddr-storage
H.Merijn Brand [Thu, 30 Apr 2020 08:31:34 +0000 (10:31 +0200)]
Merge pull request #63 from xenu/xenu/sockaddr-storage

add probe for struct sockaddr_storage

3 years agoadd probe for struct sockaddr_storage 63/head
Tomasz Konojacki [Thu, 30 Apr 2020 07:00:25 +0000 (07:00 +0000)]
add probe for struct sockaddr_storage

Perl/perl5#17764 needs this

3 years agoMerge pull request #62 from Perl/fix-repeated-words
H.Merijn Brand [Fri, 24 Apr 2020 11:20:51 +0000 (13:20 +0200)]
Merge pull request #62 from Perl/fix-repeated-words

Fix repeated-word typos

3 years agoFix repeated-word typos 62/head
Dagfinn Ilmari Mannsåker [Thu, 23 Apr 2020 20:04:47 +0000 (21:04 +0100)]
Fix repeated-word typos

4 years agoAdapt Configure to GCC version 10
H.Merijn Brand - Tux [Tue, 21 Jan 2020 19:57:37 +0000 (20:57 +0100)]
Adapt Configure to GCC version 10

backport of 9f4e6307232229875331a55e44e1245b0b91e219

4 years agoPartly revert 9c359e8280d731ca92428e10705200e1c7ebf844
H.Merijn Brand - Tux [Tue, 21 Jan 2020 19:51:45 +0000 (20:51 +0100)]
Partly revert 9c359e8280d731ca92428e10705200e1c7ebf844

No here doc inside case

4 years agoSync with minor changes in blead
H.Merijn Brand - Tux [Tue, 21 Jan 2020 16:28:45 +0000 (17:28 +0100)]
Sync with minor changes in blead

4 years agoAdd <stdlib.h> for futimes compilation test
H.Merijn Brand - Tux [Tue, 21 Jan 2020 16:15:01 +0000 (17:15 +0100)]
Add <stdlib.h> for futimes compilation test

Backport f16c94bc75aefb81949b423b399fac4071859f6d

4 years agoRemove -DUSE_C_BACKTRACE part: from e849841dca2a8b1111999
H.Merijn Brand - Tux [Tue, 21 Jan 2020 16:14:21 +0000 (17:14 +0100)]
Remove -DUSE_C_BACKTRACE part: from e849841dca2a8b1111999

4 years agoPatches for meta are never directly from the perl5 tree
H.Merijn Brand - Tux [Tue, 21 Jan 2020 16:03:03 +0000 (17:03 +0100)]
Patches for meta are never directly from the perl5 tree

4 years agoUpdate the reference to the GitHub issue tracker
H.Merijn Brand - Tux [Tue, 21 Jan 2020 15:59:03 +0000 (16:59 +0100)]
Update the reference to the GitHub issue tracker

4 years agoDeclare temporary file 'try' for metalint.
Andy Dougherty [Tue, 31 Dec 2019 00:58:38 +0000 (19:58 -0500)]
Declare temporary file 'try' for metalint.

4 years agoFix strtoul probe to compile under clang++.
Andy Dougherty [Tue, 31 Dec 2019 00:50:41 +0000 (19:50 -0500)]
Fix strtoul probe to compile under clang++.

Add the missing stdlib.h header and remove an unnecessary prototype.

4 years agoFix strtoll, strotoull, and strtouq probes to compile under clang++.
Andy Dougherty [Mon, 30 Dec 2019 02:43:24 +0000 (21:43 -0500)]
Fix strtoll, strotoull, and strtouq probes to compile under clang++.

The test programs were missing the stdlib.h header, and needed
tweaks to the check() prototype to compile under clang++.  These
changes should be fine for C compilers as well, but they have typically
been more forgiving, so shouldn't be affected.

4 years agoInclude <stdio.h> in getpgrp/setpgrp probes for printf prototype.
Andy Dougherty [Mon, 30 Dec 2019 02:11:23 +0000 (21:11 -0500)]
Include <stdio.h> in getpgrp/setpgrp probes for printf prototype.

C compilers typically issue a warning, but c++ compilers may abort with
an error.

4 years agoUse a compile and run test for clang++.
Andy Dougherty [Tue, 27 Aug 2019 01:39:57 +0000 (21:39 -0400)]
Use a compile and run test for clang++.

For glibc, previous reports were that some functions (such as lchown())
are present in libc, but are unimplemented.  That is, they always fail
and set errno=ENOSYS.  Unfortunately, the stub test doesn't work under
clang++.  Thus use a compile and run test.

4 years agoMerge pull request #61 from xenu/master
Karl Williamson [Fri, 22 Nov 2019 19:50:59 +0000 (11:50 -0800)]
Merge pull request #61 from xenu/master

add probe for __attribute__(always_inline)

4 years agoadd probe for __attribute__(always_inline) 61/head
Tomasz Konojacki [Fri, 22 Nov 2019 18:43:22 +0000 (18:43 +0000)]
add probe for __attribute__(always_inline)

4 years agoisless probe in Configure broken #17216
H.Merijn Brand - Tux [Thu, 21 Nov 2019 15:00:45 +0000 (16:00 +0100)]
isless probe in Configure broken #17216

4 years agoUpdate README to reflect new location on github
H.Merijn Brand - Tux [Tue, 29 Oct 2019 17:08:25 +0000 (18:08 +0100)]
Update README to reflect new location on github

4 years agoAdd check for malloc_usable_size (Richard Leach)
H.Merijn Brand - Tux [Mon, 16 Sep 2019 06:02:28 +0000 (08:02 +0200)]
Add check for malloc_usable_size (Richard Leach)

4 years agoMerge pull request #60 from tonycoz/futimes-exit
H.Merijn Brand [Tue, 10 Sep 2019 10:09:36 +0000 (12:09 +0200)]
Merge pull request #60 from tonycoz/futimes-exit

c99 requires functions to be declared before they're called

4 years agoc99 requires functions to be declared before they're called 60/head
Tony Cook [Tue, 10 Sep 2019 00:35:39 +0000 (10:35 +1000)]
c99 requires functions to be declared before they're called

and exit() is declared in stdlib.h

4 years agoReset xxx_convert to empty string if none of 3 utilities is found
H.Merijn Brand - Tux [Mon, 26 Aug 2019 09:51:03 +0000 (11:51 +0200)]
Reset xxx_convert to empty string if none of 3 utilities is found

Backport 6e404ab585deadc1c32d50513f13b50ae395c00d

This will cause Configure to enter the WHOA block and default to using
sprintf.

Change Gconvert checkit() prototype for [perl #134371].

In the checkit() routine inside Configure, clang++ was taking the
if (strcmp(expect, got)) branch even though the 'expect' and 'got' strings
were identical.  A first step in debugging this was to realize that
the checkit() function never returned a value, so relabel it as void.
With clang version 7.0.1-8 (tags/RELEASE_701/final) (Debian),
this change seems to work around the strcmp issue.

Further Configure gconvert probe cleanups for C++.  As part of debugging
[perl #134375] and [perl #134371], try to eliminate warnings thrown by
clang++.

4 years agoMerge pull request #58 from tonycoz/sysroot
H.Merijn Brand [Mon, 26 Aug 2019 09:36:02 +0000 (11:36 +0200)]
Merge pull request #58 from tonycoz/sysroot

(perl #134360) --sysroot apparently needs the =

4 years ago(perl #134360) --sysroot apparently needs the = 58/head
Tony Cook [Mon, 26 Aug 2019 04:49:52 +0000 (14:49 +1000)]
(perl #134360) --sysroot apparently needs the =

See: https://rt.perl.org/Ticket/Display.html?id=134360

4 years agoConfigure: reuse "cached" value of "none" for dir
H.Merijn Brand - Tux [Thu, 25 Jul 2019 14:10:27 +0000 (16:10 +0200)]
Configure: reuse "cached" value of "none" for dir

When value of a directory (i.e. man1dir) is set to "none" because of:
- '-D' option set on cmdline (i.e. -Dman1dir=none) OR
- because value is reused from previous configure run

And when the prefix is different from the previous configure run(*) then
keep the value of "none". predefined/cached value does not contain the
old prefix so there is no harm in keeping it.

(*): due to another bug this also happens when prefix ends with a
     trailing slash

See https://rt.perl.org/Ticket/Display.html?id=134284

4 years agoRemove trailing '/' from prefix
H.Merijn Brand - Tux [Thu, 25 Jul 2019 13:52:44 +0000 (15:52 +0200)]
Remove trailing '/' from prefix

Change how/when the trailing '/' from a prefix is removed.

The original code had two problems:

1) it only stripped the trailing slash when value was predefined
   (either from -Dprefix=/foo/bar/ or from a previous configure run)
2) when it did strip the value then it also caused 'oldprefix' to
   be set. This in turns causes other predefined (/cached) paths to
   be ignored.

See https://rt.perl.org/Public/Bug/Display.html?id=134284

4 years agoRemove vestiges of mpeix support (removed in 5.17.x)
H.Merijn Brand - Tux [Thu, 25 Jul 2019 13:44:43 +0000 (15:44 +0200)]
Remove vestiges of mpeix support (removed in 5.17.x)

backport of e3c1dc81bda4523bfc897fec8afe25b162e29cb6

4 years agoFix erroneous references to USE_CBACKTRACE
H.Merijn Brand - Tux [Thu, 25 Jul 2019 13:41:02 +0000 (15:41 +0200)]
Fix erroneous references to USE_CBACKTRACE

The #define set in Configure and used in locale.c and util.c is actually
USE_C_BACKTRACE.

backport of 812e2121cb84e726a5a5b5a3a64c6f949426e02f

4 years agoAllow -Uusedtrace / -Dusedtrace=false / -Dusedtrace=no
H.Merijn Brand - Tux [Tue, 9 Jul 2019 14:30:12 +0000 (16:30 +0200)]
Allow -Uusedtrace / -Dusedtrace=false / -Dusedtrace=no

4 years agoBackport perl5 core changes by Andy, correcting Aaron's merge 5.30.0
H.Merijn Brand - Tux [Thu, 25 Apr 2019 14:06:57 +0000 (16:06 +0200)]
Backport perl5 core changes by Andy, correcting Aaron's merge

4 years agoAssume <stdlib.h> exists when probing for setlocale()
Aaron Crane [Thu, 25 Apr 2019 11:18:52 +0000 (12:18 +0100)]
Assume <stdlib.h> exists when probing for setlocale()

We're on C89, after all :-)

4 years agoBackport improvements to setlocale() probe
Aaron Crane [Thu, 25 Apr 2019 10:57:08 +0000 (11:57 +0100)]
Backport improvements to setlocale() probe

This is from Perl 5 commit 2e3ef32f4acc106de6ae8170099f09a36d4ef490, but
with a couple of changes to appease the metaconfig linter by avoiding
strings of the form /\w+=\S+/ (which it interprets as attempts to set shell
variables).

4 years agoBackport probes for towlower() and towupper()
Aaron Crane [Thu, 25 Apr 2019 10:38:00 +0000 (11:38 +0100)]
Backport probes for towlower() and towupper()

From Perl 5 commit 0806cdda2789ca6394976d1ff3e65dd59bcb8d1b (but with a typo
in the glossary description fixed).

4 years agoBackport detection of <wctype.h>
Aaron Crane [Thu, 25 Apr 2019 10:15:53 +0000 (11:15 +0100)]
Backport detection of <wctype.h>

This corresponds to Perl 5 commit 92271d410d92433b97015908e12c9f262c5953e7

4 years agoBackport detection improvements for memrchr, strlcat, and strlcpy
Aaron Crane [Thu, 25 Apr 2019 10:04:41 +0000 (11:04 +0100)]
Backport detection improvements for memrchr, strlcat, and strlcpy

This corresponds to Perl commit ba73a4cb8f472480a2d630613d1e9e1172d518d3

4 years agoBackport ability to include literal text in prototype checks
Aaron Crane [Thu, 25 Apr 2019 09:59:48 +0000 (10:59 +0100)]
Backport ability to include literal text in prototype checks

This corresponds to Perl 5 commit 63c1fa6a98bc60234a21de83dd191cd581a5d073

4 years agoBackport memmem(3) detection changes from Perl
Aaron Crane [Thu, 25 Apr 2019 09:54:42 +0000 (10:54 +0100)]
Backport memmem(3) detection changes from Perl

This corresponds to Perl 5 commits ca152fd8207cf53816b1407d5f54f6ea160a3ef8
and f8d82a1010426d0eb49c33cb903413b882c85c3e.

4 years agoFix bug when $exclusions_file is specified in .package file
Aaron Crane [Thu, 25 Apr 2019 09:40:44 +0000 (10:40 +0100)]
Fix bug when $exclusions_file is specified in .package file

The actual programs were trying to load the exclusions file before reading
.package (or even, in one case, without trying to read it at all). I failed
to notice this because I had a "-X" option that duplicated the intended use
of the setting in my .package file.

5 years agoRemove modified d_const.U
Aaron Crane [Tue, 27 Nov 2018 11:44:45 +0000 (11:44 +0000)]
Remove modified d_const.U

Perl no longer needs a d_const.U unit at all, so we needn't keep a modified
version of it.

5 years agoU/perl/i_db.U: just use C89 "const" without probing
Aaron Crane [Tue, 27 Nov 2018 11:31:09 +0000 (11:31 +0000)]
U/perl/i_db.U: just use C89 "const" without probing

5 years agoAdd initial support for Minix3
H.Merijn Brand - Tux [Tue, 30 Oct 2018 16:59:33 +0000 (17:59 +0100)]
Add initial support for Minix3

Patch by Sevan Janiyan

Include a hints file for Minix, derived from the NetBSD one but stripped
back to remove most of the legacy parts.

5 years agoAdd gcc-8 and gcc-9 for FORTIFY_SOURCE
H.Merijn Brand - Tux [Sun, 2 Sep 2018 08:54:53 +0000 (10:54 +0200)]
Add gcc-8 and gcc-9 for FORTIFY_SOURCE

5 years agoHide compile warnings for try.c in compile_ok
H.Merijn Brand - Tux [Thu, 2 Aug 2018 13:04:12 +0000 (15:04 +0200)]
Hide compile warnings for try.c in compile_ok

We don't want the compilation warnings. We do want the output of try
when it uses $run

Backport of 44a61463

5 years agoFix Berkeley DB function type tests.
H.Merijn Brand - Tux [Mon, 9 Jul 2018 15:25:32 +0000 (17:25 +0200)]
Fix Berkeley DB function type tests.

Backport of 2f2a2ed1c0bbba915d8fbb368503976317358592

Author: Craig A. Berry <craigberry@mac.com>
Date:   Thu Jun 28 17:46:40 2018 -0500

Fix Berkeley DB function type tests.

These tests fail with clang with a missing return in non-void
function warning, and any warning at all causes the types to
default to int.  It turns out DB::File doesn't use Configure's
types, but we should report the correct thing in case anyone
accesses them via %Config.

5 years agoRestore U/threads/d_strtod_l.U 5.27.11 5.28.0 5.28.1
Aaron Crane [Thu, 19 Apr 2018 15:55:35 +0000 (17:55 +0200)]
Restore U/threads/d_strtod_l.U

I inadvertently deleted it in 823598b39fed0d2a9acd54269b4fe5e0f941ab7f,
because it was unused at that point. However, that's only because it hadn't
been named in blead metaconfig.h.

5 years agoMerge branch 'arc/exclusions-in-package-file'
Aaron Crane [Thu, 19 Apr 2018 16:10:45 +0000 (18:10 +0200)]
Merge branch 'arc/exclusions-in-package-file'

This branch pulls in some of the later changes from rmanfredi/dist#14.
Raphaël suggested that the `.package` file be permitted to name the file
used for the `-X` option, and that `packinit` prompt for it. Those changes
have now been applied to our local copy of the (generated) `bin/mconfig`
file, and I've regenerated our `.package` file with the relevant setting.
Finally, our README no longer recommends the option, as it's no longer
needed.

5 years agoREADME: stop recommending the mconfig "-X" option 55/head
Aaron Crane [Thu, 19 Apr 2018 15:41:49 +0000 (17:41 +0200)]
README: stop recommending the mconfig "-X" option

It's no longer needed.

5 years agoRegenerate .package file, specifying .metaconf-exclusions.txt
Aaron Crane [Thu, 19 Apr 2018 15:37:18 +0000 (17:37 +0200)]
Regenerate .package file, specifying .metaconf-exclusions.txt

5 years agobin/mconfig: pull more changes from rmanfredi/dist#14
Aaron Crane [Thu, 19 Apr 2018 15:32:49 +0000 (17:32 +0200)]
bin/mconfig: pull more changes from rmanfredi/dist#14

In particular, this allows the -X option to be named in the .package file
(which would have saved some confusion for Tux).

This also reduces the amount of divergence from upstream dist, which goes
a small way to addressing #43.

5 years agoDelete unused units 46/head
Aaron Crane [Wed, 1 Nov 2017 17:53:01 +0000 (17:53 +0000)]
Delete unused units

These 109 units are all under the U directory (not dist/U), but aren't used
in the Perl Configure script — regenerating Configure after their deletion
makes no changes to it.

Apart from the increased ease of maintenance, deleting these also takes
about a second off the time needed to generate Configure.

5 years agoRemove U/modified/d_memchr.U in preference for the upstream version
Niko Tyni [Thu, 9 Nov 2017 21:25:52 +0000 (23:25 +0200)]
Remove U/modified/d_memchr.U in preference for the upstream version

The only differences are in comments, and both look correct to me.

There are more recent modifications in upstream git, but those need to
be tackled separately.

5 years agoRestore dist/U/* versions of several units
Aaron Crane [Thu, 19 Apr 2018 14:41:02 +0000 (16:41 +0200)]
Restore dist/U/* versions of several units

When using the "-X .metaconfig-exclusions.txt" option in an mconfig command,
the dist/U/* units aren't included, so we can allow them to sit happily
unused in that directory (thus reducing the size of our diff with upstream
dist/mcon/U).

This reverts the following commits:

  301e67c457a24b99e46dc3f4cf7c106669ef6157
  6952d89540352461dc892820dcec1aeb7dbc586c
  8f9faff3fbb4c83ae994b06233a5dfd26a215c8b

5 years agoMerge branch 'langinfo'
Aaron Crane [Thu, 19 Apr 2018 13:36:48 +0000 (15:36 +0200)]
Merge branch 'langinfo'

Make I18n::Langinfo always available (unless a hints file turns it off).

Changes in perl 5.27 cause this module to be available on any platform.

5 years agoU/perl/Extensions.U: remove references to unused vars 54/head
Aaron Crane [Thu, 19 Apr 2018 13:32:52 +0000 (15:32 +0200)]
U/perl/Extensions.U: remove references to unused vars

The probe no longer uses i_langinfo or d_nl_langinfo, so remove them from
the list of variables this unit's targets depend on.

5 years agoMake I18n::LLanginfo always available
Karl Williamson [Sun, 25 Mar 2018 19:37:57 +0000 (13:37 -0600)]
Make I18n::LLanginfo always available

(unless a hints file turns it off)

Changes in perl 5.27, cause this module to be available on any platform.

5 years agoWhitespace checks in mlint
H.Merijn Brand - Tux [Thu, 19 Apr 2018 07:54:38 +0000 (09:54 +0200)]
Whitespace checks in mlint

I have discussed this with Rafael, and he kind of agrees. It is not yet
integrated upstream, but now that perl metaconfig has gone through these
changes, it is safe to have this guard in place to be consistent

6 years ago[perl #132560] perl-5.24.3, wrong Configure test for IPC_STAT
H.Merijn Brand - Tux [Sat, 14 Apr 2018 15:26:48 +0000 (17:26 +0200)]
[perl #132560] perl-5.24.3, wrong Configure test for IPC_STAT

6 years agoremove leftovers
H.Merijn Brand - Tux [Sat, 14 Apr 2018 12:32:03 +0000 (14:32 +0200)]
remove leftovers

6 years agoWhen on meta don't expand the foldername to search
H.Merijn Brand - Tux [Thu, 12 Apr 2018 13:02:53 +0000 (15:02 +0200)]
When on meta don't expand the foldername to search

6 years agoRely on C89 <stdarg.h>
H.Merijn Brand - Tux [Thu, 12 Apr 2018 12:52:49 +0000 (14:52 +0200)]
Rely on C89 <stdarg.h>

Part of backport for 9d82a2b71ca36a0f03ce4676aab0bada365292a9

6 years agoRely on C89 <limits.h>
H.Merijn Brand - Tux [Thu, 12 Apr 2018 12:40:45 +0000 (14:40 +0200)]
Rely on C89 <limits.h>

part of backporting 350b922a8600b68529a55d5fcc05d4ebd9a45990

6 years agoPart of C89, so unwanted
H.Merijn Brand - Tux [Thu, 12 Apr 2018 12:34:17 +0000 (14:34 +0200)]
Part of C89, so unwanted

6 years agoDelete unneeded duplicate trailing newlines
H.Merijn Brand - Tux [Mon, 26 Mar 2018 16:23:49 +0000 (18:23 +0200)]
Delete unneeded duplicate trailing newlines

6 years agoBackport some commits from Zefram
H.Merijn Brand - Tux [Mon, 26 Mar 2018 16:09:25 +0000 (18:09 +0200)]
Backport some commits from Zefram

6 years agoMore whitespace consistency
H.Merijn Brand - Tux [Sat, 24 Mar 2018 20:45:20 +0000 (21:45 +0100)]
More whitespace consistency

6 years agowhitespace consistency
H.Merijn Brand - Tux [Sat, 24 Mar 2018 18:09:01 +0000 (19:09 +0100)]
whitespace consistency

6 years agomissing dependency on i_inttypes
H.Merijn Brand - Tux [Sat, 24 Mar 2018 15:31:47 +0000 (16:31 +0100)]
missing dependency on i_inttypes

6 years agoMerge pull request #53 from ntyni/debian-893601
H.Merijn Brand [Sat, 24 Mar 2018 15:17:29 +0000 (16:17 +0100)]
Merge pull request #53 from ntyni/debian-893601

Fix pointer to integer cast in null_printf check

6 years agoFix pointer to integer cast in null_printf check 53/head
Niko Tyni [Sat, 24 Mar 2018 14:49:06 +0000 (16:49 +0200)]
Fix pointer to integer cast in null_printf check

Quoting James Cowgill in https://bugs.debian.org/893601

> I recently noticed a build failure in the "mrs" package which embeds the
> perl interpreter. The strange part was that the error looked completely
> generic but only failed on 32-bit for some reason. I traced this to the
> value of the PRINTF_FORMAT_NULL_OK config,h option in perl which is
> defined on 32-bit, but not defined on 64-bit architectures. This is a
> bug because this check detects the behavior of the compiler and should
> be the same on all architectures with the same GCC version.
>
> The underlying bug is that the check for this warning causes GCC to emit
> an unrelated warning on 64-bit arches which tricks the check into not
> defining PRINTF_FORMAT_NULL_OK.
>
> The line which causes the warning is:
>  int null_printf (char* pat,...) { return (int)pat; }
>
> GCC complains about the pointer to integer cast of the wrong size but
> only on 64-bits. I've attached a patch to fix this by casting through
> intptr_t first.

Bug-Debian: https://bugs.debian.org/893601

6 years agoConsistent use of whitespace in ?S: and ?C:
H.Merijn Brand - Tux [Mon, 15 Jan 2018 08:23:58 +0000 (09:23 +0100)]
Consistent use of whitespace in ?S: and ?C:

6 years agoLeader should be TAB no spaces
H.Merijn Brand - Tux [Fri, 12 Jan 2018 14:59:19 +0000 (15:59 +0100)]
Leader should be TAB no spaces

6 years agoAdd probe for wcrtomb()
Karl Williamson [Fri, 12 Jan 2018 06:01:49 +0000 (23:01 -0700)]
Add probe for wcrtomb()

6 years agoRemove U.check (Closes: #25)
Dominic Hargreaves [Wed, 27 Dec 2017 13:17:50 +0000 (13:17 +0000)]
Remove U.check (Closes: #25)

This is an optimisation that's no longer used and has possibly bit-rotted.

6 years agoAdd documentation about tags (Closes #24)
Dominic Hargreaves [Wed, 27 Dec 2017 13:12:06 +0000 (13:12 +0000)]
Add documentation about tags (Closes #24)

6 years agoAdd snprintf_l, vsnprintf_l probes
Karl Williamson [Mon, 20 Nov 2017 05:12:43 +0000 (22:12 -0700)]
Add snprintf_l, vsnprintf_l probes

These are structured so that they only are effective if plain snprintf
and vsnprintf are present and have been sanity tested.

6 years agoMerge pull request #48 from ntyni/master
H.Merijn Brand [Sun, 12 Nov 2017 15:15:45 +0000 (16:15 +0100)]
Merge pull request #48 from ntyni/master

Remove U/perl/i_sysmman.U in preference for the upstream version

6 years agoMerge pull request #41 from perl5-metaconfig/docs
H.Merijn Brand [Sun, 12 Nov 2017 15:00:26 +0000 (16:00 +0100)]
Merge pull request #41 from perl5-metaconfig/docs

README changes

6 years agoMerge branch 'master' into docs 41/head
H.Merijn Brand [Sun, 12 Nov 2017 15:00:17 +0000 (16:00 +0100)]
Merge branch 'master' into docs

6 years agoDivide (a) into beginner and advanced
H.Merijn Brand - Tux [Sun, 12 Nov 2017 14:53:34 +0000 (15:53 +0100)]
Divide (a) into beginner and advanced

and make even more clear it is a different package

6 years agoRemove U/perl/i_sysmman.U in preference for the upstream version 48/head
Niko Tyni [Thu, 9 Nov 2017 21:05:00 +0000 (23:05 +0200)]
Remove U/perl/i_sysmman.U in preference for the upstream version

The only difference in our version is the MAKE dependency
on Hasfield.U, which seems to be useless as $hasfield
is not used.

6 years agoDelete needless U/modified/Protochk.U
Aaron Crane [Sat, 4 Nov 2017 13:59:12 +0000 (13:59 +0000)]
Delete needless U/modified/Protochk.U

My commit 502ff8b5c838bc728b5df0e025905496f3a889c3 created that file in order
to modify its contents, but I should merely have made those changes directly
to U/protos/Protochk.U, since it only exists in the Perl 5 metaconfig repo
(not upstream dist).

This commit copies the changed version back to U/protos/Protochk.U, and
deletes the superfluous copy in U/modified.

6 years agoFix modern metalint nits 10/head
Niko Tyni [Fri, 13 Oct 2017 09:23:19 +0000 (12:23 +0300)]
Fix modern metalint nits

These are detected by metalint since SVN r132 /
 https://github.com/rmanfredi/dist/commit/8160f5523cbbb37197732ea645d02f884e180f3c

with
 "d_statfs3.U": unknown private file 'try.h'.
 "d_statfs4.U": unknown private file 'try.h'.
 "d_union_semun.U": unknown private file 'tryh.h'.
 "dtraceobject.U": unknown private file 'perldtrace.h'.

Even though $rm_try removes try.[cho] anyway, we clean try.h
explicitly to work around the resulting
 "U/perl/d_statfs4.U": unused temporary file 'try.h'.
warnings which seem like a bug in metalint.