Bug 262649

Summary: ports-mgmt/poudriere-devel: Use a dynamic linuxbase from sysctl for linprocfs mounts [diff]
Product: Ports & Packages Reporter: Sean Champ <lab+bsd>
Component: Individual Port(s)Assignee: Bryan Drewery <bdrewery>
Status: New ---    
Severity: Affects Only Me CC: lab+bsd
Priority: --- Flags: bugzilla: maintainer-feedback? (bdrewery)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
dynamic linuxbase for linprocfs mounts in poudriere (patch file) none

Description Sean Champ 2022-03-18 17:24:30 UTC
Created attachment 232554 [details]
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.
Comment 1 Sean Champ 2022-03-18 17:27:28 UTC
An issue tracker-item for a similar patch for ports-mgmt/poudriere:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262650