Open alexchandel opened 8 years ago
I do a bunch of homebrew stuff; and need /proc back :)
So I am willing to formula it when you say it's ready to release. I'll write a -HEAD formula to test; but would love procfs.rb to be back!
Cloning now.
Go for it. Other than the 3 documented bugs in the issues list, it runs fine as far as I know. I've added you as a collaborator.
Any news on getting this done? I'm having trouble with 10.12 compilation and would love a nice steady reproducible install of /proc
vs having to fight it on fresh installs or setting it up on other workstations.
Hey guys..... I plan on doing this... I'm just defending my PhD on August 11th. And have a <2yo.
So time/sleep/food are priority.
Queued. Still live
Needed a break of edits... hacked on this a bit: Tap is at: https://github.com/BenjaminHCCarr/homebrew-tap/
The formula is at (WIP): https://github.com/BenjaminHCCarr/homebrew-tap/blob/master/Formula/procfs.rb
L14 is definitely needed, L15 is to try to figure out why pcrecpp
and pcrecpp::string
are puking:
https://github.com/BenjaminHCCarr/homebrew-tap/blob/master/Formula/procfs.rb#L14-L15
Gist: https://gist.github.com/247c5201b20a09317250b4813e5c8ba5
I'm on pcre 8.41
are you possibly using PCRE2
?
http://www.pcre.org/current/doc/html/
(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.30.tar.bz2) ?
it's in brew:
benc$ brew info pcre2
pcre2: stable 10.30 (bottled), HEAD
Perl compatible regular expressions library with a new API
http://www.pcre.org/
versus my "classic"
benc$ brew info pcre
pcre: stable 8.41 (bottled), HEAD
Perl compatible regular expressions library
http://www.pcre.org/
/usr/local/Cellar/pcre/8.41 (204 files, 5.4MB) *
Poured from bottle on 2017-07-10 at 23:07:03
Arg, I need a working /proc procfs on macOS High Sierra.
@BenjaminHCCarr:
IIRC I was using brew's "classic" pcre. Did you find any changes I needed to merge?
@danielbair:
This should build, if you update the -isysroot
to 10.13's SDK.
@danielbair I've updated the Makefile to use the generic SDK (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
) and fix the std::string issue. Notwithstanding the known issues (most notably the missing PIDs of #4), this should work for you on macOS High Sierra (tested myself).
@BenjaminHCCarr I believe the pcrecpp::string was due to the implicit use of std::string
in procfs.cc
. That's been fixed now.
Homebrew has an awesome repository of FUSE filesystems for OS X on the homebrew/fuse tap.
From the formula guidelines, I think the only change we need is to have our Makefile install the
procfs
binary and plist to the right Homebrew directory. But that said, our source could use some tidying.