Formula for subversion now fails to install from source on non default prefix #3123
-
Hello, I reported an issue (Homebrew/homebrew-core#93294) but a non default prefix as mine ( The problem seems to be related to the Details of the bug report% brew config % brew doctor Warning: Some installed kegs have no formulae! Warning: Some installed formulae are deprecated or disabled. Warning: Putting non-prefixed coreutils in your path can cause GMP builds to fail. Warning: Unbrewed header files were found in /usr/local/include. Unexpected header files: Warning: You have unlinked kegs in your Cellar. Warning: Your Homebrew's prefix is not /usr/local. Verification
What were you trying to do (and why)?I typed: To upgrade after brew outdated mentioned this: What happened (include all command output)?
What did you expect to happen?Installation of subversion 1.14.1_4 finishing without failing. Step-by-step reproduction instructions (by running brew commands)brew upgrade subversion |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
same issue here on subversion 1.14.1_4 /usr/bin/clang -o libserf-1.1.3.0.dylib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/apr/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -Wl,-install_name,/private/tmp/subversion--serf-20220401-55694-tcm61h/serf-1.3.9/libserf-1.dylib -Wl,-search_paths_first -dynamiclib -Wl,-current_version,1.3.0 -Wl,-compatibility_version,1.3.0 -Wl,-rpath=/usr/local/Cellar/subversion/1.14.1_4/libexec/serf/lib -Wl,-rpath=/usr/local/opt/apr/lib -Wl,-rpath=/usr/local/opt/[email protected]/lib -Wl,-rpath=/usr/local/opt/apr-util/libexec/lib -Wl,-rpath=/usr/local/opt/[email protected]/lib context.os incoming.os outgoing.os ssltunnel.os buckets/aggregate_buckets.os buckets/allocator.os buckets/barrier_buckets.os buckets/buckets.os buckets/bwtp_buckets.os buckets/chunk_buckets.os buckets/dechunk_buckets.os buckets/deflate_buckets.os buckets/file_buckets.os buckets/headers_buckets.os buckets/iovec_buckets.os buckets/limit_buckets.os buckets/mmap_buckets.os buckets/request_buckets.os buckets/response_body_buckets.os buckets/response_buckets.os buckets/simple_buckets.os buckets/socket_buckets.os buckets/ssl_buckets.os auth/auth.os auth/auth_basic.os auth/auth_digest.os auth/auth_spnego.os auth/auth_spnego_gss.os auth/auth_spnego_sspi.os -L/usr/local/opt/apr/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/apr-util/libexec/lib -L/usr/local/opt/[email protected]/lib -lssl -lcrypto -lz -lapr-1 -lpthread -laprutil-1 -lexpat -liconv -lkrb5 ld: unknown option: -rpath=/usr/local/Cellar/subversion/1.14.1_4/libexec/serf/lib clang: error: linker command failed with exit code 1 (use -v to see invocation) scons: *** [libserf-1.1.3.0.dylib] Error 1 scons: building terminated because of errors. |
Beta Was this translation helpful? Give feedback.
-
Nice to join the discussion. |
Beta Was this translation helpful? Give feedback.
-
So the problem is that clang's ld expects
and gets
which is because clang got passed
and not
Note that the form with the comma is portable, while the form with the equals sign doesn't work with clang. I'm not enough of a scons archeologist to find the root cause, but it should be trivial. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for that great progress for me: you pointed out the source of the problem. 👍
Could the context of the bug be "more tricky", I mean:
And wouldn't there be some "magic incantations" (with env. variables?) that scons gurus could know to "force" the determination of macOS platform? |
Beta Was this translation helpful? Give feedback.
-
Hi all, I observed that the current formula for
I tried to play a little with this for macOS (by removing the condition and adapting the syntax for |
Beta Was this translation helpful? Give feedback.
-
Solved by the tweak mentioned above. |
Beta Was this translation helpful? Give feedback.
Solved by the tweak mentioned above.