-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name conflict with inetutils on macOS #105
Comments
This is a Homebrew issue, not |
Argh. Yeah, there isn't much I can do here. It's an unfortunate naming collision, I'll add a caveat to the formula when I do a bump next. |
Why not just rename the binary in the relevant formula? Similar to how some Linux distros rename the |
This issue was recently raised over at MacPorts, where I maintain the gping port: https://trac.macports.org/ticket/63168
I don't think it's a Homebrew-specific issue, since I presume other BSD-based systems will also have the same conflict. The I agree with @orf that the only feasable option is to note in each relevant package manager that the two conflict with each other. I will be sure to do that for MacPorts at some point. (By the way, thanks @orf and the other contributors for putting your time and effort into maintaining this amazing tool! 👍) |
@harens is there any way I can update macports automatically when I do a new release? I use this CI action (https://github.com/mislav/bump-homebrew-formula-action) for homebrew. |
@orf I'm sorry I haven't been keeping the port up-to-date recently. That's totally my fault :) I've just bumped it now macports/macports-ports@af18e68.
Not really. The main reason why is since gping's dependencies are manually specified using a tool called cargo2port. MacPorts takes reproducible builds very seriously, and specifying which dependencies should be installed before building gping helps with this. Case in point, the latest 1.2.7 release introduces build timestamps, which is a big source of reproducibility problems. I therefore manually set the time to that of the last file modification. I have some basic automation setup on my side, so it is very easy for me to update gping (~5 mins). I'll try and update the port more quickly in the future. |
@harens is there a way for the macports version to not force the inconvenient binary name and instead just note that there is a potential for conflict? |
@eugenesvk It makes sense to resolve the conflict. Inetutils includes really common network tools, and so people do indeed use them alongside gping. Off the top of my head, the easiest thing for you might be just to set an alias: |
it only makes sense for those people who have a conflict :) I just thought maybe MacPorts had a better mechanism, e.g., only renaming if there is a conflict instead of preemptively since alias now has to be platform-specific, which is not a big deal, but worse than a better conflict resolution within the package manager |
You're right that would be ideal. I'm not aware of any package managers that implement this, but it might be possible. Something to think about :) Thanks @eugenesvk. |
inetutils
provides (among other things) GNU ping, symlinked asgping
:Thus there is a naming conflict when
gping
is installed with homebrew:I wouldn't suggest that
gping
should be renamed to account for this corner case. But some guidance would be appreciated for those of us who would like to maintain access to both tools.The text was updated successfully, but these errors were encountered: