add ruby 2.7 and native modules required by gitlab to fasttrack
Note: apt -t buster-backports install gitlab=13.1.4-1+fto10+1
for installing gitlab with ruby 2.5
Preparation
-
ruby 2.7 - @praveen -
ruby-defaults -
rubygems-integration -
check if we need to update any gems that failed ruby 2.7 rebuilds https://people.debian.org/~kanashiro/ruby2.7/builds/#FAIL
Notes
- Create
buster-fasttrack
branch from the last release tag (Example:git checkout -b buster-fasttrack debian/1.1.2-1
. Usegit log
for find last uploaded tag). - Add new changelog entry like given in https://wiki.debian.org/FastTrack (or run
dch --bpo
and modify version s/~bpo/+fto/ and s/backports/fasttrack/) - Update minimum version of gem2deb to 1.3 (and mention it in changelog)
- Build with sbuild using ruby 2.7 from fasttrack repo (see commands below)
- Add tag
gbp tag --debian-branch=buster-fasttrack
Building with fasttrack repo enabled
Save the following as /usr/local/bin/sbuild-fto
and run chmod +x /usr/local/bin/sbuild-fto
. Note: Replace http://HTTPS////
with https://
if you are not using apt-cacher-ng.
sbuild -A -s --force-orig-source -c buster-amd64-sbuild --extra-repository='deb http://deb.debian.org/debian buster-backports main' --extra-repository='deb http://incoming.debian.org/debian-buildd buildd-buster-backports main' --extra-repository='deb http://fasttrack.debian.net/debian buster-backports main' --extra-repository='deb http://fasttrack.debian.net/debian buster-fasttrack main' --extra-repository-key=$HOME/forge/debian/fasttrack-archive-key.asc --build-dep-resolver=aptitude -d buster-fasttrack --no-run-lintian "$@"
or if we need some build dependencies from fasttrack-staging repo (some package from the list below). Save the following as /usr/local/bin/sbuild-fto2
and run chmod +x /usr/local/bin/sbuild-fto
sbuild -A -s --force-orig-source -c buster-amd64-sbuild --extra-repository='deb http://deb.debian.org/debian buster-backports main' --extra-repository='deb http://incoming.debian.org/debian-buildd buildd-buster-backports main' --extra-repository='deb http://fasttrack.debian.net/debian buster-backports main' --extra-repository='deb http://fasttrack.debian.net/debian buster-fasttrack main' --extra-repository='deb http://HTTPS////people.debian.org/~praveen/fasttrack-staging/ buster-fasttrack main' --extra-repository='deb http://HTTPS////people.debian.org/~srud/fasttrack-staging/ buster-fasttrack main' --extra-repository-key=$HOME/forge/debian/praveen.key.new.asc --extra-repository-key=$HOME/forge/debian/fasttrack-archive-key.asc --extra-repository-key=$HOME/forge/debian/srud.key.asc --build-dep-resolver=aptitude -d buster-fasttrack --no-run-lintian "$@"
Download archive keys and add them to $HOME/forge/debian/
mkdir $HOME/forge/debian/
cd $HOME/forge/debian/
wget https://people.debian.org/~praveen/gitaly/praveen.key.new.asc
wget http://fasttrack.debian.net/fasttrack-archive-key.asc
wget https://people.debian.org/~srud/fasttrack-staging/srud.key.asc
Native modules that need a rebuild
From /usr/share/rubygems-integration/2.7.0/specifications/
-
atomic-1.1.16 -
bcrypt_pbkdf-1.0.1 -
bootsnap-1.4.6 - @praveen -
msgpack-1.1.0 @praveen
-
-
bson-4.7.0 -
character_set-1.1.2 -
charlock_holmes-0.7.6 -
commonmarker-0.20.2 -
ed25519-1.2.4 -
escape_utils-1.2.1 -
fast_blank-1.0.0 (@bhe uploaded, not tagged in salsa) -
ffi-1.12.2 @praveen -
github-linguist-7.9.0 @praveen -
gpgme-2.0.19 @praveen -
hamlit-2.11.0 (@bhe) -
kgio-2.11.0 -
nio4r-2.3.1 @praveen -
nokogiri-1.10.9 @praveen -
nokogumbo-1.4.2 @praveen -
oj-3.10.1 @praveen -
pg-1.2.0.pre20180828173948 @praveen /usr/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': can't find gem rdoc (>= 0.a) with executable rdoc (Gem::GemNotFoundException) -
posix-spawn-0.3.13 @Srud -
prometheus-client-mmap-0.10.0 @Srud -
puma-3.12.4 @Srud -
raindrops-0.19.0 depends on ruby-unicorn -
rbtrace-0.4.11 @Srud depends on ruby-optimist which is in buster-bpo new -
re2-1.2.0 @Srud -
redcarpet-3.5.0 @Srud -
RedCloth-4.3.2 /usr/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': can't find gem rdoc (>= 0.a) with executable rdoc (Gem::GemNotFoundException) -
regexp_property_values-0.3.4 @Srud -
rinku-1.7.3 /usr/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': can't find gem rdoc (>= 0.a) with executable rdoc (Gem::GemNotFoundException) -
ruby-prof-1.3.1 @Srud -
rugged-0.28.4.1 -
sqlite3-1.4.2 @Srud -
thrift-0.11.0.0 @Srud -
timfel-krb5-auth-0.8.3 @Srud -
unf_ext-0.0.7.6 @Srud -
unicode-0.4.4 @Srud -
unicorn-5.5.3 @avron -
version_sorter-2.2.4 -
vmstat-2.3.0 -
websocket-driver-0.6.3 -
yajl-ruby-1.3.1
From /usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/specifications/
-
bcrypt-3.1.13.gemspec - @praveen -
concurrent-ruby-ext-1.1.6.gemspec - @praveen -
enumerable-statistics-2.0.1.gemspec - @praveen -
google-protobuf-3.11.4.gemspec @praveen -
grpc-1.26.0.gemspec @praveen -
hitimes-1.2.1.gemspec -
murmurhash3-0.1.6.gemspec @praveen -
stackprof-0.2.15.gemspec @praveen
To skip rebuilding ruby-http-parser.rb
-
ruby-http @praveen
Backport required arch all packages (based on failed rebuild with 2.7)
-
ruby-babosa @praveen -
ruby-batch-loader @praveen -
ruby-declarative @praveen -
ruby-gettext @Srud -
ruby-json-schema @Srud -
ruby-net-scp @Srud -
ruby-power-assert @Srud -
ruby-premailer-rails @Srud -
ruby-recursive-open-struct @Srud -
ruby-sqlite3 @Srud -
ruby-tzinfo @Srud
already fixed in backports or not needed any more
-
ruby-browser -
ruby-carrierwave -
ruby-grape -
ruby-httpclient -
ruby-http-form-data -
ruby-influxdb -
ruby-kubeclient -
ruby-liquid -
ruby-pg -
ruby-redis -
ruby-redis-activesupport -
ruby-redis-rack -
ruby-sentry-raven -
ruby-sidekiq
gems found to need update after testing gitlab with ruby 2.7
broken build because gem2deb >= 1.0 was not given
-
ruby-commonmarker -
ruby-ed25519
error in /var/log/gitlab/unicorn-stderr.log
-
ruby-get-process-mem