Comment 7 for bug 1308853

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

(1) Lack of the link URL is not caused by these error messages in hardinfo's output. Neither pastebinit nor clipit care what text you provide them as input. See whether something as simple as

  date |pastebinit |clipit -c

works for you.

(2) The bug generating the unwanted output "sh: 0: -c requires an argument" is in the source file arch/linux/common/battery.h in the function __scan_battery_apcupsd .

Since Ubuntu bugs generally don't care whether you are using an APC UPS or not, one workaround is to comment out the call to that function on line 283 of the file and rebuild the hardinfo package. My suspicion is that someething bad is happening the code around line 58 to 60 of the file, so it is trying to popen apcaccess when it does not exist, and the shell used by popen is then complaining that you didn't give it a command to execute.

As further confirmation, if you install apcupsd but dont bother configuraing it, and then run hardinfo -ram devices.so again, you get a different error about apcupsd.

(3) The error earlier in the output about gnome-about is because gnome-about is not installed... and the code dealing with that is in arch/linux/common/os.h in function detect_desktop_environment. I see that code uses GNOME_DESKTOP_SESSION_ID which on my Ubuntu 14.04 machine is currently set to "this-is-deprecated". Around line 95 or so.

(4) The error about libc.so.6 is because that file is no longer at /lib/libc.so.6 due to multiarch, it is now at /lib/x86_64-linux-gnu/libc.so.6 or similar. So the code at line 55 or so of arch/linux/common/os.h in function get_libc_version is now in need of rework.

I don't have time to dive into this and provide a real fix, I'm afaid, but that should be a good start for anyone with more available time than I have to investigate these errors further.

HOWEVER, note carefully that these hardinfo issues are *not* in themselves preventing pastebinit or clipit from generating hardware profiles on a pastebin site. See http://pastebin.com/UwR4cWkZ which I just created with the Ubuntu 14.04 hardinfo.

Whatever is breaking pastebin for phillw is some other issue entirely, not a hardinfo problem. Testing with a different text-generating program at the start of the pipeline, such as date, or even ls, will help to confirm this.

Jonathan