procfs icon indicating copy to clipboard operation
procfs copied to clipboard

Homebrew package on homebrew/fuse tap for procfs

Open alexchandel opened this issue 9 years ago • 8 comments

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.

alexchandel avatar Apr 22 '16 20:04 alexchandel

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.

BenjaminHCCarr avatar Apr 28 '17 03:04 BenjaminHCCarr

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.

alexchandel avatar Jun 13 '17 21:06 alexchandel

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.

ylluminate avatar Jul 31 '17 05:07 ylluminate

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

BenjaminHCCarr avatar Jul 31 '17 15:07 BenjaminHCCarr

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

BenjaminHCCarr avatar Aug 17 '17 06:08 BenjaminHCCarr

Arg, I need a working /proc procfs on macOS High Sierra.

danielbair avatar Apr 24 '18 01:04 danielbair

@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.

alexchandel avatar May 11 '18 17:05 alexchandel

@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.

alexchandel avatar May 11 '18 19:05 alexchandel