user/gitaly: fix rugged usage
This commit is contained in:
parent
bef1d6bf89
commit
4e5ed4ab52
3 changed files with 10 additions and 59 deletions
|
@ -3,7 +3,7 @@
|
|||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=gitaly
|
||||
pkgver=15.3.3
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="A Git RPC service for handling all the git calls made by GitLab"
|
||||
url="https://gitlab.com/gitlab-org/gitaly/"
|
||||
arch="all"
|
||||
|
@ -23,12 +23,12 @@ makedepends="
|
|||
go
|
||||
icu-dev
|
||||
libffi-dev
|
||||
libgit2-dev=~1.5.2
|
||||
libssh2-dev
|
||||
libxml2-dev
|
||||
libxslt-dev
|
||||
ruby3.0-dev
|
||||
ruby3.0-grpc=~1.42.0
|
||||
ruby3.0-rugged=~1.5.0.1
|
||||
zlib-dev
|
||||
"
|
||||
subpackages="
|
||||
|
@ -39,7 +39,7 @@ subpackages="
|
|||
"
|
||||
source="https://gitlab.com/gitlab-org/gitaly/-/archive/v$pkgver/gitaly-v$pkgver.tar.gz
|
||||
gemfile-use-local-grpc.patch
|
||||
gemfile-use-local-rugged.patch
|
||||
libgit-1.5.2-compat.patch
|
||||
config.patch
|
||||
$pkgname.initd
|
||||
"
|
||||
|
@ -59,7 +59,7 @@ prepare() {
|
|||
|
||||
# Some gems are broken, so we copy our fixed version
|
||||
# instead of installing it from RubyGems using Bundler.
|
||||
for i in grpc rugged; do
|
||||
for i in rugged; do
|
||||
mkdir -p ruby/vendor/$i/src/ruby/lib/$i
|
||||
cp -r "$sysgemdir"/gems/$i-*/* ruby/vendor/$i/
|
||||
cp "$sysgemdir"/specifications/$i-*.gemspec \
|
||||
|
@ -145,6 +145,7 @@ package() {
|
|||
./*/README*
|
||||
|
||||
# Remove bundled pg_query sources.
|
||||
rm -R rugged-*/vendor/libgit2
|
||||
rm -R pg_query-*/ext
|
||||
|
||||
# Remove assets, they are not used in gitaly-ruby.
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
From: Antoine Martin (ayakael) <dev@ayakael.net)
|
||||
Date: Wed, 09 Mar 2023 17:24:00 +0200
|
||||
Subject: Don't fetch rugged gem from RubyGems
|
||||
|
||||
Rugged gem, since 1.5.0, has issues related libgit2 version checking.
|
||||
Thus, install fails.
|
||||
|
||||
Therefore this patch sources the gem from the ruby-rugged Alpine package
|
||||
and copies it into vendor/ before running bundler
|
||||
|
||||
diff --git a/ruby/Gemfile.orig b/ruby/Gemfile
|
||||
index 5982fc4..6c339f7 100644
|
||||
--- a/ruby/Gemfile.orig
|
||||
+++ b/ruby/Gemfile
|
||||
@@ -1,6 +1,6 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
-gem 'rugged', '~> 1.2'
|
||||
+gem 'rugged', path: 'vendor/rugged', require: false
|
||||
gem 'github-linguist', '~> 7.20.0', require: 'linguist'
|
||||
gem 'gitlab-markup', '~> 1.7.1'
|
||||
gem 'activesupport', '~> 6.1.6.1'
|
||||
diff --git a/ruby/Gemfile.lock.orig b/ruby/Gemfile.lock
|
||||
index 5cfc90f..7cd8b85 100644
|
||||
--- a/ruby/Gemfile.lock.orig
|
||||
+++ b/ruby/Gemfile.lock
|
||||
@@ -4,6 +4,11 @@ PATH
|
||||
grpc (1.42.0)
|
||||
google-protobuf (~> 3.18)
|
||||
|
||||
+PATH
|
||||
+ remote: vendor/rugged
|
||||
+ specs:
|
||||
+ rugged (1.5.0.1)
|
||||
+
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
@@ -193,7 +198,6 @@ GEM
|
||||
parser (>= 2.7.0.1)
|
||||
ruby-progressbar (1.10.1)
|
||||
rubyzip (2.3.2)
|
||||
- rugged (1.2.0)
|
||||
sanitize (6.0.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.12.0)
|
||||
@@ -247,7 +251,7 @@ DEPENDENCIES
|
||||
rspec
|
||||
rspec-parameterized
|
||||
rubocop (~> 0.69)
|
||||
- rugged (~> 1.2)
|
||||
+ rugged!
|
||||
sentry-raven (~> 3.0)
|
||||
timecop
|
||||
|
5
user/gitaly/libgit-1.5.2-compat.patch
Normal file
5
user/gitaly/libgit-1.5.2-compat.patch
Normal file
|
@ -0,0 +1,5 @@
|
|||
--- a/ruby/Gemfile.lock
|
||||
+++ b/ruby/Gemfile.lock
|
||||
@@ -196 +196 @@
|
||||
- rugged (1.2.0)
|
||||
+ rugged (1.5.2)
|
Loading…
Reference in a new issue