[Bug 262650] ports-mgmt/poudriere: Use a dynamic linuxbase from sysctl for linprocfs mounts

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Mar 2022 17:27:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262650

            Bug ID: 262650
           Summary: ports-mgmt/poudriere: Use a dynamic linuxbase from
                    sysctl for linprocfs mounts
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bdrewery@FreeBSD.org
          Reporter: lab+bsd@thinkum.space
          Assignee: bdrewery@FreeBSD.org
             Flags: maintainer-feedback?(bdrewery@FreeBSD.org)

Created attachment 232555
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232555&action=edit
dynamic linuxbase for linprocfs mounts in poudriere (patch file)

This patch introduces some handling for a custom LINUXBASE under ports, as when
there is a corresponding sysctl configuration on the host.

Ports at the site may have been built with a custom LINUXBASE. This pathname
may may be assumed to match the value of the sysctl mib compat.linux.emul_path

When poudriere is configured without NOLINUX, this patch will use the value
stored in that sysctl mib as the base directory for linprocfs mounts. By
default, this would be the pathname /compat/linux

If poudriere is configured with NOLINUX, this will use the default value
/compat/linux as the LINUXBASE pathname

This patch corresponds to a pull request on the poudriere source tree
https://github.com/freebsd/poudriere/pull/986

This patch also corresponds to an issue track for a similar patch for
ports-mgmt/poudriere-devel
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262649

This patch may be useful towards testing some port contributions for ports that
use dotnet and/or mono.

-- 
You are receiving this mail because:
You are the assignee for the bug.