termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.96k stars 2.98k forks source link

[Bug]: fmt - wasmedge conflict #21043

Closed johndebia2022 closed 1 month ago

johndebia2022 commented 1 month ago

Problem description

~ $ pkg i wasmedge
Checking availability of current mirror:
[*] https://packages-cf.termux.dev/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  wasmedge                                           0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 600 kB of archives.
After this operation, 3670 kB of additional disk space will be used.
Get:1 https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 wasmedge aarch64 0.14.0 [600 kB]
Fetched 600 kB in 1s (523 kB/s)
Selecting previously unselected package wasmedge.
(Reading database ... 19170 files and directories currently installed.)
Preparing to unpack .../wasmedge_0.14.0_aarch64.deb ...
Unpacking wasmedge (0.14.0) ...
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/wasmedge_0.14.0_aarch64.deb (--unpack):
 trying to overwrite '/data/data/com.termux/files/usr/include/fmt/args.h', which is also in package fmt 1:9.1.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /data/data/com.termux/cache/apt/archives/wasmedge_0.14.0_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
~ $

What steps will reproduce the bug?

~ $ pkg i wasmedge
Checking availability of current mirror:
[*] https://packages-cf.termux.dev/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  wasmedge                                           0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 600 kB of archives.
After this operation, 3670 kB of additional disk space will be used.
Get:1 https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 wasmedge aarch64 0.14.0 [600 kB]
Fetched 600 kB in 1s (523 kB/s)
Selecting previously unselected package wasmedge.
(Reading database ... 19170 files and directories currently installed.)
Preparing to unpack .../wasmedge_0.14.0_aarch64.deb ...
Unpacking wasmedge (0.14.0) ...
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/wasmedge_0.14.0_aarch64.deb (--unpack):
 trying to overwrite '/data/data/com.termux/files/usr/include/fmt/args.h', which is also in package fmt 1:9.1.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /data/data/com.termux/cache/apt/archives/wasmedge_0.14.0_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
~ $

What is the expected behavior?

No response

System information

## Termux App Info

*APP_NAME*: Termux  
*PACKAGE_NAME*: com.termux  
*VERSION_NAME*: 0.118.0  
*VERSION_CODE*: 118  
*TARGET_SDK*: 28  
*IS_DEBUGGABLE_BUILD*: false  
*APK_RELEASE*: F-Droid  
*SIGNING_CERTIFICATE_SHA256_DIGEST*: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42  
##
johndebia2022 commented 1 month ago

Also with codon

Biswa96 commented 1 month ago

Also with codon

codon package is in TUR. It will be fixed in that repository.

Biswa96 commented 1 month ago

I can not compile codon in TUR. See the following error.

CMake Error at /home/builder/.termux-build/codon/host-build/_deps/openmp-src/runtime/src/CMakeLists.txt:149 (add_library):
  add_library cannot create target "omp" because an imported target with the
  same name already exists.

CMake Error at /home/builder/.termux-build/codon/host-build/_deps/openmp-src/runtime/src/CMakeLists.txt:151 (target_link_libraries):
  Cannot specify link libraries for target "omp" which is not built by this
  project.

Handing over to TUR maintainer.