carton icon indicating copy to clipboard operation
carton copied to clipboard

Binary Naming Conflict

Open kuhl opened this issue 2 years ago • 4 comments

Carton is already a Perl dependency manager on Linux. I would love to do the leg work of getting the app in aptitude. I've compiled and use Carton on my Ubuntu Server. I'd like to see others have the option of building a CI system on Ubuntu to deploy Tokamak on their sites.

Swiftlet isn't taken?

kuhl avatar Feb 02 '22 23:02 kuhl

I have no idea how packaging works on Ubuntu/Debian, but would it be possible to create a symlink from swift-carton to the real carton binary installed in some other folder non in PATH env? It would make sense to name the package that way too. AFAIR, Swift does this for its clang installation on some Linux distros by naming swift-clang, doesn't it?

swift-carton doesn't have to be a symlink, I guess naming the binary that way could work too.

MaxDesiatov avatar Feb 03 '22 13:02 MaxDesiatov

I see there's a way to setup diversions here, could that work? https://linux.die.net/man/8/dpkg-divert

MaxDesiatov avatar Feb 03 '22 14:02 MaxDesiatov

Another solution is to specify a conflict with the Perl package, as Mono people have done here https://github.com/mono/mono/issues/9056#issuecomment-532951039

MaxDesiatov avatar Feb 03 '22 14:02 MaxDesiatov

BTW, is it an established practice to maintain Linux distro packaging scripts in a separate repository or in the main upstream source repository? I wouldn't mind keeping the packaging scripts here if that's what you prefer and what is recommended in the Linux distro packaging world.

MaxDesiatov avatar Feb 03 '22 14:02 MaxDesiatov

carton is no longer a CLI command but a SwiftPM Plugin, so name conflict is no longer a problem.

kateinoigakukun avatar Mar 11 '24 06:03 kateinoigakukun