Bug 263487 - dns/bind918: nullfs mount is missing
Summary: dns/bind918: nullfs mount is missing
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: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-23 07:35 UTC by Tatsuki Makino
Modified: 2022-07-22 13:54 UTC (History)
1 user (show)

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


Attachments
chroot path fix (896 bytes, patch)
2022-05-31 07:37 UTC, Leo Vandewoestijne
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tatsuki Makino 2022-04-23 07:35:00 UTC
When using BIND chrooted, some directories will be nullfs mounted, but some will be missing.
The directory names seem to have changed between 9.16.x and 9.18.x.
The following line of files/named.in may need to be rewritten.

- null_mount_or_copy %%PREFIX%%/lib/named
+ null_mount_or_copy %%PREFIX%%/lib/bind

bind9-devel will probably need to be modified as well.
Comment 1 Leo Vandewoestijne 2022-05-24 11:25:32 UTC
That same file will also need a
- null_umount %%PREFIX%%/lib/named
+ null_umount %%PREFIX%%/lib/bind
Comment 2 Leo Vandewoestijne 2022-05-31 07:37:11 UTC
Created attachment 234341 [details]
chroot path fix

By these the patch to make the above two mutations.
Comment 3 Tatsuki Makino 2022-06-02 05:12:14 UTC
This value is a macro that is defined as NAMED_PLUGINDIR in preprocessor for both 9.16 and 9.18.
In 9.16, ${plugindir} defined in bind-9.16.29/make/rules.in is assigned to it.
In 9.18, it has been changed to use ${pkglibdir} defined by autotools(? I don't know details :) ).

So, it may be necessary to use the equivalent of $(libdir)/@PACKAGE@ to allow more accurate values to be entered.
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-07-15 14:31:20 UTC
A commit in branch main references this bug:

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

commit fa2609e30ffecf7ae3818b84bb9c017ccecc5892
Author:     Tatsuki Makino <tatsuki_makino@hotmail.com>
AuthorDate: 2022-07-15 14:26:44 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2022-07-15 14:30:17 +0000

    dns/bind918: fix nullfs mount when chrooted

    PR:             263487

 dns/bind918/Makefile       | 2 +-
 dns/bind918/files/named.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-07-22 13:54:28 UTC
A commit in branch 2022Q3 references this bug:

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

commit 34f95b934d089c23e1ae98ea363ee6eb42f862ad
Author:     Tatsuki Makino <tatsuki_makino@hotmail.com>
AuthorDate: 2022-07-15 14:26:44 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2022-07-22 13:52:18 +0000

    dns/bind918: fix nullfs mount when chrooted

    PR:             263487
    (cherry picked from commit fa2609e30ffecf7ae3818b84bb9c017ccecc5892)

 dns/bind918/Makefile       | 2 +-
 dns/bind918/files/named.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)