Bug 262649 - ports-mgmt/poudriere-devel: Use a dynamic linuxbase from sysctl for linprocfs mounts [diff]
Summary: ports-mgmt/poudriere-devel: Use a dynamic linuxbase from sysctl for linprocfs...
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:24 UTC by Sean Champ
Modified: 2022-03-18 17:27 UTC (History)
1 user (show)

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


Attachments
dynamic linuxbase for linprocfs mounts in poudriere (patch file) (2.45 KB, patch)
2022-03-18 17:24 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: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