Bug 259153 - sysutils/nut: includes nut-scanner manpage but not nut-scanner
Summary: sysutils/nut: includes nut-scanner manpage but not nut-scanner
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-13 19:21 UTC by Ed Maste
Modified: 2021-10-15 03:33 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments
Add ltdl dependency (2.67 KB, patch)
2021-10-14 03:01 UTC, Cy Schubert
no flags Details | Diff
Fixes a typo in the original patch (2.67 KB, patch)
2021-10-14 03:48 UTC, Cy Schubert
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2021-10-13 19:21:37 UTC
I am trying to configure nut for a new UPS, and found docs online for nut-scanner. The man page is included in nut 2.7.4_19 but nut-scanner is not.

# nut-scanner
nut-scanner: Command not found.
# man nut-scanner
NUT-SCANNER(8)                    NUT Manual                    NUT-SCANNER(8)
...
# pkg info -l nut | grep nut-scanner
        /usr/local/man/man8/nut-scanner.8.gz
#
Comment 1 Cy Schubert freebsd_committer 2021-10-14 02:40:04 UTC
libltdl is not generated by our libtool port, and the man page says,

       nut-scanner is only built if libltdl (part of libtool development
       suite) is available.

The man page will be removed to avoid confusion.
Comment 2 Cy Schubert freebsd_committer 2021-10-14 02:50:32 UTC
devel/libltdl should provide the answer.
Comment 3 Ed Maste freebsd_committer 2021-10-14 02:53:58 UTC
(In reply to Cy Schubert from comment #2)

Just found devel/ltdl as well, while trying to figure out why the libtool port configured with --disable-ltdl-install :)
Comment 4 Cy Schubert freebsd_committer 2021-10-14 02:59:33 UTC
I'll upload a patch to unconditionally depend on devel/ltdl. Builds ok. Verifying the patch on nut-devel.
Comment 5 Cy Schubert freebsd_committer 2021-10-14 03:01:49 UTC
Created attachment 228689 [details]
Add ltdl dependency

This patch for sysutils/nut and nut-devel adds devel/ltdl dependency allowing for nut-scanner to be built.
Comment 6 Cy Schubert freebsd_committer 2021-10-14 03:48:40 UTC
Created attachment 228690 [details]
Fixes a typo in the original patch

Use this patch instead. The previous one had a typo.
Comment 7 commit-hook freebsd_committer 2021-10-14 03:56:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=75ca0c0a1067e17e31335a0cd1c85e2432d9e51a

commit 75ca0c0a1067e17e31335a0cd1c85e2432d9e51a
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-14 03:06:59 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-10-14 03:51:08 +0000

    sysutils/nut: Build nut-scanner(8)

    Depend on devel/ltdl and ensure that ${LOCALBASE}/include and
    ${LOCALBASE}/lib are available for ./configure to detect ltdl.h and
    libltdl to facilitate building nut-scanner(8).

    PR:             259153
    Reported by:    emaste
    MFH:            2021Q4

 sysutils/nut/Makefile  | 5 ++++-
 sysutils/nut/pkg-plist | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)
Comment 8 commit-hook freebsd_committer 2021-10-14 03:56:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f65a74419f81de566ea103f8e2d8c854d211b24

commit 2f65a74419f81de566ea103f8e2d8c854d211b24
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-14 03:10:06 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-10-14 03:51:08 +0000

    sysutils/nut-devel: Build nut-scanner(8)

    Depend on devel/ltdl and ensure that ${LOCALBASE}/include and
    ${LOCALBASE}/lib are available for ./configure to detect ltdl.h and
    libltdl to facilitate building nut-scanner(8).

    PR:             259153
    Reported by:    emaste
    MFH:            2021Q4

 sysutils/nut-devel/Makefile  | 5 ++++-
 sysutils/nut-devel/pkg-plist | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)
Comment 9 Ed Maste freebsd_committer 2021-10-14 12:49:12 UTC
Thanks!
Comment 10 commit-hook freebsd_committer 2021-10-15 03:16:30 UTC
A commit in branch 2021Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a5c1d44aa54422f38de3f11bb59cfd83b33e66ee

commit a5c1d44aa54422f38de3f11bb59cfd83b33e66ee
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-14 03:10:06 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-10-15 03:15:09 +0000

    sysutils/nut-devel: Build nut-scanner(8)

    Depend on devel/ltdl and ensure that ${LOCALBASE}/include and
    ${LOCALBASE}/lib are available for ./configure to detect ltdl.h and
    libltdl to facilitate building nut-scanner(8).

    PR:             259153
    Reported by:    emaste

    (cherry picked from commit 2f65a74419f81de566ea103f8e2d8c854d211b24)

 sysutils/nut-devel/Makefile  | 5 ++++-
 sysutils/nut-devel/pkg-plist | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)
Comment 11 commit-hook freebsd_committer 2021-10-15 03:16:31 UTC
A commit in branch 2021Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=49e3b0f6a37fe94381ae6c0d216e642a72907b98

commit 49e3b0f6a37fe94381ae6c0d216e642a72907b98
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-14 03:06:59 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-10-15 03:14:09 +0000

    sysutils/nut: Build nut-scanner(8)

    Depend on devel/ltdl and ensure that ${LOCALBASE}/include and
    ${LOCALBASE}/lib are available for ./configure to detect ltdl.h and
    libltdl to facilitate building nut-scanner(8).

    PR:             259153
    Reported by:    emaste

    (cherry picked from commit 75ca0c0a1067e17e31335a0cd1c85e2432d9e51a)

 sysutils/nut/Makefile  | 5 ++++-
 sysutils/nut/pkg-plist | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)