Package: devscripts
Version: 2.10.48
Severity: minor
File: /usr/bin/getbuildlog
Tags: patch

Hi,

getbuildlog, when called with a version argument of "last", will run an
embedded perl call; this perl snippet uses Devscripts/Versort.pm, but
without properly setting the @INC path; as such, on my machine:
 $ getbuildlog protobuf last
 Can't locate Devscripts/Versort.pm in @INC (@INC contains: /etc/perl
 /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
 /usr/local/lib/site_perl .) at -e line 2.
 BEGIN failed--compilation aborted at -e line 2.

A simple one-line patch is attached that fixes this; the use lib line
was copied from other perl devscripts.

regards,
iustin

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29.1-teal0 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev                      1.14.26    Debian package development tools
ii  libc6                         2.9-7      GNU C Library: Shared libraries
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 

Versions of packages devscripts recommends:
ii  at                 3.1.10.2              Delayed job execution and batch pr
ii  bsd-mailx [mailx]  8.1.2-0.20081101cvs-2 A simple mail user agent
ii  curl               7.18.2-8.1            Get a file from an HTTP, HTTPS or 
ii  cvs                1:1.12.13-12          Concurrent Versions System
ii  dctrl-tools        2.13.1                Command-line tools to process Debi
ii  debian-keyring     2009.04.04            GnuPG (and obsolete PGP) keys of D
ii  debian-maintainers 1.55                  GPG keys of Debian maintainers
ii  dput               0.9.4                 Debian package upload tool
ii  dupload            2.6.6                 utility to upload Debian packages
ii  equivs             2.0.7-0.1             Circumvent Debian package dependen
ii  fakeroot           1.12.2                Gives a fake root environment
ii  galeon [www-browse 2.0.6-2.1+b1          GNOME web browser for advanced use
ii  git-core           1:1.6.2.2-1           fast, scalable, distributed revisi
ii  gnupg              1.4.9-4               GNU privacy guard - a free PGP rep
ii  iceweasel [www-bro 3.0.7-1               lightweight web browser based on M
ii  konqueror [www-bro 4:3.5.10.dfsg.1-2     KDE's advanced file manager, web b
ii  libauthen-sasl-per 2.12-1                Authen::SASL - SASL Authentication
ii  libcrypt-ssleay-pe 0.57-1+b1             Support for https protocol in LWP
ii  libparse-debcontro 2.005-2               Easy OO parsing of Debian control-
ii  libsoap-lite-perl  0.710.08-2            Client and server side SOAP implem
ii  libterm-size-perl  0.2-4+b1              Perl extension for retrieving term
ii  libtimedate-perl   1.1600-9              Time and date functions for Perl
ii  liburi-perl        1.37+dfsg-1           Manipulates and accesses URI strin
ii  libwww-perl        5.825-1               WWW client/server library for Perl
ii  libyaml-syck-perl  1.05-1                Fast, lightweight YAML loader and 
ii  links [www-browser 2.2-1+b1              Web browser running in text mode
ii  lintian            2.2.9                 Debian package checker
ii  lsb-release        3.2-22                Linux Standard Base version report
ii  lynx-cur [www-brow 2.8.7pre1-1           Text-mode WWW Browser with NLS sup
ii  mailx              1:20081101-2          Transitional package for mailx ren
ii  man-db             2.5.5-1               on-line manual pager
ii  mercurial          1.2-1                 scalable distributed version contr
ii  midori [www-browse 0.1.4-1               fast, lightweight graphical web br
ii  openssh-client [ss 1:5.1p1-5             secure shell client, an rlogin/rsh
ii  patch              2.5.9-5               Apply a diff file to an original
ii  patchutils         0.3.1-1               Utilities to work with patches
ii  strace             4.5.18-1              A system call tracer
ii  subversion         1.5.6dfsg-1           Advanced version control system
ii  unzip              5.52-12               De-archiver for .zip files
ii  w3m [www-browser]  0.5.2-2+b1            WWW browsable pager with excellent
ii  wdiff              0.5-18                Compares two files word by word
ii  wget               1.11.4-2              retrieves files from the web
ii  xemacs21-mule [www 21.4.22-1             highly customizable text editor --

Versions of packages devscripts suggests:
ii  build-essential               11.4       Informational list of build-essent
ii  cvs-buildpackage              5.23       A set of Debian package scripts fo
pn  devscripts-el                 <none>     (no description available)
ii  gnuplot                       4.2.5-1    A command-line driven interactive 
pn  libfile-desktopentry-perl     <none>     (no description available)
pn  libnet-smtp-ssl-perl          <none>     (no description available)
ii  mutt                          1.5.19-2   text-based mailreader supporting M
ii  svn-buildpackage              0.6.23     helper programs to maintain Debian

-- no debconf information
--- scripts/getbuildlog.sh.old	2008-10-28 00:18:36.000000000 +0100
+++ scripts/getbuildlog.sh	2009-04-14 07:14:06.477749888 +0200
@@ -107,6 +107,7 @@
 		ver=${match##*ver=}
 		echo ${ver%%&*}
 	    done | perl -e '
+		use lib "/usr/share/devscripts";
 		use Devscripts::Versort;
 		while (<>) { push @versions, [$_]; }
 		@versions = Devscripts::Versort::versort(@versions);

Attachment: signature.asc
Description: Digital signature

Reply via email to