| Summary: | devel/arcanist: collision with clamav | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Matthias Fechner <mfechner> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Some People | CC: | carlavilla, grahamperrin, grembo |
| Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(grembo) |
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Matthias Fechner
2023-01-11 12:56:55 UTC
Hi Matthias,
renaming arcanist is not an option, as it would break howtos etc.
But good news is that we split arcanist into two ports for that reason:
devel/arcanist-lib: This contains all of arcanist
devel/arcanist: creates a symlink /usr/local/bin/arc to
/usr/local/lib/php/arcanist/bin/arc
So all you need to do is only install arcanist-lib and then either
call /usr/local/lib/php/arcanist/bin/arc explicitly or do
ln -s /usr/local/lib/php/arcanist/bin/arc /usr/local/bin/arcanist
to have the effect you asked for.
Best
Michael
Thanks Michael, but it does not work, get the following error message: ``` USAGE EXCEPTION Toolset "archanist" is unknown. The binary should be executed so that "argv[0]" identifies a supported toolset. Rename the binary or install the library that provides the desired toolset. Current available toolsets: arc, phage. ``` (In reply to Matthias Fechner from comment #2) Well, so arcanist really wants to be started as "arc". Running /usr/local/lib/php/arcanist/bin/arc should work though. You could also do alias arc=/usr/local/lib/php/arcanist/bin/arc in your user session (and if you don't happen to run "arc" with that specific user account, add that alias to ~/.profile). (In reply to Michael Gmelin from comment #3) Or you create a wrapper script: As an unprivileged user do: mkdir -p ~/bin echo '#!/bin/sh' >~/bin/arcanist echo 'exec /usr/local/lib/php/arcanist/bin/arc "$@"' >>~/bin/arcanist chmod 755 ~/bin/arcanist Then try: arcanist anoid (assumes that your unprivileged user has ~/bin in its path, which should usually be the case) (In reply to Matthias Fechner from comment #0) The name collision is acknowledged, and worked around, at <https://wiki.freebsd.org/Phabricator?highlight=%28arcanist%29#Install_Command_Line_Client>. It seems peculiar to have no mention of Arcanist in the documentation portal: % grep -R -i arcanist /usr/doc/ % I think, let's reopen this as a documentation bug report. (In reply to Graham Perrin from comment #5) > … at > <https://wiki.freebsd.org/Phabricator?highlight=%28arcanist%29#Install_Command_Line_Client>. > … Sorry, that was a dirty URL (remnants from performing a search). Cleaner: <https://wiki.freebsd.org/Phabricator#Install_Command_Line_Client> What is the bug here related to the documentation? (In reply to Sergio Carlavilla Delgado from comment #7) >> … no mention of Arcanist in the documentation portal: … (In reply to Graham Perrin from comment #8) can you please provide a patch? I'm gonna close this as a doc bug. If someone wants arcanist in the documentation I'll be happy to review a patch and add it to the documentation. |