Help!

dh-make-perl error: Use of uninitialized value in substitu..

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Perl RSS
Next:  by-author vs. by-module URLs in debian/watch  
Author Message
Jeremiah Foster
External


Since: Jul 19, 2006
Posts: 30



PostPosted: Sun Aug 05, 2007 11:30 pm    Post subject: dh-make-perl error: Use of uninitialized value in substitution (s///)
Archived from groups: linux>debian>maint>perl (more info?)

I am trying to adopt libcdk-perl. When trying to build the package
with dh-make-perl I get the error that dh-make-perl "Cannot find a
description for the package: use the --desc switch"

However I am using the --desc switch like this: dh-make-perl -e
jeremiah.DeleteThis@jeremiahfoster.com --desc "Perl interface to Curses
Development Library"

dh-make-perl then repeats the previous message, along with this:
Found: Cdk 4.09010 (libcdk-perl arch=all)
Use of uninitialized value in substitution (s///) at /usr/bin/dh-make-
perl line 598.
[ . . . ]
Use of uninitialized value in substitution (s///) at /usr/bin/dh-make-
perl line 598.

Line 598 of dh-make-perl (the latest version, I pulled it from
subversion, but I received this error with the version I downloaded
with apt-get as well) reads like this:

# Replace linefeeds (not followed by a space) in $desc with
spaces
$desc =~ s/\n(?=\S)/ /gs;

Does anyone have any suggestions? Is this a bug I should file?

Thanks,

Jeremiah


--
To UNSUBSCRIBE, email to debian-perl-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Jeremiah Foster
External


Since: Jul 19, 2006
Posts: 30



PostPosted: Mon Aug 06, 2007 11:00 am    Post subject: Re: dh-make-perl error: Use of uninitialized value in substitution (s///) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 6, 2007, at 8:20 AM, Damyan Ivanov wrote:

> -=| Jeremiah Foster, 6.08.2007 00:29 |=-
>> I am trying to adopt libcdk-perl. When trying to build the package
>> with
>> dh-make-perl I get the error that dh-make-perl "Cannot find a
>> description for the package: use the --desc switch"
>
> Since you are adopting, isn't it better to base your package on the
> one
> already present in the archive? Re-creating it from scratch looks like
> double-work to me. Of course, there may be reasons for this too.

I am sure it is better to use the already present package. I used dh-
make-perl for two reasons:

1. I get an error with uupdate[0] (I assume this is the right way to
build already archived packages?)
2. I want to learn more about dh-make-perl

I most certainly do not want to make more work for you, the only
reason it turned out this way is my inexperience. Hopefully I will
not make this error again. Smile

Jeremiah

[0] uupdate ../libcdk-perl_4.9.10.orig.tar.gz
parsechangelog/debian: error: found start of entry where expected
more change data or trailer, at file debian/changelog line 6
uupdate: unable to determine source package


--
To UNSUBSCRIBE, email to debian-perl-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
gregor herrmann
External


Since: Jan 07, 2005
Posts: 327



PostPosted: Mon Aug 06, 2007 11:00 am    Post subject: Re: dh-make-perl error: Use of uninitialized value in substitution (s///) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 06 Aug 2007 10:55:24 +0200, Jeremiah Foster wrote:

> 1. I get an error with uupdate[0] (I assume this is the right way to build
> already archived packages?)

> [0] uupdate ../libcdk-perl_4.9.10.orig.tar.gz
> parsechangelog/debian: error: found start of entry where expected more
> change data or trailer, at file debian/changelog line 6
> uupdate: unable to determine source package

Now it would be interesting to see what is in debian/changelog at
line 6 Smile

Cheers,
gregor

--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : debian: the universal operating system - http://www.debian.org/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`- "Another world, another day, another dawn. "


--
To UNSUBSCRIBE, email to debian-perl-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Gunnar Wolf
External


Since: Nov 12, 2004
Posts: 200



PostPosted: Tue Aug 07, 2007 8:20 pm    Post subject: Re: dh-make-perl error: Use of uninitialized value in substitution (s///) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

Jeremiah Foster dijo [Mon, Aug 06, 2007 at 10:55:24AM +0200]:
> >Since you are adopting, isn't it better to base your package on the one
> >already present in the archive? Re-creating it from scratch looks like
> >double-work to me. Of course, there may be reasons for this too.
>
> I am sure it is better to use the already present package. I used dh-make-perl for two reasons:

Yes, I'm basically happy at dh-make-perl's quality - Still, learn as
much as possible from the previous packaging. If anything, you should
learn the mistakes made by the previous maintainer! Wink

> 1. I get an error with uupdate[0] (I assume this is the right
> way to build already archived packages?)

Ok, did you investigate on what caused this error? Smile

> 2. I want to learn more about dh-make-perl

Great! Please take a dive in its code. It's ugly here and there, but
some of us have been spending some time in de-uglifying it. And it is
a very useful tool!

> [0] uupdate ../libcdk-perl_4.9.10.orig.tar.gz
> parsechangelog/debian: error: found start of entry where expected more change data or trailer, at file debian/changelog line 6
> uupdate: unable to determine source package

Ok, this clearly means the old changelog is somehow
broken. But... What are you basing your work on? Here it just worked
fine:

# First, just move the orig.tar.gz to a little bit higher name...
$ mv ../libcdk-perl_4.9.10{,.0.0.1}.orig.tar.gz
# Now update to it...
$ uupdate -u ../libcdk-perl_4.9.10.0.0.1.orig.tar.gz
New Release will be 4.9.10.0.0.1-1.
-- Untarring the new sourcecode archive ../libcdk-perl_4.9.10.0.0.1.orig.tar.gz
Success! The diffs from version 4.9.10-1 worked fine.
Remember: Your current directory is the OLD sourcearchive!
Do a "cd ../libcdk-perl-4.9.10.0.0.1" to see the new package

In any case... Either if you repackage from scratch or if you fix the
old packaging, you won't save yourself from the work of finding the
problem: You should not discard history. At least debian/changelog
should be preserved.

--
Gunnar Wolf - gwolf RemoveThis @gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF


--
To UNSUBSCRIBE, email to debian-perl-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Jeremiah Foster
External


Since: Jul 19, 2006
Posts: 30



PostPosted: Wed Aug 08, 2007 12:10 pm    Post subject: Re: dh-make-perl error: Use of uninitialized value in substitution (s///) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 7, 2007, at 6:33 PM, Gunnar Wolf wrote:
>
>> 1. I get an error with uupdate[0]
>
> Ok, did you investigate on what caused this error? Smile

I did, and with Gregor's help I found that I had incorrectly written
a new stanza in debian/changelog. Gregor pointed out the right format
and I used that and the error disappeared.

Jeremiah


--
To UNSUBSCRIBE, email to debian-perl-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Perl All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum