Bug 262650 - ports-mgmt/poudriere: Use a dynamic linuxbase from sysctl for linprocfs mounts
Summary: ports-mgmt/poudriere: Use a dynamic linuxbase from sysctl for linprocfs mounts
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-18 17:27 UTC by Sean Champ
Modified: 2022-03-18 17:27 UTC (History)
0 users

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


Attachments
dynamic linuxbase for linprocfs mounts in poudriere (patch file) (2.32 KB, patch)
2022-03-18 17:27 UTC, Sean Champ
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Champ 2022-03-18 17:27:02 UTC
Created attachment 232555 [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

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.