Summary: | multimedia/obs-studio: Reimplement os_get_executable_path_ptr() with sysctl(3) as replacement of r530454 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Ka Ho Ng <khng> | ||||||
Component: | Individual Port(s) | Assignee: | Yuri Victorovich <yuri> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | emaste | ||||||
Priority: | --- | Flags: | yuri:
maintainer-feedback+
|
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Ka Ho Ng
2020-04-06 17:23:39 UTC
Thank you for your patch, Ka Ho Ng. Could you create a pull request for this patch at https://github.com/obsproject/obs-studio This way we would be able to just add your patch from there. Thank you, Yuri Also, > #if defined(__FreeBSD__) should be replaced with > #if defined(__FreeBSD__) || defined(__OpenBSD__) || || defined(__NetBSD__) || defined(__DragonFly__) to catch all BSDs. (In reply to Yuri Victorovich from comment #2) I am not sure if such change is applicable to other BSDs. For example in NetBSD, KERN_PROC_PATHNAME is available as the fourth level name when the second level name is KERN_PROC_ARGS. For OpenBSD I cannot find alternatives for KERN_PROC_PATHNAME. DragonflyBSD seems to have KERN_PROC_PATHNAME as FreeBSD, so I would include support for that. Created attachment 213132 [details]
A patch to libobs/util/platform-nix.c
(In reply to Ka Ho Ng from comment #4) If you can, please create a pull request on https://github.com/obsproject/obs-studio If you can't, please let me know and I would add it myself. Thanks, Yuri (In reply to Yuri Victorovich from comment #5) Okay. I just created a PR here: https://github.com/obsproject/obs-studio/pull/2663 . Committed, thanks! A commit references this bug: Author: yuri Date: Mon Apr 6 18:30:57 UTC 2020 New revision: 530917 URL: https://svnweb.freebsd.org/changeset/ports/530917 Log: multimedia/obs-studio: Change FreeBSD and Dragonfly support in os_get_executable_path_ptr() from procfs(5) to sysctl/KERN_PROC_PATHNAME PR: 245403 Submitted by: Ka Ho Ng <khng300@gmail.com> Changes: head/multimedia/obs-studio/Makefile head/multimedia/obs-studio/distinfo head/multimedia/obs-studio/files/patch-libobs_util_platform-nix.c |