pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/49980: fix uninitialized value errr pkgtools/url2pkg-2.22
>Number: 49980
>Category: pkg
>Synopsis: fix uninitialized value errr pkgtools/url2pkg-2.22
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jun 16 16:45:00 +0000 2015
>Originator: ISIHARA Takanori
>Release: pkgsrc-current 2015/6/16
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD ishitPc14.home 7.0_BETA NetBSD 7.0_BETA (ISHITPC14) #9: Sun Jun 7 11:04:51 JST 2015 sysbuild%ishitPc14.home@localhost:/opt/sysbuild/netbsd-7/obj/amd64/sys/arch/amd64/compile/ISHITPC14 amd64
>Description:
I fixed uninitialized value error.
>How-To-Repeat:
run url2pkg.
for example:
% url2pkg http://jnovy.fedorapeople.org/pxz/pxz-4.999.9beta.20091201git.tar.xz 2>aaaa
<snip>
% head -3 aaaa
Use of uninitialized value $gh_project in string ne at /usr/pkg/bin/url2pkg line 365, <SITES> line 331.
Use of uninitialized value $gh_release in string ne at /usr/pkg/bin/url2pkg line 365, <SITES> line 331.
Use of uninitialized value $dist_subdir in string ne at /usr/pkg/bin/url2pkg line 365, <SITES> line 331.
>Fix:
apply patch, please.
Index: url2pkg.pl
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/url2pkg/files/url2pkg.pl,v
retrieving revision 1.28
diff -u -u -r1.28 url2pkg.pl
--- url2pkg.pl 7 Apr 2015 00:10:33 -0000 1.28
+++ url2pkg.pl 16 Jun 2015 16:19:48 -0000
@@ -333,6 +333,8 @@
} else {
die("$0: ERROR: Invalid GitHub URL: ${url}\n");
}
+ } else {
+ $gh_project = ""; $gh_release = ""; $dist_subdir = "";
}
}
Home |
Main Index |
Thread Index |
Old Index