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

🐛 Problem with new release installation. #1250

Open
DarkPark opened this issue Dec 3, 2022 · 10 comments
Open

🐛 Problem with new release installation. #1250

DarkPark opened this issue Dec 3, 2022 · 10 comments

Comments

@DarkPark
Copy link

DarkPark commented Dec 3, 2022

Debian 11 stable.

$ sudo dpkg -i /home/user/software/git-delta_0.15.1_amd64.deb 
(Reading database ... 197575 files and directories currently installed.)
Preparing to unpack .../git-delta_0.15.1_amd64.deb ...
Unpacking git-delta (0.15.1) over (0.14.0) ...
dpkg: dependency problems prevent configuration of git-delta:
 git-delta depends on libc6 (>= 2.34); however:
  Version of libc6:amd64 on system is 2.31-13+deb11u5.

dpkg: error processing package git-delta (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 git-delta

Current latest glibc6 installed:

Package: libc6
Source: glibc
Version: 2.31-13+deb11u4
@dandavison
Copy link
Owner

@DarkPark @baryluk what's the recommended course of action here?

I saw you made this diagram: #1248 (comment)

image

@baryluk
Copy link
Contributor

baryluk commented Dec 4, 2022

@DarkPark Could you try musl version. My guess is it is statically linked, and maybe it will work.

As far as I know the only reasonable option is to build on older version of Ubuntu or Debian, so minimal GLIBC ABI used is lower than 2.34. glibc does not support other methods.

@aureq
Copy link

aureq commented Dec 4, 2022

@baryluk Installing git-delta-musl_0.15.1_amd64.deb works just fine, because the generated control file doesn't show any dependencies on libc6 (>= 2.34). I think this could be a temporary workaround.

@dandavison A possible way to address this would be to build delta on a debian image instead of ubuntu-latest (I think) so the dynamic reference uses an older version of glibc. Alternatively, musl could just become the default package.

control (musl)

Package: git-delta-musl
Version: 0.15.1
Section: utils
Priority: optional
Maintainer: Dan Davison <dandavison7@gmail.com>
Architecture: amd64
Depends: 
Conflicts: delta
Description: Syntax highlighter for git
 Delta provides language syntax-highlighting, within-line insertion/deletion
 detection, and restructured diff output for git on the command line.

control (libc6)

Package: git-delta
Version: 0.15.1
Section: utils
Priority: optional
Maintainer: Dan Davison <dandavison7@gmail.com>
Architecture: amd64
Depends: libc6 (>= 2.34), libgcc-s1 (>= 4.2), zlib1g (>= 1:1.1.4)
Conflicts: delta-musl
Description: Syntax highlighter for git
 Delta provides language syntax-highlighting, within-line insertion/deletion
 detection, and restructured diff output for git on the command line.

@den-is
Copy link

den-is commented Dec 11, 2022

Same here. Broken install in debian:bullseye docker image, that I use in my VScode devcontainer setup. I don't need any fancy modern OSs.

#4 122.6 The following packages have unmet dependencies:
#4 122.6  git-delta : Depends: libc6 (>= 2.34) but 2.31-13+deb11u5 is installed

musl version works

@dandavison
Copy link
Owner

A possible way to address this would be to build delta on a debian image instead of ubuntu-latest (I think) so the dynamic reference uses an older version of glibc. Alternatively, musl could just become the default package.

@MarcoIeni do you have any thoughts on the right way forwards here?

@MarcoIeni
Copy link
Contributor

MarcoIeni commented Jan 8, 2023

A possible way to address this would be to build delta on a debian image

GitHub doesn't offer a Debian image :/
See this

Alternatively, musl could just become the default package.

Yes, we can remove git-delta_0.x.y_amd64.deb from the releases and make git-delta-musl_0.x.y_amd64.deb the default (by renaming it to git-delta_0.x.y_amd64.deb)

@eggbean
Copy link

eggbean commented Feb 6, 2023

Wouldn't just using the ubuntu 20.04 GitHub Actions runner work? Ubuntu 20.04 uses glibc 2.31. I can't use the latest version of delta on Debian instances, so I have switched to the musl build for the time being.

@lpanebr
Copy link

lpanebr commented Feb 21, 2023

I've just installed on Ubuntu 20.04.5 LTS and got the same error:

❯ sudo dpkg -i git-delta_0.15.1_amd64.deb
Selecting previously unselected package git-delta.
(Reading database ... 356946 files and directories currently installed.)
Preparing to unpack git-delta_0.15.1_amd64.deb ...
Unpacking git-delta (0.15.1) ...
dpkg: dependency problems prevent configuration of git-delta:
 git-delta depends on libc6 (>= 2.34); however:
  Version of libc6:amd64 on system is 2.31-0ubuntu9.9.

dpkg: error processing package git-delta (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 git-delta

It gets installed but fails:

❯ delta
delta: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by delta)
delta: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by delta)
delta: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by delta)

I tried building it from source but got errors:
image

Any idea of how to get it running?

Perhaps a docker image version?

@lpanebr
Copy link

lpanebr commented Feb 21, 2023

Followup:

I could install version 0.14.0 and it works:

❯ sudo dpkg -i git-delta-musl_0.14.0_amd64.deb
Selecting previously unselected package git-delta-musl.
(Reading database ... 356946 files and directories currently installed.)
Preparing to unpack git-delta-musl_0.14.0_amd64.deb ...
Unpacking git-delta-musl (0.14.0) ...
Setting up git-delta-musl (0.14.0) ...

@dandavison
Copy link
Owner

Superficial research: there's a similar bat issue sharkdp/bat#2106 with possibly applicable fix sharkdp/bat#2194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants