Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 23545
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: albie [...] alfarrabio.di.uminho.pt
Cc:
AdminCc:

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



Subject: DISTVNAME not working?
Hi I was trying to use in the MakeMaker configuration hash: 'DISTVNAME' => '$(top_distdir)/$(PACKAGE)-$(VERSION)/NAT', and MY::postamble with: VERSION = @VERSION@ PACKAGE = @PACKAGE@ top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)/NAT but this seems not to work. I can't find anywhere under Makefile the DISTVNAME definition (weird). I solved this adding a line on postamble: DISTVNAME=$(top_distdir)/$(PACKAGE)-$(VERSION)/NAT Cheers ambs
Subject: Re: [rt.cpan.org #23545] DISTVNAME not working?
Date: Thu, 23 Nov 2006 05:31:16 +0100
To: bug-ExtUtils-MakeMaker [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Wed, 22 Nov 2006 07:24:30 -0500, "Alberto Manuel Brandao Simoes via RT" <bug-ExtUtils-MakeMaker@rt.cpan.org> said:
Show quoted text
> Wed Nov 22 07:24:28 2006: Request 23545 was acted upon. > Transaction: Ticket created by albie@alfarrabio.di.uminho.pt > Queue: ExtUtils-MakeMaker > Subject: DISTVNAME not working? > Broken in: 6.31 > Severity: Important > Owner: Nobody > Requestors: albie@alfarrabio.di.uminho.pt > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=23545 >
Show quoted text
> Hi
Show quoted text
> I was trying to use in the MakeMaker configuration hash:
Show quoted text
> 'DISTVNAME' => '$(top_distdir)/$(PACKAGE)-$(VERSION)/NAT',
Show quoted text
> and MY::postamble with:
Show quoted text
> VERSION = @VERSION@ > PACKAGE = @PACKAGE@
Show quoted text
> top_distdir = .. > distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)/NAT
Show quoted text
> but this seems not to work. I can't find anywhere under Makefile the > DISTVNAME definition (weird). I solved this adding a line on postamble:
Show quoted text
> DISTVNAME=$(top_distdir)/$(PACKAGE)-$(VERSION)/NAT
This is not a fix to the real problem. I find DISTVNAME under # --- MakeMaker dist section: Maybe you're doing something that confuses the dist section? -- andreas
Subject: Re: [rt.cpan.org #23545] DISTVNAME not working?
Date: Thu, 23 Nov 2006 08:36:34 +0000
To: bug-ExtUtils-MakeMaker [...] rt.cpan.org
From: Alberto Manuel Brandão Simões <albie [...] alfarrabio.di.uminho.pt>
andreas.koenig.gmwojprw@franz.ak.mind.de via RT wrote: Show quoted text
Show quoted text
> # --- MakeMaker dist section: > > > Maybe you're doing something that confuses the dist section? >
Probably :-) I am trying to include the module under a autoconf tools C package. Thus, I want to override the dist section. So, I am using 'SKIP' => [ qw/dist dist_basics dist_core dist_dir dist_test dist_ci/ ], At least I *need* to skip the 'dist' rule. But I was expecting that this variable would be defined globally and not in any of these rules. Cheers, ambs -- Alberto Simões - Departamento de Informática - Universidade do Minho Campus de Gualtar - 4710-057 Braga - Portugal "Beware of bugs in the above code; I have only proved it correct, not tried it." --- Donald Knuth
On Thu Nov 23 03:36:46 2006, albie@alfarrabio.di.uminho.pt wrote: Show quoted text
> > Maybe you're doing something that confuses the dist section? > >
> > Probably :-) > I am trying to include the module under a autoconf tools C package. > Thus, I want to override the dist section. > So, I am using > > 'SKIP' => [ qw/dist > dist_basics > dist_core > dist_dir > dist_test > dist_ci/ ], > > At least I *need* to skip the 'dist' rule. But I was expecting that this > variable would be defined globally and not in any of these rules.
That would do it. Due to MakeMaker's lack of a method naming convention, the dist method outputs things like the DISTVNAME variables and not the dist target. Do you really need to skip all that or just override it? As "dist" does nothing but output variables you should be able to leave it alone.
From: ambs [...] cpan.org
Hi, Schwern. Not bad, one year to answer to a ticket. Hehehe. Kidding :) I can't remember how I did it, but I solved my problem. Can you please close this ticket? Thank you and happy 2008! Alberto