luliu / swift-overlay

Gentoo overlay for Apple's Swift programming language
5 stars 0 forks source link

Package 'dev-lang/swift-5.4' NOT merged due to file collisions #2

Open pawosm-arm opened 3 years ago

pawosm-arm commented 3 years ago

Apparently, lldb is not the only colliding package, lld is yet another one.

 * Detected file collision(s):
 *
 *      /usr/bin/lld
 *      /usr/bin/ld.lld
 *      /usr/bin/ld64.lld
 *      /usr/bin/wasm-ld
 *      /usr/bin/lld-link
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * sys-devel/lld-11.0.1:0::gentoo
 *      /usr/bin/ld.lld
 *      /usr/bin/ld64.lld
 *      /usr/bin/lld
 *      /usr/bin/lld-link
 *      /usr/bin/wasm-ld
 *
 * Package 'dev-lang/swift-5.4' NOT merged due to file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.
luliu commented 3 years ago

let me know if this addresses it. Thanks

https://github.com/luliu/swift-overlay/blob/15109e03036158bc9d91b6e90442eac95a63466d/dev-lang/swift/swift-5.4.ebuild#L72

pawosm-arm commented 3 years ago

Well as much as it works it is also problematic:

Calculating dependencies... done!
[ebuild  N    ~] sys-devel/lld-11.0.1::gentoo  USE="-test" 0 KiB
[blocks B      ] sys-devel/lld ("sys-devel/lld" is hard blocking dev-lang/swift-5.4)

Total: 1 package (1 new), Size of downloads: 0 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-devel/lld-11.0.1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    =sys-devel/lld-11* required by (www-client/firefox-84.0.2:0/84::gentoo, installed) USE="clang dbus openh264 pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-webp -debug (-eme-free) -geckodriver -gmp-autoupdate (-hardened) -hwaccel -jack -lto -pgo (-screencast) (-selinux) -system-libvpx -wayland -wifi" CPU_FLAGS_ARM="(-neon)" L10N="pl -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"

  (dev-lang/swift-5.4:0/0::swift-overlay, installed) pulled in by
    dev-lang/swift required by @selected

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages

Firefox must be built from sources on that system, and it won't build with anything but LLVM11. I've also noticed that after dev-lang/swift installation, default clang version has silently moved back to LLVM10! This isn't the right approach.

luliu commented 3 years ago

Yea that does sound bad. I'll look into seeing if it's possible to slot it.

pawosm-arm commented 3 years ago

I've managed to build firefox with "-clang" USE flag, so for now, dev-lang/swig can stay on this system, yet a better solution is still needed.

luliu commented 3 years ago

I added lld as a dependency.

RarogCmex commented 3 years ago

Detected file collision with dev-python/six: