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

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

            Bug ID: 262649
           Summary: ports-mgmt/poudriere-devel: Use a dynamic linuxbase
                    from sysctl for linprocfs mounts [diff]
           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
             Flags: maintainer-feedback?(bdrewery@FreeBSD.org)
          Assignee: bdrewery@FreeBSD.org

Created attachment 232554
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232554&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

I'll add a separate issue track for a similar patch for ports-mgmt/poudriere

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.