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 #
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.
devel/libltdl should provide the answer.
(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 :)
I'll upload a patch to unconditionally depend on devel/ltdl. Builds ok. Verifying the patch on nut-devel.
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.
Created attachment 228690 [details] Fixes a typo in the original patch Use this patch instead. The previous one had a typo.
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(-)
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(-)
Thanks!
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(-)
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(-)