[DRE-maint] Bug#1094123: nmu to fix FTBFS
Paul Gevers
elbrus at debian.org
Thu Feb 27 19:04:26 GMT 2025
Hi,
I have just uploaded ruby-mongo to fix the FTBFS since Ruby 3.3 is the
default. Somehow I missed that when I uploaded my previous NMU.
I did make a mistake in the versioning, the runes that I used to create
the changelog entry didn't recognize this was an NMU instead of a
maintainer upload and I failed to spot that, sorry for that.
Anyways, debdiff attached, I uploaded with dgit.
Paul
-------------- next part --------------
diff --git a/debian/changelog b/debian/changelog
index 4407d78..99f91a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-mongo (2.5.1-2) unstable; urgency=medium
+
+ * mongo.gemspec: fix for ruby3.3 File.exists? -> File.exist?
+ (Closes: #1094123)
+
+ -- Paul Gevers <elbrus at debian.org> Thu, 27 Feb 2025 19:57:22 +0100
+
ruby-mongo (2.5.1-1.2) unstable; urgency=medium
* Non-maintainer upload.
diff --git a/debian/patches/mongo.gemspec-fix-for-ruby3.3-file.exist.patch b/debian/patches/mongo.gemspec-fix-for-ruby3.3-file.exist.patch
new file mode 100644
index 0000000..e829f7b
--- /dev/null
+++ b/debian/patches/mongo.gemspec-fix-for-ruby3.3-file.exist.patch
@@ -0,0 +1,22 @@
+From: Paul Gevers <elbrus at debian.org>
+Date: Thu, 27 Feb 2025 19:48:08 +0100
+X-Dgit-Generated: 2.5.1-2 bf37ecf4a4269e7521a6116cd1aa87875c55bad7
+Subject: mongo.gemspec: fix for ruby3.3 File.exists? -> File.exist?
+
+Closes: #1094123
+
+---
+
+diff --git a/mongo.gemspec b/mongo.gemspec
+index 0cac7d6..e7cb3ed 100644
+--- a/mongo.gemspec
++++ b/mongo.gemspec
+@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
+ s.description = 'A Ruby driver for MongoDB'
+ s.license = 'Apache License Version 2.0'
+
+- if File.exists?('gem-private_key.pem')
++ if File.exist?('gem-private_key.pem')
+ s.signing_key = 'gem-private_key.pem'
+ s.cert_chain = ['gem-public_cert.pem']
+ else
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..75d5041
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+mongo.gemspec-fix-for-ruby3.3-file.exist.patch
diff --git a/mongo.gemspec b/mongo.gemspec
index 0cac7d6..e7cb3ed 100644
--- a/mongo.gemspec
+++ b/mongo.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.description = 'A Ruby driver for MongoDB'
s.license = 'Apache License Version 2.0'
- if File.exists?('gem-private_key.pem')
+ if File.exist?('gem-private_key.pem')
s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20250227/6a430735/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list