add nut-scanner to build

Bug #1814314 reported by Raul Dias on 2019-02-01
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nut (Debian)
New
Unknown
nut (Ubuntu)
Medium
Unassigned

Bug Description

nut-scanner is not packaged in the current build (or not build at all).
Please add it (tools dir) as it makes easy to find compatible UPS devices not listed yet.

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: nut 2.7.4-8ubuntu1
Uname: Linux 4.19.19-041919-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Feb 1 16:59:04 2019
InstallationDate: Installed on 2014-05-12 (1726 days ago)
InstallationMedia: Error: [Errno 13] Permissão negada: '/var/log/installer/media-info'
KernelVersion: Linux nostromo 4.19.19-041919-generic #201901310331 SMP Thu Jan 31 08:33:47 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
PackageArchitecture: all
SourcePackage: nut
UpgradeStatus: Upgraded to cosmic on 2018-10-22 (102 days ago)
UpsConf: Error: [Errno 13] Permissão negada: '/etc/nut/ups.conf'

Raul Dias (rsd) wrote :
tags: added: bitesize needs-upstream-report

Hi Raul,
I agree that the tool is missing, but this bug is present in Debian too.
And IMHO it would be best fixed in Debian, and then Ubuntu will pick it up on the next merge.

The config doesn't have it enabled
  build nut-scanner: no

Interestingly the same feature is provided as API in libupsclient-dev as [1]
I wonder if there is another way than nut-scanner to utilize that which would already be build in, but at least I don't know about it :-/

Would you mind filing a bug with Debian please?
I checked - so far there is none about that in [2].

If you happen to do so, please let us know the bug number here so that we can track the bug in Debian from here.

[1]: http://manpages.ubuntu.com/manpages/bionic/man3/nutscan.3.html
[2]: https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=nut

Changed in nut (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Raul Dias (rsd) wrote :

Done.
Upstream is #921379.

Thanks Raul,
I linked the bug here and subscribed on the Debian bug to see what their opinion on this is.
If nothing happens for quite a while we need to reconsider doing this just on our own, but for now lets see.

Hi fellows,

It's always true that I'm more focused on upstream these years, than on
Debian an Ubuntu.
I'll try to make a summary to explain the what and how on this nut-scanner
feature, on the Debian ticket

cheers
Arno
--
Eaton Data Center Automation Solutions - Opensource Leader -
http://42ity.org
NUT (Network UPS Tools) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr

Changed in nut (Debian):
status: Unknown → New

Our check on potentially dormant bugs brought this one up and I realized that it was recently fixed in 2.7.4-9.
Lets merge that for Eoan ...

Andreas Hasenack (ahasenack) wrote :

This was fixed in https://launchpad.net/ubuntu/+source/nut/2.7.4-9ubuntu1, which is currently in eoan-proposed, and this bug will auto-close once the package migrates.

The addition of nutscan made it hit the new queue which explains the extra delay.

Launchpad Janitor (janitor) wrote :
Download full text (4.3 KiB)

This bug was fixed in the package nut - 2.7.4-9ubuntu1

---------------
nut (2.7.4-9ubuntu1) eoan; urgency=medium

  * Merge with Debian unstable (LP: #1505288). Remaining changes:
    - remove Build-Depends on libpowerman0-dev
    - remove nut-powerman-pdu
      + debian/control: remove nut-powerman-pdu package
      + debian/nut-powerman-pdu.{install,manpages}: dropped for now
    - debian/source_nut.py, debian/{nut,nut-server,nut-client}.install,
      debian/rules: Install apport hooks for all top-level nut packages.
    - debian/tests/test-nut.py: in the CVE_2012_2944 test, give nut at most
      + 5 seconds to shut down, instead of expecting it to be shut down
        immediately after sending the killall.
      + Additional indication on how to run tests for xenial+
    - d/nut-server.postinst, d/nut-cgi.postinst: ensure nut is member of group
      dialout (This existed, but was missed in the Changelog).
    - debian/libnutclient0.symbols: Correct symbols file for ppc64el.
    - Mark more symbols as optional (ppc64el, -O3).
  * Dropped changes (in Debian now):
    - debian/tests/control : Fix dep8 test failures:
       + Drop python-unit from dep8 dependencies since the python-test
         package has now been removed. The unittest module has shipped with
         Python since 2.1.
       + Add dep8 test dependency on python, since Python 2 is required and
         is not necessarily installed by default any more.

nut (2.7.4-9) unstable; urgency=medium

  [ Ondřej Nový ]
  * d/changelog: Remove trailing whitespaces
  * d/control: Remove XS-Testsuite field, not needed anymore

  [ Arnaud Quette ]
  * debian/control, debian/rules, debian/libnutscan1.install,
    debian/libnutscan-dev.install: distribute nut-scanner. (Closes: #921379
    LP: #1814314)

  [ Laurent Bigonville ]
  * Switch from cdbs to debhelper sequence
  * Bump debhelper compatibility version to 12
  * Add libltdl-dev to the build-dependencies and fix FTBFS when it is
    installed (Closes: #831740)
  * debian/control: Bump Standards-Version to 4.4.0 (no further changes)
  * debian/control: Add libnss3-dev to the dependencies of libupsclient-dev
  * debian/tests/control: Drop python-unit and depend against python package
    instead (Closes: #908963)
  * debian/control: Fix duplicate package descriptions to please lintian
  * debian/*.symbols: Add Build-Depends-Package field
  * debian/control, debian/watch: Use https for the Homepage and download page
  * debian/libnutclient0.symbols: Adjust the symbols due to C++ changes
  * debian/patches/0011-use-pkgconfig-module.patch: Use pkg-config module
    names instead of listing the libraries, to please lintian
  * Move pidfiles from /var/run/nut to /run/nut, there is nothing else to do
    since /var/run is a symlink to /run for some times now (policy 3.9.3)
  * debian/patches/0012-add-AEG-PROTECT-NAS-support.patch: Add support for
    recent AEG PROTECT NAS UPS, from upstream (Closes: #919112)
  * debian/nut-server.lintian-overrides: Override
    package-supports-alternative-init-but-no-init.d-script
    lib/systemd/system/nut-driver.service, in LSB world, the drivers are started
    by nut-server initscript
  * debian/nu...

Read more...

Changed in nut (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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