File conflicts with dotnet-core package
Description:
At least one file (/usr/share/licenses/dotnet-runtime
), maybe more, conflicts with the dotnet-core
package.
commit: updating .SRCINFO
commit: Checking PKGBUILD with shfmt
commit: Checking PKGBUILD with shellcheck
commit: building on host
==> Making package: bicep 0.23.1-3 (Mon 04 Dec 2023 03:22:06 PM CET)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Packages (1) dotnet-runtime-7.0-7.0.14.sdk114-1
Total Download Size: 22.78 MiB
Total Installed Size: 66.66 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
dotnet-runtime-7.0-7.0.14.sdk114-1-x86_64 22.8 MiB 2.40 MiB/s 00:10 [################################################] 100%
(1/1) checking keys in keyring [################################################] 100%
(1/1) checking package integrity [################################################] 100%
(1/1) loading package files [################################################] 100%
(1/1) checking for file conflicts [################################################] 100%
error: failed to commit transaction (conflicting files)
dotnet-runtime-7.0: /usr/share/licenses/dotnet-runtime exists in filesystem (owned by dotnet-runtime)
Errors occurred, no packages were upgraded.
All of the hard-coded paths in the package functions should probably use the $pkgname
variable:
ln -s dotnet-host "${pkgdir}/usr/share/licenses/${pkgname}"
instead of:
ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-targeting-pack
Package version: 7.0.14.sdk114-1
Edited by Carl Smedstad