Skip Menu |

This queue is for tickets about the DBIx-VersionedDDL CPAN distribution.

Report information
The Basics
Id: 77461
Status: resolved
Priority: 0/
Queue: DBIx-VersionedDDL

People
Owner: Nobody in particular
Requestors: DROLSKY [...] cpan.org
Cc:
AdminCc:

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



Subject: Tests run a script without specifying which perl to use
The tests seem to run the migrate_schema script, which has a "#!/usr/bin/perl" line. This isn't the perl I was running the tests with! The tests need to run "$^X path/to/migrate_schema".
On Sat May 26 23:04:25 2012, DROLSKY wrote: Show quoted text
> The tests seem to run the migrate_schema script, which has a > "#!/usr/bin/perl" line. This isn't the perl I was running the tests with! > > The tests need to run "$^X path/to/migrate_schema".
Hi I don't understand. The perl in your path explicitly calls this script during testing. The installation process alters the shebang line when moving it to its final destination. To test this out, I compiled another copy of perl from source and this was used rather the the OS default. Can you tell me what your error is and how I can replicate it? Thanks
Subject: Re: [rt.cpan.org #77461] Tests run a script without specifying which perl to use
Date: Tue, 29 May 2012 14:43:16 -0500 (CDT)
To: Dan Horne via RT <bug-DBIx-VersionedDDL [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Tue, 29 May 2012, Dan Horne via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=77461 > > > On Sat May 26 23:04:25 2012, DROLSKY wrote:
>> The tests seem to run the migrate_schema script, which has a >> "#!/usr/bin/perl" line. This isn't the perl I was running the tests with! >> >> The tests need to run "$^X path/to/migrate_schema".
> > Hi > > I don't understand. The perl in your path explicitly calls this script > during testing. The installation process alters the shebang line when > moving it to its final destination. To test this out, I compiled another > copy of perl from source and this was used rather the the OS default. > Can you tell me what your error is and how I can replicate it?
Compile a new Perl (doesn't matter what version). Put that Perl in your path. Don't install the prereqs for your distro. Then try to run your tests with a _different_ Perl that _is not_ in your path. The tests will try to run the migrate_schema script. It will find the Perl in your path, not the Perl you're running with. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
Hi I'm still lost. Why would you want to try installing the distro without installing the prereqs? On Tue May 29 15:43:31 2012, autarch@urth.org wrote: Show quoted text
> On Tue, 29 May 2012, Dan Horne via RT wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=77461 > > > > > On Sat May 26 23:04:25 2012, DROLSKY wrote:
> >> The tests seem to run the migrate_schema script, which has a > >> "#!/usr/bin/perl" line. This isn't the perl I was running the tests
with! Show quoted text
> >> > >> The tests need to run "$^X path/to/migrate_schema".
> > > > Hi > > > > I don't understand. The perl in your path explicitly calls this script > > during testing. The installation process alters the shebang line when > > moving it to its final destination. To test this out, I compiled another > > copy of perl from source and this was used rather the the OS default. > > Can you tell me what your error is and how I can replicate it?
> > Compile a new Perl (doesn't matter what version). Put that Perl in your > path. Don't install the prereqs for your distro. > > Then try to run your tests with a _different_ Perl that _is not_ in your > path. The tests will try to run the migrate_schema script. It will find > the Perl in your path, not the Perl you're running with. > > > -dave > > /*============================================================ > http://VegGuide.org http://blog.urth.org > Your guide to all that's veg House Absolute(ly Pointless) > ============================================================*/
On Sat Nov 17 06:17:28 2012, DHORNE wrote: Show quoted text
> Hi > > I'm still lost. Why would you want to try installing the distro without > installing the prereqs?
The issue is about which Perl is called, not whether prereqs are installed. All you need to do is use $^X instead of assuming that the first "perl" in the path is the Perl being used to run the tests. This is simple stuff.
Subject: Re: [rt.cpan.org #77461] Tests run a script without specifying which perl to use
Date: Sun, 18 Nov 2012 17:30:41 +1300
To: bug-DBIx-VersionedDDL [...] rt.cpan.org
From: Dan Horne <dan.horne [...] redbone.co.nz>
On 18 November 2012 03:50, Dave Rolsky via RT < bug-DBIx-VersionedDDL@rt.cpan.org> wrote: Show quoted text
> Queue: DBIx-VersionedDDL > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=77461 > > > On Sat Nov 17 06:17:28 2012, DHORNE wrote:
> > Hi > > > > I'm still lost. Why would you want to try installing the distro without > > installing the prereqs?
> > The issue is about which Perl is called, not whether prereqs are > installed. All you need to do is use $^X instead of assuming that the > first "perl" in the path is the Perl being used to run the tests.
Sorry - I get you now.This is what I've done in later versions that haven't been released. Show quoted text
> This is > simple stuff. > > I apologise for not understanding what you were getting at - I do now, but
that last bit of public condescension was uncalled for.
CC: DROLSKY [...] cpan.org
Subject: Re: [rt.cpan.org #77461] Tests run a script without specifying which perl to use
Date: Sat, 17 Nov 2012 23:03:04 -0600 (CST)
To: "dan.horne [...] redbone.co.nz via RT" <bug-DBIx-VersionedDDL [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Sat, 17 Nov 2012, dan.horne@redbone.co.nz via RT wrote: Show quoted text
>> This is >> simple stuff. >> >> I apologise for not understanding what you were getting at - I do now, but
> that last bit of public condescension was uncalled for.
I apologize. I wasn't trying to be condescending. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
Fix applied in 0.17