public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jarek Prokop <jprokop@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rubygem-pg] rawhide: Upgrade to pg 1.7.0.
Date: Fri, 23 Oct 2026 11:44:47 GMT [thread overview]
Message-ID: <179275588737.1.17903697871110835936.rpms-rubygem-pg-7a0fdd4c165f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rubygem-pg
Branch : rawhide
Commit : 7a0fdd4c165f520e0cb6445a58861ba7849b403d
Author : Jarek Prokop <jprokop@redhat.com>
Date : 2026-10-22T17:34:31+02:00
Stats : +19/-75 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rubygem-pg/c/7a0fdd4c165f520e0cb6445a58861ba7849b403d?branch=rawhide
Log:
Upgrade to pg 1.7.0.
Resolves: rhbz#2545227
---
diff --git a/rubygem-pg-1.3.0-remove-rpath.patch b/rubygem-pg-1.3.0-remove-rpath.patch
deleted file mode 100644
index ef0d2b9..0000000
--- a/rubygem-pg-1.3.0-remove-rpath.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/ext/extconf.rb b/ext/extconf.rb
---- a/ext/extconf.rb
-+++ b/ext/extconf.rb
-@@ -218,13 +218,6 @@ else
- dlldir = libdir
- end
-
-- # Try to use runtime path linker option, even if RbConfig doesn't know about it.
-- # The rpath option is usually set implicit by dir_config(), but so far not
-- # on MacOS-X.
-- if dlldir && RbConfig::CONFIG["RPATHFLAG"].to_s.empty?
-- append_ldflags "-Wl,-rpath,#{dlldir.quote}"
-- end
--
- if /mswin/ =~ RUBY_PLATFORM
- $libs = append_library($libs, 'ws2_32')
- end
diff --git a/rubygem-pg-pr737-support-json3.patch b/rubygem-pg-pr737-support-json3.patch
deleted file mode 100644
index f3ce615..0000000
--- a/rubygem-pg-pr737-support-json3.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From ebb4f88a80807d8e5391aca95ef573cf0ba5cd96 Mon Sep 17 00:00:00 2001
-From: Lars Kanis <lars@greiz-reinsdorf.de>
-Date: Tue, 11 Aug 2026 21:08:41 +0200
-Subject: [PATCH] Remove option "quirks_mode" from JSON en/decoder
-
-The option was introduces as part of https://github.com/ged/ruby-pg/issues/248 .
-However the "quirks_mode" was removed short time later from json gem:
- https://github.com/ruby/json/commit/7d2ad6d6556da03300a5aeadeeacaec563435773
-
-It was ignored since then, but recent ruby fails with:
- `ArgumentError: unknown keyword: quirks_mode`
-at `JSON.parse` and `JSON.generate` since that commit:
- https://github.com/ruby/ruby/commit/ac60d4ae4dc9aeb522d242406345e7f8834e76cd
----
- lib/pg/text_decoder/json.rb | 2 +-
- lib/pg/text_encoder/json.rb | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/lib/pg/text_decoder/json.rb b/lib/pg/text_decoder/json.rb
-index 93ecd55d0..c5a4c118e 100644
---- a/lib/pg/text_decoder/json.rb
-+++ b/lib/pg/text_decoder/json.rb
-@@ -10,7 +10,7 @@ module TextDecoder
- # As soon as this class is used, it requires the ruby standard library 'json'.
- class JSON < SimpleDecoder
- def decode(string, tuple=nil, field=nil)
-- ::JSON.parse(string, quirks_mode: true)
-+ ::JSON.parse(string)
- end
- end
- end
-diff --git a/lib/pg/text_encoder/json.rb b/lib/pg/text_encoder/json.rb
-index 36bbc704a..51e6a2cc9 100644
---- a/lib/pg/text_encoder/json.rb
-+++ b/lib/pg/text_encoder/json.rb
-@@ -10,7 +10,7 @@ module TextEncoder
- # As soon as this class is used, it requires the ruby standard library 'json'.
- class JSON < SimpleEncoder
- def encode(value)
-- ::JSON.generate(value, quirks_mode: true)
-+ ::JSON.generate(value)
- end
- end
- end
diff --git a/rubygem-pg.spec b/rubygem-pg.spec
index 4c6b3c1..d8ced57 100644
--- a/rubygem-pg.spec
+++ b/rubygem-pg.spec
@@ -2,21 +2,15 @@
%global gem_name pg
Name: rubygem-%{gem_name}
-Version: 1.6.3
-Release: 4%{?dist}
+Version: 1.7.0
+Release: 1%{?dist}
Summary: Pg is the Ruby interface to the PostgreSQL RDBMS
License: (BSD-2-Clause OR Ruby) AND PostgreSQL
URL: https://github.com/ged/ruby-pg
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone --no-checkout https://github.com/ged/ruby-pg.git
-# git archive -v -o pg-1.6.3-spec.tar.gz v1.6.3 spec/
+# git archive -v -o pg-1.7.0-spec.tar.gz v1.7.0 spec/
Source1: %{gem_name}-%{version}-spec.tar.gz
-# Disable RPATH.
-# https://github.com/ged/ruby-pg/issues/183
-Patch0: rubygem-pg-1.3.0-remove-rpath.patch
-# Support json 3
-# https://github.com/ged/ruby-pg/pull/737
-Patch1: rubygem-pg-pr737-support-json3.patch
# lib/pg/text_{de,en}coder.rb
Requires: rubygem(json)
# This is optional dependency now.
@@ -33,6 +27,8 @@ BuildRequires: postgresql-server libpq-devel
# This is optional dependency now.
# https://github.com/ged/ruby-pg/pull/556
BuildRequires: rubygem(bigdecimal)
+# Used in TCPGateScheduler spec helper class.
+BuildRequires: rubygem(drb)
BuildRequires: rubygem(rspec)
%description
@@ -51,9 +47,6 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b 1
-%patch 0 -p1
-%patch 1 -p1
-
%build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec
@@ -78,6 +71,14 @@ rm -rf %{buildroot}%{gem_instdir}/ext/
pushd .%{gem_instdir}
ln -s %{_builddir}/spec .
+# These tests seem to allocate more than 32bit address space can provide.
+# the rspec process ends with NoMemoryError if any of the tests are attempted.
+# https://github.com/ged/ruby-pg/issues/756
+%ifarch %{ix86}
+sed -i -e '/^\t\{4\}it "should encode big strings without crash" do$/a skip "requires a 64-bit address space"' spec/pg/type_spec.rb
+sed -i -e '/^\t\{3\}it "should encode big strings with typecasting without overflow" do$/a skip "requires a 64-bit address space"' spec/pg/connection_spec.rb
+%endif
+
# Assign a random port to consider a case of multi builds in parallel in a host.
# https://github.com/ged/ruby-pg/pull/39
export PGPORT="$((54321 + ${RANDOM} % 1000))"
@@ -123,6 +124,10 @@ popd
%{gem_instdir}/sample
%changelog
+* Tue Oct 20 2026 Jarek Prokop <jprokop@redhat.com> - 1.7.0-1
+- Upgrade to pg 1.7.0.
+ Resolves: rhbz#2545227
+
* Sun Sep 13 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.6.3-4
- Apply upstream fix to support json 3
diff --git a/sources b/sources
index 4c8bc9b..6bfddb0 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (pg-1.6.3.gem) = 5864a5b0983cf31b1ba2e4329723aa539c0e16162a32e6ed09b49af47a0f603b2fd6549f46e76cba3263f37b3ef22272f729c6c1d11cab92140c33768edeca1b
-SHA512 (pg-1.6.3-spec.tar.gz) = 4677519c04b849f32bb3198da1e6becd58cbc93b10f096d690e4deac9348d82c00914f52b2859ecf2da4fd51148ba243da7461f5c380e4ad98a2b0052a2e6cd5
+SHA512 (pg-1.7.0.gem) = bca9a6a1fdb4272ceead5b64ab279b59a85c793e37d10750a8509c44fb0f65be08e5c8c81cca9c9f44d7b08b1358f689c3e0a49f9c64290f51beca97ee7b8cd5
+SHA512 (pg-1.7.0-spec.tar.gz) = 9fd092dae9ff9fe2d1bd7c2c11e2b4f4ecd3628dd69f1acefca9d7bae37661647bff206fb96c1b946d13358012f93a86063b1891de605540142290009b752402
reply other threads:[~2026-10-23 11:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179275588737.1.17903697871110835936.rpms-rubygem-pg-7a0fdd4c165f@fedoraproject.org \
--to=jprokop@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox