summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Remove utils/c2ph and utils/pstructAbigail2017-01-162-1454/+4
| | | | | | | | | | These programs are the same, just behave differently depending on under which name you call it. This is a very old script, originally dating from the perl3 era. It has been deprecated in favour of h2xs for a long time. In Perl 5.26, these utilities will no longer be available.
* Switch most open() calls to three-argument form.John Lightsey2016-12-2324-57/+57
| | | | | | | | | | Switch from two-argument form. Filehandle cloning is still done with the two argument form for backward compatibility. Committer: Get all porting tests to pass. Increment some $VERSIONs. Run: ./perl -Ilib regen/mk_invlists.pl; ./perl -Ilib regen/regcharclass.pl For: RT #130122
* Patch unit tests to explicitly insert "." into @INC when needed.H.Merijn Brand2016-11-113-4/+4
| | | | | require calls now require ./ to be prepended to the file since . is no longer guaranteed to be in @INC.
* [perl #130001] h2xs: avoid infinite loop for enumsHugo van der Sanden2016-11-021-1/+1
| | | | | 'typedef enum x { ... } x' causes h2xs to enter a substitution loop while trying to write the typemap file.
* print the pop @INC to OUT instead of STDOUTJarkko Hietaniemi2016-07-291-1/+1
|
* (perl #127834) remove . from the end of @INC if complex modules are loadedTony Cook2016-07-268-1/+19
| | | | | | | While currently Encode and Storable are know to attempt to load modules not included in the core, updates to other modules may lead to those also attempting to load new modules, so be safe and remove . for those as well.
* perlbug: don't run editor when noninteractiveAaron Crane2016-05-171-2/+4
| | | | This fixes tests on Win32.
* perlbug: wrap overly long linesNiko Tyni2016-05-161-1/+12
| | | | | | | | | | | | | | | | | | | | | | Mail transport agents limit the length of message lines at SMTP time. One observed limit is 1000 characters per line. Mail user agents typically work around these limits by MIME-encoding the message. Since perlbug doesn't do that, it needs to limit the length of its lines manually to make sure bug reports get delivered. The longest lines in perlbug reports normally come from Config::myconfig output, particularly 'config_args', which has been observed to exceed 1000 characters on some configurations, causing report rejection. While less likely, the list of local patches is another potential source of overly long lines. Use Text::Wrap (if available) to wrap the body of the report at an arbitrarily chosen and hopefully safe limit of 900 characters. No indentation or continuation line markers are added, though it would be easy to add those if desired. Attachments and mail headers are not wrapped. Bug-Debian: https://bugs.debian.org/822463
* perlbug: Refactor duplicated file reading codeNiko Tyni2016-05-161-12/+13
| | | | | | _send_message_mailsend() needs to build the message itself rather than calling build_complete_message() like the other backends, but they can still share the file reading code, and so can the 'display report' part.
* perlbug: Allow subjects without whitespace in test modeNiko Tyni2016-05-161-1/+1
| | | | | Passing whitespace in an option through test.pl runperl() doesn't seem to work, so relax the check in test mode (-t) for noninteractive testing.
* perlbug: quit main loop on empty answer / eof in test modeNiko Tyni2016-05-161-1/+3
| | | | | | | | | | This makes it possible to drive perlbug noninteractively without having it go to an infinite loop on end of file. The change has no effect in non-test mode, where the default answer is the empty string. This is groundworks for perlbug unit tests.
* perlbug: Allow noninteractive use in test mode (-t option)Niko Tyni2016-05-161-1/+3
| | | | | | | | | | | This is groundworks for perlbug unit tests. Not all of the interactive questions can be overridden on the command line, so we will have to pipe in commands. Adapt the test mode ("-t"), which used to just override the recipient address, for this rather than inventing one more new option.
* Fix various pod errors.Karl Williamson2016-03-111-68/+68
| | | | Mostly these are too long verbatim lines.
* Integrate podlators 4.05.Craig A. Berry2016-01-303-109/+3
|
* Update podlators to version 4.03Karen Etheridge2016-01-013-3/+109
|
* add "what it does" comment to utils/enc2xs.PLDavid Mitchell2015-03-111-0/+3
| | | | | It's a bit confusing that a core .PL script is copying a cpan/ script to utils/, so document it.
* h2ph: correct handling of hex constants for the preambleTony Cook2015-02-171-1/+18
| | | | | | | | | Previously they were treated as identifiers resulting in code generated like C< &0xFFF >. We also try to prevent compile-time warnings from large hex integers, the user isn't responsible for the generated code, so we delay those warnings to run-time.
* Update Encode to CPAN version 2.70Chris 'BinGOs' Williams2015-02-062-3/+53
| | | | | | | | | | | | | | | | | | | | | | | [DELTA] $Revision: 2.70 $ $Date: 2015/02/05 10:53:00 $ ! Makefile.PL add bin/encguess to EXE_FILES 2.69 2015/02/05 10:35:11 ! bin/encguess Refactored so that * does not depend on non-core module (File::Slurp in particular) * PODified document * -s "encA encB" to -s encA,encB which is more shell-friendly * and more ! MANIFEST + bin/encguess Pulled: Added CLI wrapper for Encode::Guess https://github.com/dankogai/p5-encode/pull/32 ! Unicode/Unicode.pm Pulled: Bump $VERSION in module changed since Encode-2.60 https://github.com/dankogai/p5-encode/pull/31
* remove Module-Build from core perl distributionRicardo Signes2014-05-272-56/+3
|
* Attempt to satisfy CRLF expectations in perlbug on Windows.Craig A. Berry2014-04-101-0/+9
|
* Make perlbug encoding-agnostic in handling prepared reports.Craig A. Berry2014-04-101-6/+2
| | | | | | | | | | | | | | | | | | Guessing the encoding of a report file prepared ahead of time is really, well, too much guesswork, plus there are at least a couple of mistakes in the implementation. And we weren't even trying to guess for reports created on-the-fly in an editor, which is a bit inconsistent. So handle prepared reports the same way as on-the-fly reports and attachments, which means all I/O is done using the :raw layer. This is only "Unicode-aware" in the sense that we're aware there are a lot of encodings out there and we're trying not to mangle them in transit by accidental conversion. We're not doing any explicit character set conversions and we shouldn't assert in the MIME headers that we know what character set we're sending because we don't.
* Stop using $run for anything other than testing compiled tests in Configure.Jess Robinson2014-01-221-1/+1
| | | | When cross-compiling we want to run miniperl etc on the compile host, not the test target
* Make perlbug Unicode-aware.Craig A. Berry2014-01-171-10/+15
| | | | | | | | | | | | | | | | | | Try to do input in whatever the locale wants and output raw in hopes that will best survive mail transport. Except when reading in a patch file, we'll also use raw for input because there may be multiple encodings in the patch, and we'll also use raw for input when reading in the report file that we've written out raw. We attempt to detect the locale encoding using the private and undocumented _get_locale_encoding() function of the deprecated encoding pragma module. But it's what the open pragma does and we protect ourselves by checking that it's available and falling back to an empty layer specification ("<:") if we can't load that function. That should also give us something workable when there is no dynamic loading, such as under miniperl.
* Switch perlbug mail sender on VMS.Craig A. Berry2014-01-171-14/+19
| | | | | | | | | | | The VMS mail utility can't do attachments because it always adds a blank line in front of any headers you add. So use the Send From File utility, which has been documented and supported for any release in the last decade and was latently present before that. It takes the whole message verbatim just like sendmail, but also needs the envelope prepended.
* Add perlbug -p option for attaching patches.Craig A. Berry2014-01-171-14/+92
| | | | | | | | | | | Log files and other text attachments should also be fine as long as they aren't big enough to be rejected by RT. Only text attachments are supported, as other kinds would involve wrestling with myriad MIME types and possibly content transfer encodings. This should be fine for binary patches, though, as git format-patch encodes those in Base85, so the patch file itself is still text.
* do not have perlbug talk about perlthanksRicardo Signes2014-01-011-2/+1
|
* remove the claim that perlthanks gets an autoreplyRicardo Signes2014-01-011-2/+8
|
* PATCH [perl #120901] perlbug.PL - Add to user feedback/docsMartin McGrath2013-12-311-3/+12
|
* Generate utils/Makefile from utils/Makefile.PL, and remove it at clean time.Nicholas Clark2013-07-072-87/+8
| | | | | | | | Add rules to the Win32 Makefiles to call utils/Makefile.PL to generate utils/Makefile, and rules to both them and the *nix Makefile to delete the generated file as part of the cleanup targets. VMS continues to do its own thing, rather than using utils/Makefile.
* Replace utils/Makefile.SH with utils/Makefile.PLNicholas Clark2013-07-071-45/+24
| | | | | | | | | | | | | | | | | | | | | This shares all the existing deficiencies of utils/Makefile.SH, and generates a byte-for-byte identical utils/Makefile, including boilerplate that claims it was generated by utils/Makefile.SH utils/Makefile remains as a file checked into the repository, and is not (yet) deleted, because as-was only *nix platforms could run utils/Makefile.SH to generate utils/Makefile. This messy state of affairs means that if you build with static linking, the checked-out utils/Makefile is modified ('../miniperl' is replaced with '../perl') The next commit will resolve just these bugs. In turn, it seems that the pre-generated utils/Makefile is only used by Win32, as VMS contains rules in descrip_mms.template to build the utilities. Probably the next thing to unpick is the build on VMS, but it seems better to reduce the size of the "problem" in both utils/Makefile.PL and vms/descrip_mms.template by attempting to move the work from them to the extension directories and ExtUtils::MakeMaker.
* Make perlbug look up the list of local patches at run timeNiko Tyni2013-07-021-33/+6
| | | | | | | | Re-parsing patchlevel.h in Perl by perlbug.PL is error prone and apparently unnecessary. The same information is available to perlbug via Config::local_patches(). This fixes [perl #118433].
* h2xs: place for license for META.* filesAlexandr Ciornii2013-06-241-0/+3
|
* h2xs: remove useless compatibility code (VERSION_FROM requires EU::MM from ↵Alexandr Ciornii2013-06-241-4/+3
| | | | perl 5.5)
* h2xs: dependency on XSLoader should be declared even when it is in coreAlexandr Ciornii2013-06-241-1/+1
|
* h2xs: remove indirect object notationAlexandr Ciornii2013-06-241-2/+2
|
* Synchronize h2ph POD text with usage outputPetr Písař2013-06-091-1/+7
|
* typo fix for util scriptDavid Steinbrunner2013-05-241-1/+1
|
* Remove cpan/CPANPLUS and associated utilitiesChris 'BinGOs' Williams2013-05-185-171/+6
|
* libnetcfg.PL: Fix broken pod linkKarl Williamson2013-03-181-1/+1
|
* Make perlbug recommend perlcommunity.pod over UsenetAaron Crane2013-01-111-2/+2
| | | | Suggested by Dave Mitchell.
* add PERL_NO_GET_CONTEXT to xs template in h2xs.PLDaniel Dragan2012-12-051-0/+1
| | | | | | | An XS module not using PERL_NO_GET_CONTEXT is extremely inefficient under threaded Perls. Prevent PERL_NO_GET_CONTEXT-less modules in the future by making it a default. Many XS modules are created with h2xs. Also see this anonymous complaint http://perlmonks.org/?node_id=990732 .
* [perl #20636] Make h2xs skip #define macros with empty rhsAaron Crane2012-09-281-0/+4
| | | | | Otherwise the generated C code uses such macros in expressions, which causes compilation errors because the macro is expanded to an empty token list.
* Correct obvious typos in acknowledgements listDominic Hargreaves2012-09-101-3/+3
|
* we no longer have in-file changelogs, since we have a version control systemJesse Vincent2012-05-011-52/+0
|
* || instead of "or" (perl#78708)Alexandr Ciornii2011-12-051-1/+1
|
* Update IO-Compress to CPAN version 2.044Chris 'BinGOs' Williams2011-12-043-6/+61
| | | | | | | | | | | | | | | | | [DELTA] 2.044 2 December 2011 * Moved FAQ.pod under the lib directory so it can get installed * Added bin/zipdetails * IO::Compress::Zip - In one-shot mode enable Zip64 mode if the input file/buffer >= 0xFFFFFFFF bytes. * IO::Compress::FAQ - Updates
* [RT #36079] Convert ` to '.jkeenan2011-11-224-37/+37
|
* $Config{locincpath} might be emptyH.Merijn Brand2011-11-151-1/+1
| | | | This causes h2xs.t to fail on systems where that is the case
* don't redefine macrosubs in .phLukas Mai2011-09-171-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | h2ph generates code of the form unless(defined(&FOO)) { sub FOO () {42;} } for a C macro like '#define FOO 42'. The problem with that: 'sub' happens at compile time, 'unless' at runtime. So the sub is unconditionally defined first, then the unless runs with an empty body. This behavior was introduced in commit 3d271ce79d39df56470393916b3d33ff26db2c8b (the syntax errors there were fixed in commit 4a8e146e38ec2045f1f817a7cb578e1b1f80f39f). There are already two code paths there, one for indentation level > 0 (eval), the other for toplevel definitions (straight sub). This patch unifies them to always use 'eval' / runtime definitions. This change shortens the code and makes the conditions actually work. It moves the check for '#define FOO FOO' further up because I don't see why it only needs to be done if indentation == 0. I changed the comparison to use a whitespace-agnostic regex because '" \&$name" eq $new' looks too brittle (the redundant \ doesn't help).
* Make pod2html a regular script without substitutionsFlorian Ragwitz2011-08-273-6/+63
| | | | | | This will make the CPAN dist easier. For the perl core, we still need substitutions to get the right she-bang as we don't go through EU::MM to fix it for us. For that, we add utils/pod2html.PL.