termux-docker icon indicating copy to clipboard operation
termux-docker copied to clipboard

Haskell pkg config/install

Open codedhacker opened this issue 2 years ago • 1 comments

Setting up haskell-regex-base (0.94.0.2) ... Segmentation fault dpkg: error processing package haskell-regex-base (--configure): installed haskell-regex-base package post-installation script subprocess returned error exit status 139 dpkg: dependency problems prevent configuration of haskell-regex-tdfa: haskell-regex-tdfa depends on haskell-regex-base; however: Package haskell-regex-base is not configured yet.

dpkg: error processing package haskell-regex-tdfa (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: haskell-regex-base haskell-regex-tdfa E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)

codedhacker avatar Jun 20 '22 01:06 codedhacker

Are you running an aarch64/arm environment on a x86-arch host using qemu-static? I think it is related to #28.

licy183 avatar Jun 22 '22 09:06 licy183

Can't reproduce the issue:

~ $ apt install haskell-regex-base
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  haskell-regex-base
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 63.3 kB of archives.
After this operation, 508 kB of additional disk space will be used.
Get:1 https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 haskell-regex-base aarch64 0.94.0.2 [63.3 kB]
Fetched 63.3 kB in 1s (95.6 kB/s)             
Selecting previously unselected package haskell-regex-base.
(Reading database ... 13439 files and directories currently installed.)
Preparing to unpack .../haskell-regex-base_0.94.0.2_aarch64.deb ...
Unpacking haskell-regex-base (0.94.0.2) ...
Setting up haskell-regex-base (0.94.0.2) ...
Reading package info from stdin ... done.
regex-base-0.94.0.2: Warning: haddock-interfaces: /data/data/com.termux/files/usr/share/doc/aarch64-android-ghc-8.10.7/regex-base-0.94.0.2/html/regex-base.haddock doesn't exist or isn't a file
regex-base-0.94.0.2: Warning: haddock-html: /data/data/com.termux/files/usr/share/doc/aarch64-android-ghc-8.10.7/regex-base-0.94.0.2/html doesn't exist or isn't a directory
regex-base-0.94.0.2: dependency "base-4.14.3.0" doesn't exist (ignoring)
regex-base-0.94.0.2: dependency "bytestring-0.10.12.0" doesn't exist (ignoring)
regex-base-0.94.0.2: dependency "text-1.2.4.1" doesn't exist (ignoring)
regex-base-0.94.0.2: cannot find any of ["libHSregex-base-0.94.0.2-4joMmcIenrq1YqtnxTHLel.a","libHSregex-base-0.94.0.2-4joMmcIenrq1YqtnxTHLel_p.a","libHSregex-base-0.94.0.2-4joMmcIenrq1YqtnxTHLel-ghc9.2.5.so","libHSregex-base-0.94.0.2-4joMmcIenrq1YqtnxTHLel-ghc9.2.5.dylib","HSregex-base-0.94.0.2-4joMmcIenrq1YqtnxTHLel-ghc9.2.5.dll"] on library path (ignoring)

Installing all haskell libs via apt install haskell-* also finished without errors.

Note that QEMU user-mode issues can't be fixed on side of termux-docker image. I'm closing the ticket.

sylirre avatar Feb 23 '23 10:02 sylirre