[Bug 1886281] [NEW] cpan missing dependency on make

2020-07-04 Thread Durk van Veen
Public bug reported:

$ lsb_release -rd
Description:Ubuntu 20.04 LTS
Release:20.04
$ apt-cache policy perl
perl:
  Installed: 5.30.0-9build1
  Candidate: 5.30.0-9build1
  Version table:
 *** 5.30.0-9build1 500
500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
$

On a fresh install of Ubuntu 20.04 liveserver, CPAN is installed as part
of Perl, but not "make" which is needed to make CPAN install anything:

$ sudo cpan install Capture::Tiny
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/root/.cpan/Metadata'
  Database was generated on Sat, 04 Jul 2020 15:29:03 GMT
Running install for module 'Capture::Tiny'
Checksum for 
/root/.cpan/sources/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Capture::Tiny
Writing MYMETA.yml and MYMETA.json
  DAGOLDEN/Capture-Tiny-0.48.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz
  DAGOLDEN/Capture-Tiny-0.48.tar.gz
  make -- NOT OK
  No such file or directory
$ 

After manually installing make:

$ sudo apt install make
...
$ sudo cpan install Capture::Tiny
...
  DAGOLDEN/Capture-Tiny-0.48.tar.gz
  make install  -- OK
$

** Affects: perl (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886281

Title:
  cpan missing dependency on make

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1886281/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876135] Re: zfs_arc plugin skips hits/misses in collectd5.9.2g on 20.04

2020-05-02 Thread Durk van Veen
** Summary changed:

- ARC Hit Ratio does not work in collectd zfs_arc
+ zfs_arc plugin skips hits/misses in collectd5.9.2g on 20.04

** Description changed:

  $ lsb_release -rd
  Description:  Ubuntu 20.04 LTS
  Release:  20.04
  $ dpkg --list | grep collectd
  ii  collectd-core   5.9.2.g-1ubuntu5  
amd64statistics collection and monitoring daemon (core system)
  
- 
- The zfs_arc plug-in for collectd is broken in 5.9.2g for the "ARC Hit Ratio" 
graph: the graph does not populate with any information at all (all data points 
come back -nan).
+ The zfs_arc plug-in for collectd is broken in 5.9.2g for the "hits" and
+ "misses" lines of /proc/spl/kstat/zfs/arcstats. Due to a bug in
+ zfs_arc.c, the first 2 lines of this file are skipped twice, resulting
+ in 4 lines being skipped.
  
  I was able to confirm that just by taking /usr/lib/collectd/zfs_arc.so
  from a working 18.04 installation and dropping it on the 20.04 box, the
  problem could be resolved.
  
  Then I rebuilt the package from source with a single hunk of code
  removed from zfs_arc.c that was not present in 5.9.2, introduced in
  5.9.2g, and removed again in upstream debian 5.10.0. This fixes the
- issue:
+ issue.
+ 
+ I also traced it to the collectd upstream and there the change was made
+ as part of commit 0cc3044f with a commit message that specifically
+ describes the problem.
+ 
  
  --- collectd.5.9.2g/zfs_arc.c 2020-04-29 23:19:26.307645579 -0700
  +++ collectd.5.10.0/zfs_arc.c 2020-04-29 23:20:19.658663146 -0700
  @@ -231,23 +231,6 @@
-  return -1;
-}
-  
+  return -1;
+    }
+ 
  -  // Ignore the first two lines because they contain information about
  -  // the rest of the file.
  -  // See kstat_seq_show_headers module/spl/spl-kstat.c of the spl kernel
  -  // module.
  -  if (fgets(buffer, sizeof(buffer), fh) == NULL) {
  -ERROR("zfs_arc plugin: \"%s\" does not contain a single line.",
  -  ZOL_ARCSTATS_FILE);
  -fclose(fh);
  -return (-1);
  -  }
  -  if (fgets(buffer, sizeof(buffer), fh) == NULL) {
  -ERROR("zfs_arc plugin: \"%s\" does not contain at least two lines.",
  -  ZOL_ARCSTATS_FILE);
  -fclose(fh);
  -return (-1);
  -  }
  -
-while (fgets(buffer, sizeof(buffer), fh) != NULL) {
-  char *fields[3];
-  value_t v;
+    while (fgets(buffer, sizeof(buffer), fh) != NULL) {
+  char *fields[3];
+  value_t v;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876135

Title:
  zfs_arc plugin skips hits/misses in collectd5.9.2g on 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1876135/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876135] [NEW] ARC Hit Ratio does not work in collectd zfs_arc

2020-04-30 Thread Durk van Veen
Public bug reported:

$ lsb_release -rd
Description:Ubuntu 20.04 LTS
Release:20.04
$ dpkg --list | grep collectd
ii  collectd-core   5.9.2.g-1ubuntu5  
amd64statistics collection and monitoring daemon (core system)


The zfs_arc plug-in for collectd is broken in 5.9.2g for the "ARC Hit Ratio" 
graph: the graph does not populate with any information at all (all data points 
come back -nan).

I was able to confirm that just by taking /usr/lib/collectd/zfs_arc.so
from a working 18.04 installation and dropping it on the 20.04 box, the
problem could be resolved.

Then I rebuilt the package from source with a single hunk of code
removed from zfs_arc.c that was not present in 5.9.2, introduced in
5.9.2g, and removed again in upstream debian 5.10.0. This fixes the
issue:

--- collectd.5.9.2g/zfs_arc.c   2020-04-29 23:19:26.307645579 -0700
+++ collectd.5.10.0/zfs_arc.c   2020-04-29 23:20:19.658663146 -0700
@@ -231,23 +231,6 @@
 return -1;
   }
 
-  // Ignore the first two lines because they contain information about
-  // the rest of the file.
-  // See kstat_seq_show_headers module/spl/spl-kstat.c of the spl kernel
-  // module.
-  if (fgets(buffer, sizeof(buffer), fh) == NULL) {
-ERROR("zfs_arc plugin: \"%s\" does not contain a single line.",
-  ZOL_ARCSTATS_FILE);
-fclose(fh);
-return (-1);
-  }
-  if (fgets(buffer, sizeof(buffer), fh) == NULL) {
-ERROR("zfs_arc plugin: \"%s\" does not contain at least two lines.",
-  ZOL_ARCSTATS_FILE);
-fclose(fh);
-return (-1);
-  }
-
   while (fgets(buffer, sizeof(buffer), fh) != NULL) {
 char *fields[3];
 value_t v;

** Affects: collectd (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876135

Title:
  ARC Hit Ratio does not work in collectd zfs_arc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1876135/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 792207] [NEW] package dvdrip-queue 0.1.3-0.1ubuntu2 failed to install/upgrade: error writing to 'standard output': Success

2011-06-03 Thread Durk
Public bug reported:

Binary package hint: dvdrip-queue

After Scummvm update broken package

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: dvdrip-queue 0.1.3-0.1ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-32.62-generic 2.6.32.38+drm33.16
Uname: Linux 2.6.32-32-generic x86_64
NonfreeKernelModules: nvidia
AptOrdering:
 dvdrip-queue: Install
 dvdrip-queue: Configure
Architecture: amd64
Date: Fri Jun  3 07:37:54 2011
ErrorMessage: error writing to 'standard output': Success
InstallationMedia: Ubuntu 10.04.1 LTS Lucid Lynx - Release amd64 (20100816.1)
PackageArchitecture: all
SourcePackage: dvdrip-queue
Title: package dvdrip-queue 0.1.3-0.1ubuntu2 failed to install/upgrade: error 
writing to 'standard output': Success

** Affects: dvdrip-queue (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-package lucid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/792207

Title:
  package dvdrip-queue 0.1.3-0.1ubuntu2 failed to install/upgrade: error
  writing to 'standard output': Success

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 792207] Re: package dvdrip-queue 0.1.3-0.1ubuntu2 failed to install/upgrade: error writing to 'standard output': Success

2011-06-03 Thread Durk
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/792207

Title:
  package dvdrip-queue 0.1.3-0.1ubuntu2 failed to install/upgrade: error
  writing to 'standard output': Success

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs