Bug 270286 - dns/bind-tools: fails to build with MANPAGES=off
Summary: dns/bind-tools: fails to build with MANPAGES=off
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-17 13:32 UTC by Tomáš Čiernik
Modified: 2023-03-21 13:03 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Čiernik 2023-03-17 13:32:43 UTC
Hello,

dns/bind-tools fails with MANPAGES disabled

Making all in man
echo ""

: -b man -d ./_build/.doctrees/man -W			 -c .			 -a				 -n			 -D version="@""PACKAGE_VERSION@"	 -D today="@""RELEASE_DATE@"		 -D release="@""PACKAGE_VERSION@"	 -D rst_epilog="$(printf "${man_RST_EPILOG}")"	 				 . ./_build/man
for f in ./_build/man/*; do  cp -a "$f" "./$(basename $f)in";  done
cp: ./_build/man/*: No such file or directory
*** Error code 1

Stop.
make[4]: stopped in /wrkdirs/usr/ports/dns/bind-tools/work/bind-9.18.13/doc/man


After enabling MANPAGES, everything is OK.
Comment 1 Michael Osipov 2023-03-20 09:15:02 UTC
Based on the information provided here: https://gitlab.isc.org/isc-projects/bind9/-/issues/3681#note_359741

This works for me in poudriere:
root@deblndw011x:/var/poudriere/ports/default/dns/bind918 (2023Q1-custom *)
# git diff -U0
diff --git a/dns/bind918/Makefile b/dns/bind918/Makefile
index 8d6ef6b2184d..83190f6c5ba7 100644
--- a/dns/bind918/Makefile
+++ b/dns/bind918/Makefile
@@ -180,4 +179,0 @@ BUILD_DEPENDS+=     cmocka>0:sysutils/cmocka
-.if !${PORT_OPTIONS:MMANPAGES} && !${PORT_OPTIONS:MDOCS}
-CONFIGURE_ENV+=    ac_cv_path_SPHINX_BUILD=:
-.endif
-

This is required from 9.18.13. I didn't check 9.16.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-03-21 12:00:05 UTC
A commit in branch main references this bug:

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

commit 0612249ceafda613efff5c03ab08cb4023fe4836
Author:     Michael Osipov <michael.osipov@siemens.com>
AuthorDate: 2023-03-21 11:47:25 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2023-03-21 11:52:02 +0000

    dns/bind918: fix build without MANPAGES

    PR:             270286 270327

 dns/bind918/Makefile | 4 ----
 1 file changed, 4 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-03-21 13:03:27 UTC
A commit in branch 2023Q1 references this bug:

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

commit 0605565fdfda8d6841cc3b0a136309f6fe282544
Author:     Michael Osipov <michael.osipov@siemens.com>
AuthorDate: 2023-03-21 11:47:25 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2023-03-21 12:04:43 +0000

    dns/bind918: fix build without MANPAGES

    PR:             270286 270327
    (cherry picked from commit 0612249ceafda613efff5c03ab08cb4023fe4836)

 dns/bind918/Makefile | 4 ----
 1 file changed, 4 deletions(-)