Skip to content

Commit

Permalink
fix(watchman)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Dec 23, 2024
1 parent 73144fa commit 31c0a45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/facebook.com/edencommon/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ dependencies:
facebook.com/mvfst: '*' # since 2024.03.18.00
openssl.org: ^1.1
sourceware.org/bzip2: ^1
boost.org: ~1.87
linux:
gnu.org/gcc/libstdcxx: 13

build:
dependencies:
cmake.org: '*'
google.com/googletest: '*'
boost.org: ^1
linux:
gnu.org/gcc: 13
script:
Expand Down
5 changes: 2 additions & 3 deletions projects/facebook.com/watchman/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ versions:
github: facebook/watchman

dependencies:
boost.org: ^1.84
# these need version locking, but we don't support that yet
# facebook.com/edencommon: '{{version}}'
# facebook.com/fb303: '{{version}}'
Expand Down Expand Up @@ -45,7 +44,7 @@ build:
- mainfile=$(find . -name "main.cpp")
- 'echo "Found main.cpp at: $mainfile"'
- oldline='auto state_dir = computeWatchmanStateDirectory(user);'
- "newline='const char* env_state_dir = getenv(\"WATCHMAN_STATE_DIR\"); auto state_dir = env_state_dir ? env_state_dir : computeWatchmanStateDirectory(user);'"
- 'newline=''const char* env_state_dir = getenv("WATCHMAN_STATE_DIR"); auto state_dir = env_state_dir ? env_state_dir : computeWatchmanStateDirectory(user);'''
- sed -i "s/$oldline/$newline/" "$mainfile"
- cat $mainfile
working-directory: watchman
Expand Down Expand Up @@ -119,7 +118,7 @@ build:

runtime:
env:
WATCHMAN_STATE_DIR: "{{prefix}}/var/run/watchman"
WATCHMAN_STATE_DIR: '{{prefix}}/var/run/watchman'

provides:
- bin/watchman
Expand Down

0 comments on commit 31c0a45

Please sign in to comment.