<internal:lib/rubygems/defaults>:24: warning: statement not reached

Bug #919713 reported by Hadmut Danisch
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ruby1.9.1 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

ruby1.9.1 has two minor bugs which cause nasty and annoying error messages when in warning mode:

% ruby1.9.1 -w /dev/null
<internal:lib/rubygems/defaults>:24: warning: statement not reached
<internal:lib/rubygems/defaults>:76: warning: statement not reached

which is annoying and breaks functionality (e.g. causes programs like cron to send error messages even if there's no error.)

This problem is not contained in upstream ruby, but was introduced by the debian maintainers with the patch

debian/patches/20100829-rubygems_default_dir.diff

(The inserted a return statement at the beginning of two functions without removing the remaining statements.)

However, the problem has been fixed some time ago in the debian git repository. The patch now comments the old statements out.

Please pull that updated patch from debian into the ubuntu package.

regards

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ruby1.9.1 1.9.2.290-2
ProcVersionSignature: Ubuntu 3.0.0-15.25-generic 3.0.13
Uname: Linux 3.0.0-15-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Sat Jan 21 17:12:13 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
SourcePackage: ruby1.9.1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ruby1.9.1 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.