Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libffi upgrade broken by libgcrypt #5487

Closed
stuart-little opened this issue Jul 7, 2020 · 6 comments
Closed

libffi upgrade broken by libgcrypt #5487

stuart-little opened this issue Jul 7, 2020 · 6 comments
Labels
bug report Something is not working properly.

Comments

@stuart-little
Copy link

stuart-little commented Jul 7, 2020

Problem description

Trying to upgrade libffi fails and produces the error

Preparing to unpack .../libffi_3.3-1_aarch64.deb ...
Unpacking libffi (3.3-1) over (3.3) ...
dpkg: error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/libffi_3.3-1_aarch64.deb (--unpack):
 trying to overwrite '/data/data/com.termux/files/usr/share/info/dir', which is also in package libgcrypt 1.8.5-2
Errors were encountered while processing:
 /data/data/com.termux/files/usr/var/cache/apt/archives/libffi_3.3-1_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)

Steps to reproduce

Assuming you have libffi installed, run apt upgrade.

Expected behavior

Normal error-free upgrade.

Additional information

Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
# sources.list.d/science.list.bak
deb https://dl.bintray.com/grimler/science-packages-24 science stable
# science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
# sources.list.d/game.list.bak
deb https://dl.bintray.com/grimler/game-packages-24 games stable
Updatable packages:
libffi/stable 3.3-1 aarch64 [upgradable from: 3.3]
Android version:
10
Kernel build information:
Linux localhost 4.9.179-perf+ #1 SMP PREEMPT Tue May 5 21:31:00 CST 2020 aarch64 Android
Device manufacturer:
OnePlus
Device model:
ONEPLUS A6013

@finagolfin
Copy link
Member

Yeah, I just hit this too.

@landfillbaby
Copy link
Member

landfillbaby commented Jul 7, 2020

dpkg: error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/libgcrypt_1.8.5-2_aarch64.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/share/info/dir', which is also in package flex 2.6.4-2

the same file that conflicts between libgcrypt and libffi also conflicts with flex
also everything is being bumped right now and there was no corresponding commit in the repo. what is happening?

@ghost ghost added the bug report Something is not working properly. label Jul 7, 2020
ghost pushed a commit that referenced this issue Jul 7, 2020
Causes file conflicts like #5487 and
generally shouldn't be needed for proper `info` functionality.
@ghost
Copy link

ghost commented Jul 7, 2020

also everything is being bumped right now and there was no corresponding commit in the repo. what is happening?

Read this: #5478 (comment). Lots of packages are going to be rebuilt and this is currently being done from non-master branch.

@ghost
Copy link

ghost commented Jul 7, 2020

I guess all packages containing info documentation will conflict with each other currently. I can fix that for common/known packages, but I do not have full list of those installing the usr/share/info/dir.

@landfillbaby
Copy link
Member

$ dpkg -S $PREFIX/share/info
bash, gnupg, texinfo, libksba, readline, fftw, libffi, bison, libgmp, libgpg-error, coreutils, libnettle, libmpfr, libtool, gzip, gawk, libgnutls, libassuan, inetutils, automake, make, grep, libidn2, libunistring, gdbm, flex, m4, diffutils, findutils, gdb, libgcrypt, ed, tar, sed, binutils: /data/data/com.termux/files/usr/share/info

does this help?

@Grimler91
Copy link
Member

Updates seem to be available now, I was at least able to upgrade my all packages on my two main devices without additional problems.

Thanks for reporting @stuart-little and thanks for the list @landfillbaby

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug report Something is not working properly.
Projects
None yet
Development

No branches or pull requests

4 participants