Your message dated Sun, 24 Jun 2012 13:06:16 +0200
with message-id <[email protected]>
and subject line LSB bug fixed in recent upload
has caused the Debian Bug report #675416,
regarding facter error `No LSB modules are available.`
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
675416: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675416
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: facter
Version: 1.6.9-1~bpo60+1
Severity: important


The changes to facter (515fd65 (#11511) Split lsb facts into multiple
files)
seem to have broken things if you have lsb_release installed, but the
lsb-core
package is not installed.

An error `No LSB modules are available.` is sent to stderr each time facter
is run.

Specifically the error seems to come from line 16 in
/usr/lib/ruby/vendor_ruby/facter/lsbrelease.rb
which runs the command `lsb_release -v -s`.

A really simple fix might be something like below, but perhaps some kind of
better error
handling is appropriate here.

--- lsbrelease.rb.orig 2012-05-31 17:30:52.000000000 -0700
+++ lsbrelease.rb 2012-05-31 17:31:07.000000000 -0700
@@ -13,6 +13,6 @@
 Facter.add(:lsbrelease) do
   confine :kernel => [ :linux, :"gnu/kfreebsd" ]
   setcode do
-    Facter::Util::Resolution.exec('lsb_release -v -s')
+    Facter::Util::Resolution.exec('lsb_release -v -s 2>/dev/null')
   end
 end



-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
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 facter depends on:
ii  bind9-host [host 1:9.7.3.dfsg-1~squeeze4 Version of 'host' bundled with
BIN
ii  net-tools        1.60-23                 The NET-3 networking toolkit
ii  ruby             4.5                     An interpreter of
object-oriented
ii  ruby-json        1.6.1-1~bpo60+1         JSON library for Ruby

Versions of packages facter recommends:
ii  dmidecode                     2.9-1.2    Dump Desktop Management
Interface
ii  pciutils                      1:3.1.7-6  Linux PCI Utilities

facter suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 1.6.9-2

This was fixed in debian release 1.6.9-2, and fixed upstream in 1.6.10.
When 1.6.10 ends up in backports, this will be closed there as well.

Thanks for reporting the bug.

-- 
Stig Sandbeck Mathisen

Attachment: pgpt4QrVGx0Zt.pgp
Description: PGP signature


--- End Message ---

Reply via email to