FS#69682 - [arm-none-eabi-binutils] 2.36.1-1 conflicting files

Attached to Project: Community Packages
Opened by Francis Le Roy (grandchaman) - Wednesday, 17 February 2021, 23:57 GMT
Last edited by Filipe Laíns (FFY00) - Thursday, 18 February 2021, 15:54 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Filipe Laíns (FFY00)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 31
Private No

Details

Description:

After the last update (2.36.1-1) of the `arm-none-eabi-binutils` package, there is a file conflict with `binutils` package.

```
error: failed to commit transaction (conflicting files)
arm-none-eabi-binutils: /usr/lib/bfd-plugins/libdep.so exists in filesystem (owned by binutils)
```
This task depends upon

Closed by  Filipe Laíns (FFY00)
Thursday, 18 February 2021, 15:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  arm-none-eabi-binutils 2.36.1-2
Comment by Akatsuki Rui (akiirui) - Thursday, 18 February 2021, 02:05 GMT
pacman -F usr/lib/bfd-plugins/libdep.so

usr/lib/bfd-plugins/libdep.so is owned by testing/binutils 2.36.1-2
usr/lib/bfd-plugins/libdep.so is owned by core/binutils 2.36-3
usr/lib/bfd-plugins/libdep.so is owned by community/arm-none-eabi-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/lm32-elf-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/nds32le-elf-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/or1k-elf-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/ppc64le-elf-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/riscv32-elf-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/riscv64-elf-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/sh2-elf-binutils 2.36.1-1
usr/lib/bfd-plugins/libdep.so is owned by community/sh4-elf-binutils 2.36.1-1

these packages have this issue too.
Comment by Stratos (stratosgear) - Thursday, 18 February 2021, 08:38 GMT
Just came here to report the same thing!
Comment by zhengyi (goodmen) - Thursday, 18 February 2021, 09:22 GMT
yes, I have submit the same bug report this morning, and it is closed due to duplicating.

It seems that the uperstream cause this problem, not the PKGBUILD script.
Comment by Nicolas Stalder (nickray) - Thursday, 18 February 2021, 10:52 GMT
Change is recorded here: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=ld/NEWS;h=4bb4ba3f466a5555e887a7be2019b10150dfa0b1;hb=HEAD#l10

One way to solve (https://git.io/JtDEV) would be to add `binutils` to `depends`, and remove `libdep.so` `in package()`:

# Remove libraries that conflict with host version
rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so
rmdir "$pkgdir"/usr/lib/bfd-plugins
rmdir "$pkgdir"/usr/lib

I'm not sure if `libdep.so` is even used for non-host targets though.

Loading...