Skip Menu |

This queue is for tickets about the Devel-PatchPerl CPAN distribution.

Report information
The Basics
Id: 114452
Status: resolved
Priority: 0/
Queue: Devel-PatchPerl

People
Owner: Nobody in particular
Requestors: petercmartini [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.00



Subject: Please add a means to run _patch_patchlevel even if under .git control
Date: Tue, 17 May 2016 20:36:00 -0500
To: bug-Devel-PatchPerl [...] rt.cpan.org
From: Peter Martini <petercmartini [...] gmail.com>
In 1.42, a `return if -d '.git'` was added to Devel::PatchPerl. Can this be made optional? My workflow is: Download a specific version's tarball; Check it into a throwaway get to have all files checkpointed Run patchperl to fix up any issues Run git diff to generate a patch Use that patch and a fetch of the tarball from an upstream source as a distribution mechanism, instead of distributing the patched tarball directly.
On Tue May 17 21:36:10 2016, petercmartini@gmail.com wrote: Show quoted text
> In 1.42, a > > `return if -d '.git'` > > was added to Devel::PatchPerl. > > Can this be made optional? > > My workflow is: > > Download a specific version's tarball; > Check it into a throwaway get to have all files checkpointed > Run patchperl to fix up any issues > Run git diff to generate a patch > Use that patch and a fetch of the tarball from an upstream source as a > distribution mechanism, instead of distributing the patched tarball > directly.
patchperl and Devel::PatchPerl now have ways to be able to update patchlevel.h when in a git repository. patchperl has a command line switch --patchlevel, which will update patchlevel.h even in a git repository One may also set the PERL5_PATCHPERL_PATCHLEVEL env var to have the same effect as --patchlevel Many thanks.