FS#76188 - [ruby-sqlite3] Missing Dependency

Attached to Project: Community Packages
Opened by avimitin (avimitin) - Thursday, 13 October 2022, 09:17 GMT
Last edited by Andreas Schleifer (Segaja) - Thursday, 13 October 2022, 20:57 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Andreas Schleifer (Segaja)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The ruby-sqlite3 in community repo is missing spec mini_portile2.

Details Error logging:

/usr/lib/ruby/3.0.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'mini_portile2' (>= 2.8.0) among 91 total gem(s) (Gem::MissingSpecError)

In upstream gemspec, the mini_portile2 is required as runtime dependency: https://github.com/sparklemotion/sqlite3-ruby/blob/master/sqlite3.gemspec#L108

So we should move the mini_portile2 from makedepends to depends https://github.com/archlinux/svntogit-community/blob/packages/ruby-sqlite3/trunk/PKGBUILD#L14.

Here is my fixed patch, tested under x86_64.

diff --git repos/community-x86_64/PKGBUILD repos/community-x86_64/PKGBUILD
index 6e6375c..3760e2d 100644
--- repos/community-x86_64/PKGBUILD
+++ repos/community-x86_64/PKGBUILD
@@ -10,8 +10,8 @@ url='https://github.com/luislavena/sqlite3-ruby'
arch=('x86_64')
license=('BSD')
options=('!emptydirs')
-depends=('ruby' 'sqlcipher' 'sqlite')
-makedepends=('ruby-mini_portile2' 'ruby-rake' 'ruby-rake-compiler' 'ruby-rake-compiler-dock')
+depends=('ruby' 'sqlcipher' 'sqlite' 'ruby-mini_portile2')
+makedepends=('ruby-rake' 'ruby-rake-compiler' 'ruby-rake-compiler-dock')
source=("https://github.com/sparklemotion/sqlite3-ruby/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
sha512sums=('9f69d7fa3394da6fdf679d75f4426a6425b3b6d39ccd594be16b9dec184f6c10a0bb5f556a55149f60017634ce7668942227491ee39c57dee3141fe67bbd684a')

This task depends upon

Closed by  Andreas Schleifer (Segaja)
Thursday, 13 October 2022, 20:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in version 1.5.2-2

Loading...