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

Debian 10 support #16

Closed
FooBarWidget opened this issue Jul 13, 2019 · 1 comment · Fixed by #32
Closed

Debian 10 support #16

FooBarWidget opened this issue Jul 13, 2019 · 1 comment · Fixed by #32

Comments

@FooBarWidget
Copy link
Member

We should build packages for Debian 10.

@FooBarWidget FooBarWidget added this to the General availability milestone Jul 13, 2019
@ndbroadbent
Copy link
Contributor

ndbroadbent commented Nov 17, 2019

Hello, this would be great! I would love to upgrade to Debian 10 and use the fullstaq Ruby package so that I don't need to compile it myself.

I tried the debian-9 source but I get the following error:

The following packages have unmet dependencies:
 fullstaq-ruby-2.5.7-jemalloc : Depends: libgdbm3 (>= 1.8.3) but it is not installable
E: Unable to correct problems, you have held broken packages.

Thanks for supporting these packages!

UPDATE: I've forked the repo and am trying to see if I can add support for Debian 10. I'm just getting started, but I wanted to say that this project has some really beautiful code!

What I've figured out so far (will update as I work through any issues)

Requirements:

  • Docker
  • Ruby, bundler

Commands:

Running on macOS with Docker and Ruby 2.5.7:

bundle install
cp -R ./environments/debian-9 ./environments/debian-10
./build-environment-image debian-10
# (Fix all the package issues)
./build-all-packages build:ruby-2.5.7:debian-10:jemalloc

# Seems to be working...
# Jemalloc built for debian-10!
# Building Ruby 2.5.7...
# Built!
 * DEB debian-10 jemalloc
     Build                    : Done              8 min 55 sec
     Package                  : In progress       12 sec

# Building package...
 * DEB debian-10 jemalloc
     Build                    : Done              8 min 55 sec
     Package                  : Done              53 sec

Ok I think it's all done! Now I just need to figure out where it saved the package.

$ ll output/
fullstaq-ruby-2.5.7-jemalloc_0-debian-10_amd64.deb  jemalloc-bin-3.6.0-debian-10.tar.gz.2Z05HJ
jemalloc-bin-3.6.0-debian-10.tar.gz                 ruby-bin-2.5.7-debian-10-jemalloc.tar.gz

To install the package in my own Docker image:

RUN curl <package_url> -o /tmp/ruby-2.5.7-jemalloc.deb \
  && apt install ./tmp/ruby-2.5.7-jemalloc.deb \
  && rm /tmp/ruby-2.5.7-jemalloc.deb

I can't believe this worked so smoothly! Not a single error, apart from needing to update libgdbm4 to libgdbm6.

Package updates for debian-10:

  • libgdbm4 => libgdbm6

THANKS!

This project is amazing!

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

Successfully merging a pull request may close this issue.

2 participants