Sign In
Sign Up
Search is temporarily disabled. See
ticket
for more info.
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
List overview
Download
scm-commits
August 2023
----- 2024 -----
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
scm-commits@lists.fedoraproject.org
1 participants
23176 discussions
Start a n
N
ew thread
decathorpe pushed to rpms/rust-dolby_vision (rawhide). "Update to version 3.2.0; Fixes RHBZ#2229769"
by notificationsï¼ fedoraproject.org
01 Sep '23
01 Sep '23
Notification time stamped 2023-08-31 23:04:51 UTC From 433cfc957aefec3eea28fd602c8047e8bd94e540 Mon Sep 17 00:00:00 2001 From: Fabio Valentini <decathorpe(a)gmail.com> Date: Aug 27 2023 15:05:51 +0000 Subject: Update to version 3.2.0; Fixes RHBZ#2229769 --- diff --git a/dolby_vision-fix-metadata.diff b/dolby_vision-fix-metadata.diff new file mode 100644 index 0000000..d4bc602 --- /dev/null +++ b/dolby_vision-fix-metadata.diff @@ -0,0 +1,24 @@ +--- dolby_vision-3.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ dolby_vision-3.2.0/Cargo.toml 2023-08-27T14:45:23.250385+00:00 +@@ -39,10 +39,7 @@ + + [lib] + doctest = false +- +-[[bench]] +-name = "bench_main" +-harness = false ++crate-type = ["lib", "cdylib"] + + [dependencies.anyhow] + version = "1.0.72" +@@ -76,9 +73,6 @@ + features = ["preserve_order"] + optional = true + +-[dev-dependencies.criterion] +-version = "0.5.1" +- + [features] + capi = ["libc"] + serde = [ diff --git a/rust-dolby_vision-deps.patch b/rust-dolby_vision-deps.patch deleted file mode 100644 index 2c64305..0000000 --- a/rust-dolby_vision-deps.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up dolby_vision-3.1.2/Cargo.toml.orig dolby_vision-3.1.2/Cargo.toml ---- dolby_vision-3.1.2/Cargo.toml.orig 1970-01-01 01:00:01.000000000 +0100 -+++ dolby_vision-3.1.2/Cargo.toml 2023-06-21 10:53:53.100347261 +0200 -@@ -76,9 +76,6 @@ version = "1.0.93" - features = ["preserve_order"] - optional = true - --[dev-dependencies.criterion] --version = "0.4.0" -- - [features] - capi = ["libc"] - serde = [ diff --git a/rust-dolby_vision.spec b/rust-dolby_vision.spec index f80e36d..ee572db 100644 --- a/rust-dolby_vision.spec +++ b/rust-dolby_vision.spec @@ -1,26 +1,63 @@ # Generated by rust2rpm 24 %bcond_without check -%global debug_package %{nil} %global crate dolby_vision Name: rust-dolby_vision -Version: 3.1.2 +Version: 3.2.0 Release: %autorelease Summary: Dolby Vision metadata parsing and writing License: MIT URL:
https://crates.io/crates/dolby_vision
Source: %{crates_source} -Patch: %{name}-deps.patch +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * explicitly mark library as a "cdylib" type to fix spec generation +Patch: dolby_vision-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: cargo-c %global _description %{expand: Dolby Vision metadata parsing and writing.} %description %{_description} +%package -n libdovi +Summary: %{summary} +# Apache-2.0 OR BSL-1.0 +# Apache-2.0 OR MIT +# MIT +# MIT OR Apache-2.0 +License: MIT AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) +# LICENSE.dependencies contains a full license breakdown + +%description -n libdovi %{_description} + +This package contains the C library. + +%files -n libdovi +%license LICENSE +%license LICENSE.dependencies +%doc CHANGELOG.md +%doc README.md +%{_libdir}/libdovi.so.3{,.*} + +%package -n libdovi-devel +Summary: %{summary} +Requires: libdovi%{?_isa} = %{version}-%{release} + +%description -n libdovi-devel %{_description} + +This package contains the C library development files. + +%files -n libdovi-devel +%{_libdir}/libdovi.so +%{_libdir}/pkgconfig/dovi.pc +%dir %{_includedir}/libdovi +%{_includedir}/libdovi/rpu_parser.h + %package devel Summary: %{summary} BuildArch: noarch @@ -108,74 +145,29 @@ use the "xml" feature of the "%{crate}" crate. %files -n %{name}+xml-devel %ghost %{crate_instdir}/Cargo.toml -%package -n libdovi -Summary: %{summary} -BuildRequires: cargo-c -BuildRequires: rust-indexmap-devel -BuildRequires: rust-roxmltree-devel - -%description -n libdovi %{_description} - -This package contains the C library. - -%package -n libdovi-devel -Summary: %{summary} -Requires: libdovi%{_isa} = %{version}-%{release} - -%description -n libdovi-devel %{_description} - -This package contains the C library development files. - - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires %cargo_generate_buildrequires -a -echo "cargo-c" %build -%cargo_build -%{__cargo} cbuild \ - %{__cargo_common_opts} \ - --release \ - --library-type=cdylib \ - --destdir=%{buildroot} \ - --prefix=%{_prefix} \ - --includedir=%{_includedir} \ - --libdir=%{_libdir} \ - +%cargo_build -a +%cargo_cbuild --all-features +%{cargo_license_summary -a} +%{cargo_license -a} > LICENSE.dependencies %install -%cargo_install -%{__cargo} cinstall \ - %{?_smp_mflags} \ - --release \ - --library-type=cdylib \ - --destdir=%{buildroot} \ - --prefix=%{_prefix} \ - --includedir=%{_includedir} \ - --libdir=%{_libdir} \ - +%cargo_install -a +%cargo_cinstall --all-features +rm %{buildroot}/%{_libdir}/libdovi.a %if %{with check} %check -%cargo_test +# * skip tests that require files that are not included in published crates +%cargo_test -a -- -- --skip rpu::generate::tests::config_with_frame_edits --skip xml::tests::parse %endif -%files -n libdovi-devel -%doc examples README.md -%{_libdir}/libdovi.so -%{_libdir}/pkgconfig/dovi.pc -%dir %{_includedir}/libdovi -%{_includedir}/libdovi/rpu_parser.h - -%files -n libdovi -%license LICENSE -%doc CHANGELOG.md -%{_libdir}/libdovi.so.3{,.*} - %changelog %autochangelog diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..f626714 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +all-features = true diff --git a/sources b/sources index 6d01591..cbe4df1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (dolby_vision-3.1.2.crate) = 00047358237d284b9c0d144b5edf3fac83a1273bf7b2cd658bf3bcd8634358c3a2d026fcb4e49247b7c74be127a06a8b0c142d72dfbfc363a974007c1552bca4 +SHA512 (dolby_vision-3.2.0.crate) = 191d103aa52a5a1330b290145218420f4ff26b2772b4812873b6b455c6b976a3e2bdfb7195943dec0d58515ad338d42451fd4b8563e653ce5e49556c90e1bd2e
https://src.fedoraproject.org/rpms/rust-dolby_vision/c/433cfc957aefec3eea28…
1
0
0
0
jjames pushed to rpms/musescore (f39). "Fix Gootville font config file error"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 22:51:03 UTC From 711ce1ea86e5c0f386321f9f269afaa55717fea3 Mon Sep 17 00:00:00 2001 From: Jerry James <loganjerry(a)gmail.com> Date: Aug 31 2023 20:52:03 +0000 Subject: Fix Gootville font config file error --- diff --git a/musescore.spec b/musescore.spec index 6b32bb2..2d31dfb 100644 --- a/musescore.spec +++ b/musescore.spec @@ -19,7 +19,7 @@ Name: musescore Summary: Music Composition & Notation Software Version: %{musescore_ver} -Release: 1%{?dist} +Release: 2%{?dist} # The MuseScore project itself is GPL-3.0-only WITH Font-exception-2.0. Other # licenses in play: @@ -179,7 +179,7 @@ Provides: mscore-gootville-fonts = %{musescore_ver}-%{release} %global fontlicense9 OFL-1.1 %global fonts9 fonts/gootville/GootvilleText.otf %global fontdocs9 fonts/gootville/readme.txt -%global fontconfs9 %{SOURCE10} +%global fontconfs9 %{SOURCE9} %global fontdescription9 %{expand: The Gootville Text font is designed to complement the Gootville font.} %global fontpkgheader9 %{expand: @@ -546,6 +546,9 @@ hardlink %{buildroot}%{_datadir}/mscore-%{musescore_maj} %fontfiles -z 9 %changelog +* Thu Aug 31 2023 Jerry James <loganjerry(a)gmail.com> - 4.1.1-2 +- Fix Gootville font config file error + * Wed Aug 30 2023 Jerry James <loganjerry(a)gmail.com> - 4.1.1-1 - Version 4.1.1 - Rename from mscore to musescore
https://src.fedoraproject.org/rpms/musescore/c/711ce1ea86e5c0f386321f9f269a…
1
0
0
0
defolos pushed to rpms/osc (f37). "New upstream release 1.3.1, fixes rhbz#2236047"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:59:50 UTC From 4f9ec1dcecddf217d82829363201688fbad318c0 Mon Sep 17 00:00:00 2001 From: Dan Čermák <dan.cermak(a)cgc-instruments.com> Date: Aug 31 2023 21:56:40 +0000 Subject: New upstream release 1.3.1, fixes rhbz#2236047 --- diff --git a/.gitignore b/.gitignore index 5a11758..31ce633 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ /osc-1.1.4.tar.gz /osc-1.2.0.tar.gz /osc-1.3.0.tar.gz +/osc-1.3.1.tar.gz diff --git a/osc.spec b/osc.spec index 45fa42f..8fb7c0d 100644 --- a/osc.spec +++ b/osc.spec @@ -2,7 +2,7 @@ # when rebasing check what they are using on #
https://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_38/src/
# update the obsrel to match the upstream release number -%global obsrel 372.1 +%global obsrel 375.1 # osc plugin support %global osc_plugin_dir %{_prefix}/lib/osc-plugins @@ -16,7 +16,7 @@ Name: osc Summary: Open Build Service Commander -Version: 1.3.0 +Version: 1.3.1 # Bump the release as necessary to ensure we're one level up from upstream Release: %{obsrel}.%{baserelease}%{?dist} License: GPL-2.0-or-later @@ -127,6 +127,9 @@ python3 setup.py test %dir %{osc_plugin_dir} %changelog +* Thu Aug 31 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.1-375.1.1 +- New upstream release 1.3.1, fixes rhbz#2236047 + * Wed Aug 9 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.0-372.1.1 - New upstream release 1.3.0 diff --git a/sources b/sources index 2d4ac43..a837f63 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (osc-1.3.0.tar.gz) = 02b91740e26c25da92d0422228b365332d6cff8564a7089a21b61ac379cb42a1283fc16f7ee82bc16a061bf6f90976de376c0d8708f8317e56dceb1e9b9caca8 +SHA512 (osc-1.3.1.tar.gz) = b665b2afc21460e1cfafa153ef38792dbbb2a86bfca849b8305cd09c18b85fe180348fa5794341453c4460aa82a6a125fb8b8784301a2ca7b81294c87d7e002d
https://src.fedoraproject.org/rpms/osc/c/4f9ec1dcecddf217d82829363201688fba…
1
0
0
0
defolos pushed to rpms/osc (f38). "New upstream release 1.3.1, fixes rhbz#2236047"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:59:28 UTC From 4f9ec1dcecddf217d82829363201688fbad318c0 Mon Sep 17 00:00:00 2001 From: Dan Čermák <dan.cermak(a)cgc-instruments.com> Date: Aug 31 2023 21:56:40 +0000 Subject: New upstream release 1.3.1, fixes rhbz#2236047 --- diff --git a/.gitignore b/.gitignore index 5a11758..31ce633 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ /osc-1.1.4.tar.gz /osc-1.2.0.tar.gz /osc-1.3.0.tar.gz +/osc-1.3.1.tar.gz diff --git a/osc.spec b/osc.spec index 45fa42f..8fb7c0d 100644 --- a/osc.spec +++ b/osc.spec @@ -2,7 +2,7 @@ # when rebasing check what they are using on #
https://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_38/src/
# update the obsrel to match the upstream release number -%global obsrel 372.1 +%global obsrel 375.1 # osc plugin support %global osc_plugin_dir %{_prefix}/lib/osc-plugins @@ -16,7 +16,7 @@ Name: osc Summary: Open Build Service Commander -Version: 1.3.0 +Version: 1.3.1 # Bump the release as necessary to ensure we're one level up from upstream Release: %{obsrel}.%{baserelease}%{?dist} License: GPL-2.0-or-later @@ -127,6 +127,9 @@ python3 setup.py test %dir %{osc_plugin_dir} %changelog +* Thu Aug 31 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.1-375.1.1 +- New upstream release 1.3.1, fixes rhbz#2236047 + * Wed Aug 9 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.0-372.1.1 - New upstream release 1.3.0 diff --git a/sources b/sources index 2d4ac43..a837f63 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (osc-1.3.0.tar.gz) = 02b91740e26c25da92d0422228b365332d6cff8564a7089a21b61ac379cb42a1283fc16f7ee82bc16a061bf6f90976de376c0d8708f8317e56dceb1e9b9caca8 +SHA512 (osc-1.3.1.tar.gz) = b665b2afc21460e1cfafa153ef38792dbbb2a86bfca849b8305cd09c18b85fe180348fa5794341453c4460aa82a6a125fb8b8784301a2ca7b81294c87d7e002d
https://src.fedoraproject.org/rpms/osc/c/4f9ec1dcecddf217d82829363201688fba…
1
0
0
0
pagure pushed to rpms/python-gunicorn (epel8). "Restore compatibility with RHEL 8's gevent (..more)"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:59:26 UTC From a28a845f9c4b5b386482e6077cdaeb83033efcec Mon Sep 17 00:00:00 2001 From: Carl George <carlwgeorge(a)fedoraproject.org> Date: Aug 31 2023 21:25:53 +0000 Subject: Restore compatibility with RHEL 8's gevent - Backport worker tests from upstream Resolves rhbz#2234825 --- diff --git a/0001-use-dev-log-for-syslog.patch b/0001-use-dev-log-for-syslog.patch index 59d47cf..115fbd1 100644 --- a/0001-use-dev-log-for-syslog.patch +++ b/0001-use-dev-log-for-syslog.patch @@ -1,14 +1,17 @@ -From 4bf056a23856dab615cad7cb8707956e5b2a6598 Mon Sep 17 00:00:00 2001 +From ed9d871e203be9c9a0c7dfd2d71e5290335373a0 Mon Sep 17 00:00:00 2001 From: Dan Callaghan <dcallagh(a)redhat.com> Date: Wed, 2 Jan 2013 11:48:54 +1000 -Subject: [PATCH 1/2] use /dev/log for syslog +Subject: [PATCH 1/3] use /dev/log for syslog +--- + gunicorn/config.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/config.py b/gunicorn/config.py -index aa97894..98e7783 100644 +index f21f74f8..0db1a311 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py -@@ -1367,7 +1367,7 @@ class SyslogTo(Setting): +@@ -1394,7 +1394,7 @@ class SyslogTo(Setting): default = "unix:///var/run/syslog" elif PLATFORM in ('freebsd', 'dragonfly', ): default = "unix:///var/run/log" @@ -18,5 +21,5 @@ index aa97894..98e7783 100644 else: default = "udp://localhost:514" -- -2.17.1 +2.41.0 diff --git a/0002-Restore-compatibility-with-older-gevent.patch b/0002-Restore-compatibility-with-older-gevent.patch new file mode 100644 index 0000000..08d9a39 --- /dev/null +++ b/0002-Restore-compatibility-with-older-gevent.patch @@ -0,0 +1,141 @@ +From d5ce78c2440c3c27f3369c7b5c7c787ec1aa0cd5 Mon Sep 17 00:00:00 2001 +From: Carl George <carl(a)george.computer> +Date: Thu, 31 Aug 2023 15:57:22 -0500 +Subject: [PATCH 2/3] Restore compatibility with older gevent + +Upstream added a runtime check for gevent 1.4 in gunicorn 20.0.0. +However, they didn't enforce this minimum version at install time in +setup.py until gunicorn 20.1.0. This resulted in gunicorn 20.0.4 being +added to EPEL 8, even though RHEL 8 only has gevent 1.2.2. This commit +removes that runtime check and the other corresponding changes so that +gunicorn 20.0.4 works with gevent 1.2.2. + +Partially revert "Bump minimum Eventlet and Gevent versions (#1962)" + +This partially reverts commit 9f87c88819b901d4cd8ddf6c2bba1198b68903cb. +--- + gunicorn/config.py | 2 +- + gunicorn/workers/ggevent.py | 61 ++++++++++++++++++++++++++++--------- + 2 files changed, 48 insertions(+), 15 deletions(-) + +diff --git a/gunicorn/config.py b/gunicorn/config.py +index 0db1a311..2ef1776d 100644 +--- a/gunicorn/config.py ++++ b/gunicorn/config.py +@@ -641,7 +641,7 @@ class WorkerClass(Setting): + * ``sync`` + * ``eventlet`` - Requires eventlet >= 0.24.1 (or install it via + ``pip install gunicorn[eventlet]``) +- * ``gevent`` - Requires gevent >= 1.4 (or install it via ++ * ``gevent`` - Requires gevent >= 0.13 (or install it via + ``pip install gunicorn[gevent]``) + * ``tornado`` - Requires tornado >= 0.2 (or install it via + ``pip install gunicorn[tornado]``) +diff --git a/gunicorn/workers/ggevent.py b/gunicorn/workers/ggevent.py +index 85418035..b0d158d2 100644 +--- a/gunicorn/workers/ggevent.py ++++ b/gunicorn/workers/ggevent.py +@@ -10,18 +10,20 @@ from datetime import datetime + from functools import partial + import time + ++_socket = __import__("socket") ++ ++# workaround on osx, disable kqueue ++if sys.platform == "darwin": ++ os.environ['EVENT_NOKQUEUE'] = "1" ++ + try: + import gevent + except ImportError: +- raise RuntimeError("gevent worker requires gevent 1.4 or higher") +-else: +- from pkg_resources import parse_version +- if parse_version(gevent.__version__) < parse_version('1.4'): +- raise RuntimeError("gevent worker requires gevent 1.4 or higher") +- ++ raise RuntimeError("You need gevent installed to use this worker.") + from gevent.pool import Pool + from gevent.server import StreamServer +-from gevent import hub, monkey, socket, pywsgi ++from gevent.socket import wait_write, socket ++from gevent import pywsgi + + import gunicorn + from gunicorn.http.wsgi import base_environ +@@ -36,7 +38,7 @@ def _gevent_sendfile(fdout, fdin, offset, nbytes, _os_sendfile=os.sendfile): + return _os_sendfile(fdout, fdin, offset, nbytes) + except OSError as e: + if e.args[0] == errno.EAGAIN: +- socket.wait_write(fdout) ++ wait_write(fdout) + else: + raise + +@@ -50,7 +52,14 @@ class GeventWorker(AsyncWorker): + wsgi_handler = None + + def patch(self): +- monkey.patch_all() ++ from gevent import monkey ++ monkey.noisy = False ++ ++ # if the new version is used make sure to patch subprocess ++ if gevent.version_info[0] == 0: ++ monkey.patch_all() ++ else: ++ monkey.patch_all(subprocess=True) + + # monkey patch sendfile to make it none blocking + patch_sendfile() +@@ -58,7 +67,7 @@ class GeventWorker(AsyncWorker): + # patch sockets + sockets = [] + for s in self.sockets: +- sockets.append(socket.socket(s.FAMILY, socket.SOCK_STREAM, ++ sockets.append(socket(s.FAMILY, _socket.SOCK_STREAM, + fileno=s.sock.fileno())) + self.sockets = sockets + +@@ -156,10 +165,34 @@ class GeventWorker(AsyncWorker): + # by deferring to a new greenlet. See #1645 + gevent.spawn(super().handle_usr1, sig, frame) + +- def init_process(self): +- self.patch() +- hub.reinit() +- super().init_process() ++ if gevent.version_info[0] == 0: ++ ++ def init_process(self): ++ # monkey patch here ++ self.patch() ++ ++ # reinit the hub ++ import gevent.core ++ gevent.core.reinit() ++ ++ #gevent 0.13 and older doesn't reinitialize dns for us after forking ++ #here's the workaround ++ gevent.core.dns_shutdown(fail_requests=1) ++ gevent.core.dns_init() ++ super(GeventWorker, self).init_process() ++ ++ else: ++ ++ def init_process(self): ++ # monkey patch here ++ self.patch() ++ ++ # reinit the hub ++ from gevent import hub ++ hub.reinit() ++ ++ # then initialize the process ++ super(GeventWorker, self).init_process() + + + class GeventResponse(object): +-- +2.41.0 + diff --git a/0003-Add-tests-for-geventlet-and-ggevent-workers.patch b/0003-Add-tests-for-geventlet-and-ggevent-workers.patch new file mode 100644 index 0000000..c5ed510 --- /dev/null +++ b/0003-Add-tests-for-geventlet-and-ggevent-workers.patch @@ -0,0 +1,59 @@ +From ef79e6af6b44e9933c6e4973f8140ed6b3b6bee2 Mon Sep 17 00:00:00 2001 +From: Jason Madden <jamadden(a)gmail.com> +Date: Sat, 4 Jan 2020 06:31:25 -0600 +Subject: [PATCH 3/3] Add tests for geventlet and ggevent workers + +(partially cherry picked from commit 2d40e6daceb9735d27bb91d9c32743695de8e01c) +--- + requirements_test.txt | 2 ++ + tests/workers/__init__.py | 0 + tests/workers/test_geventlet.py | 7 +++++++ + tests/workers/test_ggevent.py | 7 +++++++ + 4 files changed, 16 insertions(+) + create mode 100644 tests/workers/__init__.py + create mode 100644 tests/workers/test_geventlet.py + create mode 100644 tests/workers/test_ggevent.py + +diff --git a/requirements_test.txt b/requirements_test.txt +index cc595b77..03af4969 100644 +--- a/requirements_test.txt ++++ b/requirements_test.txt +@@ -1,4 +1,6 @@ + aiohttp ++gevent ++eventlet + coverage + pytest + pytest-cov +diff --git a/tests/workers/__init__.py b/tests/workers/__init__.py +new file mode 100644 +index 00000000..e69de29b +diff --git a/tests/workers/test_geventlet.py b/tests/workers/test_geventlet.py +new file mode 100644 +index 00000000..815dcec3 +--- /dev/null ++++ b/tests/workers/test_geventlet.py +@@ -0,0 +1,7 @@ ++# -*- coding: utf-8 - ++# ++# This file is part of gunicorn released under the MIT license. ++# See the NOTICE for more information. ++ ++def test_import(): ++ __import__('gunicorn.workers.geventlet') +diff --git a/tests/workers/test_ggevent.py b/tests/workers/test_ggevent.py +new file mode 100644 +index 00000000..261ce40d +--- /dev/null ++++ b/tests/workers/test_ggevent.py +@@ -0,0 +1,7 @@ ++# -*- coding: utf-8 - ++# ++# This file is part of gunicorn released under the MIT license. ++# See the NOTICE for more information. ++ ++def test_import(): ++ __import__('gunicorn.workers.ggevent') +-- +2.41.0 + diff --git a/python-gunicorn.spec b/python-gunicorn.spec index 6695a43..bdd9ab5 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -3,13 +3,18 @@ Name: python-%{upstream_name} Version: 20.0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python WSGI application server License: MIT URL:
http://gunicorn.org/
Source0: %pypi_source %{upstream_name} # distro-specific, not upstreamable Patch101: 0001-use-dev-log-for-syslog.patch +# restore compatibility with RHEL 8's gevent +Patch102: 0002-Restore-compatibility-with-older-gevent.patch +# partial backport of upstream commit to test the workers are importable +#
https://github.com/benoitc/gunicorn/commit/2d40e6daceb9735d27bb91d9c3274369…
+Patch103: 0003-Add-tests-for-geventlet-and-ggevent-workers.patch BuildArch: noarch %description @@ -23,6 +28,8 @@ Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest +BuildRequires: python3-eventlet +BuildRequires: python3-gevent BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme Requires: python3-setuptools @@ -40,8 +47,7 @@ Summary: Documentation for the %{name} package Documentation for the %{name} package. %prep -%setup -q -n %{upstream_name}-%{version} -%patch101 -p1 +%autosetup -p 1 -n %{upstream_name}-%{version} sed -e '/addopts/d' -i setup.cfg %build @@ -70,6 +76,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} --verbose te %doc build/sphinx/html/* %changelog +* Thu Aug 31 2023 Carl George <carlwgeorge(a)fedoraproject.org> - 20.0.4-3 +- Restore compatibility with RHEL 8's gevent, resolves rhbz#2234825 +- Backport worker tests from upstream + * Thu Jan 30 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 20.0.4-2 - Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
https://src.fedoraproject.org/rpms/python-gunicorn/c/a28a845f9c4b5b386482e6…
1
0
0
0
defolos pushed to rpms/osc (f39). "New upstream release 1.3.1, fixes rhbz#2236047"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:59:05 UTC From 4f9ec1dcecddf217d82829363201688fbad318c0 Mon Sep 17 00:00:00 2001 From: Dan Čermák <dan.cermak(a)cgc-instruments.com> Date: Aug 31 2023 21:56:40 +0000 Subject: New upstream release 1.3.1, fixes rhbz#2236047 --- diff --git a/.gitignore b/.gitignore index 5a11758..31ce633 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ /osc-1.1.4.tar.gz /osc-1.2.0.tar.gz /osc-1.3.0.tar.gz +/osc-1.3.1.tar.gz diff --git a/osc.spec b/osc.spec index 45fa42f..8fb7c0d 100644 --- a/osc.spec +++ b/osc.spec @@ -2,7 +2,7 @@ # when rebasing check what they are using on #
https://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_38/src/
# update the obsrel to match the upstream release number -%global obsrel 372.1 +%global obsrel 375.1 # osc plugin support %global osc_plugin_dir %{_prefix}/lib/osc-plugins @@ -16,7 +16,7 @@ Name: osc Summary: Open Build Service Commander -Version: 1.3.0 +Version: 1.3.1 # Bump the release as necessary to ensure we're one level up from upstream Release: %{obsrel}.%{baserelease}%{?dist} License: GPL-2.0-or-later @@ -127,6 +127,9 @@ python3 setup.py test %dir %{osc_plugin_dir} %changelog +* Thu Aug 31 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.1-375.1.1 +- New upstream release 1.3.1, fixes rhbz#2236047 + * Wed Aug 9 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.0-372.1.1 - New upstream release 1.3.0 diff --git a/sources b/sources index 2d4ac43..a837f63 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (osc-1.3.0.tar.gz) = 02b91740e26c25da92d0422228b365332d6cff8564a7089a21b61ac379cb42a1283fc16f7ee82bc16a061bf6f90976de376c0d8708f8317e56dceb1e9b9caca8 +SHA512 (osc-1.3.1.tar.gz) = b665b2afc21460e1cfafa153ef38792dbbb2a86bfca849b8305cd09c18b85fe180348fa5794341453c4460aa82a6a125fb8b8784301a2ca7b81294c87d7e002d
https://src.fedoraproject.org/rpms/osc/c/4f9ec1dcecddf217d82829363201688fba…
1
0
0
0
defolos pushed to rpms/osc (rawhide). "New upstream release 1.3.1, fixes rhbz#2236047"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:58:02 UTC From 4f9ec1dcecddf217d82829363201688fbad318c0 Mon Sep 17 00:00:00 2001 From: Dan Čermák <dan.cermak(a)cgc-instruments.com> Date: Aug 31 2023 21:56:40 +0000 Subject: New upstream release 1.3.1, fixes rhbz#2236047 --- diff --git a/.gitignore b/.gitignore index 5a11758..31ce633 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ /osc-1.1.4.tar.gz /osc-1.2.0.tar.gz /osc-1.3.0.tar.gz +/osc-1.3.1.tar.gz diff --git a/osc.spec b/osc.spec index 45fa42f..8fb7c0d 100644 --- a/osc.spec +++ b/osc.spec @@ -2,7 +2,7 @@ # when rebasing check what they are using on #
https://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_38/src/
# update the obsrel to match the upstream release number -%global obsrel 372.1 +%global obsrel 375.1 # osc plugin support %global osc_plugin_dir %{_prefix}/lib/osc-plugins @@ -16,7 +16,7 @@ Name: osc Summary: Open Build Service Commander -Version: 1.3.0 +Version: 1.3.1 # Bump the release as necessary to ensure we're one level up from upstream Release: %{obsrel}.%{baserelease}%{?dist} License: GPL-2.0-or-later @@ -127,6 +127,9 @@ python3 setup.py test %dir %{osc_plugin_dir} %changelog +* Thu Aug 31 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.1-375.1.1 +- New upstream release 1.3.1, fixes rhbz#2236047 + * Wed Aug 9 2023 Dan Čermák <dan.cermak(a)cgc-instruments.com> - 1.3.0-372.1.1 - New upstream release 1.3.0 diff --git a/sources b/sources index 2d4ac43..a837f63 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (osc-1.3.0.tar.gz) = 02b91740e26c25da92d0422228b365332d6cff8564a7089a21b61ac379cb42a1283fc16f7ee82bc16a061bf6f90976de376c0d8708f8317e56dceb1e9b9caca8 +SHA512 (osc-1.3.1.tar.gz) = b665b2afc21460e1cfafa153ef38792dbbb2a86bfca849b8305cd09c18b85fe180348fa5794341453c4460aa82a6a125fb8b8784301a2ca7b81294c87d7e002d
https://src.fedoraproject.org/rpms/osc/c/4f9ec1dcecddf217d82829363201688fba…
1
0
0
0
decathorpe pushed to rpms/rust-pq-sys (f37). "Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild (..more)"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:41:37 UTC decathorpe pushed to rpms/rust-pq-sys (f37). "Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
(..more)"
https://src.fedoraproject.org/rpms/rust-pq-sys/c/91f12d9fbef64f9de941cfc9e6…
1
0
0
0
decathorpe pushed to rpms/rust-pq-sys (f37). "Update to version 0.4.8; Fixes RHBZ#2187760"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:41:37 UTC From e18876647da357b0a6e0b6ee966f02a15979e8b2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini <decathorpe(a)gmail.com> Date: Aug 31 2023 20:05:49 +0000 Subject: Update to version 0.4.8; Fixes RHBZ#2187760 --- diff --git a/.gitignore b/.gitignore index 33da6d7..990fc63 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /pq-sys-0.4.6.crate /pq-sys-0.4.7.crate +/pq-sys-0.4.8.crate diff --git a/0001-Unconditionally-use-pkg-config-to-link-against-syste.patch b/0001-Unconditionally-use-pkg-config-to-link-against-syste.patch new file mode 100644 index 0000000..54cf32e --- /dev/null +++ b/0001-Unconditionally-use-pkg-config-to-link-against-syste.patch @@ -0,0 +1,216 @@ +From 3b9c72eeb08946147f8a31a12a313ca01b225810 Mon Sep 17 00:00:00 2001 +From: Fabio Valentini <decathorpe(a)gmail.com> +Date: Thu, 31 Aug 2023 22:03:55 +0200 +Subject: [PATCH] Unconditionally use pkg-config to link against system libpq + +--- + build.rs | 195 +------------------------------------------------------ + 1 file changed, 1 insertion(+), 194 deletions(-) + +diff --git a/build.rs b/build.rs +index 2640f27..3a146aa 100644 +--- a/build.rs ++++ b/build.rs +@@ -1,198 +1,5 @@ +-#[cfg(feature="pkg-config")] + extern crate pkg_config; + +-#[cfg(target_env = "msvc")] +-extern crate vcpkg; +- +-use std::process::Command; +-use std::env; +-use std::path::PathBuf; +-use std::fmt::{self, Display}; +- +-enum LinkType { +- Static, +- Dynamic +-} +- +-impl Display for LinkType { +- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { +- match *self { +- LinkType::Static => write!(f, "static"), +- LinkType::Dynamic => write!(f, "dylib"), +- } +- } +-} +- +-struct LinkingOptions { +- linking_type: Option<LinkType>, +- lib_name: &'static str, +-} +- +-impl LinkingOptions { +- fn from_name_and_type(lib_name: &'static str, tpe: LinkType) -> Self { +- LinkingOptions { +- linking_type: Some(tpe), +- lib_name +- } +- } +- fn from_name(lib_name: &'static str) -> Self { +- LinkingOptions { +- linking_type: None, +- lib_name +- } +- } +- +- fn from_env() -> Self { +- // On Windows-MSVC, always link dynamically +- if cfg!(all(windows, target_env="msvc")) { +- return LinkingOptions::from_name_and_type("libpq", LinkType::Dynamic); +- } +- +- // Link unconditionally statically +- if env::var_os("PQ_LIB_STATIC").is_some() { +- return LinkingOptions::from_name_and_type("pq", LinkType::Static); +- } +- +- // Examine the per-target env vars +- if let Ok(target) = env::var("TARGET") { +- let pg_config_for_target = format!("PQ_LIB_STATIC_{}", target.to_ascii_uppercase().replace("-", "_")); +- println!("cargo:rerun-if-env-changed={}", pg_config_for_target); +- if env::var_os(&pg_config_for_target).is_some() { +- return LinkingOptions::from_name_and_type("pq", LinkType::Static); +- } +- } +- +- // Otherwise, don't specify +- LinkingOptions::from_name("pq") +- } +-} +- +-impl Display for LinkingOptions { +- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { +- if let Some(ref t) = self.linking_type { +- write!(f, "{}=", t)?; +- } +- write!(f, "{}", self.lib_name) +- } +-} +- + fn main() { +- println!("cargo:rerun-if-env-changed=PQ_LIB_STATIC"); +- println!("cargo:rerun-if-env-changed=TARGET"); +- +- // if target is specified the more concrete pq_lib_dir overwrites a more general one +- let lib_dir = if let Ok(target) = env::var("TARGET") { +- let pq_lib_dir_for_target = format!("PQ_LIB_DIR_{}", target.to_ascii_uppercase().replace("-", "_")); +- check_and_use_lib_dir(&pq_lib_dir_for_target).or_else(|_| check_and_use_lib_dir("PQ_LIB_DIR")) +- } +- else{ +- check_and_use_lib_dir("PQ_LIB_DIR") +- }; +- +- if let Ok(lib_dir) = lib_dir { +- println!("cargo:rustc-link-search=native={}", lib_dir); +- } else if configured_by_pkg_config() { +- return // pkg_config does everything for us, including output for cargo +- } else if configured_by_vcpkg() { +- return // vcpkg does everything for us, including output for cargo +- } else if let Some(path) = pg_config_output("--libdir") { +- let path = replace_homebrew_path_on_mac(path); +- println!("cargo:rustc-link-search=native={}", path); +- } +- println!("cargo:rustc-link-lib={}", LinkingOptions::from_env()); +-} +- +-#[cfg(feature = "pkg-config")] +-fn configured_by_pkg_config() -> bool { +- pkg_config::probe_library("libpq").is_ok() +-} +- +-#[cfg(not(feature = "pkg-config"))] +-fn configured_by_pkg_config() -> bool { +- false +-} +- +-#[cfg(target_env = "msvc")] +-fn configured_by_vcpkg() -> bool { +- vcpkg::find_package("libpq").map(|_| { +- println!("cargo:rustc-link-lib=crypt32"); +- println!("cargo:rustc-link-lib=gdi32"); +- println!("cargo:rustc-link-lib=user32"); +- println!("cargo:rustc-link-lib=secur32"); +- println!("cargo:rustc-link-lib=shell32"); +- println!("cargo:rustc-link-lib=wldap32"); +- }).is_ok() +-} +- +-#[cfg(not(target_env = "msvc"))] +-fn configured_by_vcpkg() -> bool { +- false +-} +- +-fn check_and_use_lib_dir(var_name: &str) -> Result<String, env::VarError>{ +- println!("cargo:rerun-if-env-changed={:?}", var_name); +- println!("{:?} = {:?}", var_name , env::var(var_name)); +- +- let pq_lib_dir = env::var(var_name); +- if let Ok(pg_lib_path) = pq_lib_dir.clone() { +- let path = PathBuf::from(&pg_lib_path); +- if !path.exists() { +- panic!("Folder {:?} doesn't exist in the configured path: {:?}", var_name, path); +- } +- } +- pq_lib_dir +-} +- +-fn pg_config_path() -> PathBuf { +- if let Ok(target) = env::var("TARGET") { +- let pg_config_for_target = &format!("PG_CONFIG_{}", target.to_ascii_uppercase().replace("-", "_")); +- println!("cargo:rerun-if-env-changed={}", pg_config_for_target); +- if let Some(pg_config_path) = env::var_os(pg_config_for_target) { +- +- let path = PathBuf::from(&pg_config_path); +- +- if !path.exists() { +- panic!("pg_config doesn't exist in the configured path: {:?}", path); +- } +- +- return path; +- } +- } +- PathBuf::from("pg_config") +-} +- +-fn pg_config_output(command: &str) -> Option<String> { +- Command::new(pg_config_path()) +- .arg(command) +- .output() +- .ok() +- .into_iter() +- .filter(|output| output.status.success()) +- .flat_map(|output| String::from_utf8(output.stdout).ok()) +- .map(|output| output.trim().to_string()) +- .next() +-} +- +-#[cfg(not(target_os = "macos"))] +-fn replace_homebrew_path_on_mac(path: String) -> String { +- path +-} +- +-#[cfg(target_os = "macos")] +-fn replace_homebrew_path_on_mac(path: String) -> String { +- if path == "/usr/local/lib" { +- Command::new("brew") +- .arg("--prefix") +- .arg("postgres") +- .output() +- .ok() +- .into_iter() +- .filter(|output| output.status.success()) +- .flat_map(|output| String::from_utf8(output.stdout).ok()) +- .map(|output| format!("{}/lib", output.trim())) +- .next() +- .unwrap_or(path) +- } else { +- path +- } ++ pkg_config::probe_library("libpq").unwrap(); + } +-- +2.41.0 + diff --git a/0001-unconditionally-use-pkg-config-to-link-against-syste.patch b/0001-unconditionally-use-pkg-config-to-link-against-syste.patch deleted file mode 100644 index 133d0fa..0000000 --- a/0001-unconditionally-use-pkg-config-to-link-against-syste.patch +++ /dev/null @@ -1,215 +0,0 @@ -From 6ad894cf364730af4b9c859a9f429e813d29e0e2 Mon Sep 17 00:00:00 2001 -From: Fabio Valentini <decathorpe(a)gmail.com> -Date: Fri, 5 Aug 2022 17:34:40 +0200 -Subject: [PATCH] unconditionally use pkg-config to link against system libpq - ---- - build.rs | 194 +------------------------------------------------------ - 1 file changed, 1 insertion(+), 193 deletions(-) - -diff --git a/build.rs b/build.rs -index c8f5a6b..3a146aa 100644 ---- a/build.rs -+++ b/build.rs -@@ -1,197 +1,5 @@ --#[cfg(feature="pkg-config")] - extern crate pkg_config; - --#[cfg(target_env = "msvc")] --extern crate vcpkg; -- --use std::process::Command; --use std::env; --use std::path::PathBuf; --use std::fmt::{self, Display}; -- --enum LinkType { -- Static, -- Dynamic --} -- --impl Display for LinkType { -- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { -- match *self { -- LinkType::Static => write!(f, "static"), -- LinkType::Dynamic => write!(f, "dylib"), -- } -- } --} -- --struct LinkingOptions { -- linking_type: Option<LinkType>, -- lib_name: &'static str, --} -- --impl LinkingOptions { -- fn from_name_and_type(lib_name: &'static str, tpe: LinkType) -> Self { -- LinkingOptions { -- linking_type: Some(tpe), -- lib_name -- } -- } -- fn from_name(lib_name: &'static str) -> Self { -- LinkingOptions { -- linking_type: None, -- lib_name -- } -- } -- -- fn from_env() -> Self { -- // On Windows-MSVC, always link dynamically -- if cfg!(all(windows, target_env="msvc")) { -- return LinkingOptions::from_name_and_type("libpq", LinkType::Dynamic); -- } -- -- // Link unconditionally statically -- if env::var_os("PQ_LIB_STATIC").is_some() { -- return LinkingOptions::from_name_and_type("pq", LinkType::Static); -- } -- -- // Examine the per-target env vars -- if let Ok(target) = env::var("TARGET") { -- let pg_config_for_target = format!("PQ_LIB_STATIC_{}", target.to_ascii_uppercase().replace("-", "_")); -- println!("cargo:rerun-if-env-changed={}", pg_config_for_target); -- if env::var_os(&pg_config_for_target).is_some() { -- return LinkingOptions::from_name_and_type("pq", LinkType::Static); -- } -- } -- -- // Otherwise, don't specify -- LinkingOptions::from_name("pq") -- } --} -- --impl Display for LinkingOptions { -- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { -- if let Some(ref t) = self.linking_type { -- write!(f, "{}=", t)?; -- } -- write!(f, "{}", self.lib_name) -- } --} -- - fn main() { -- println!("cargo:rerun-if-env-changed=PQ_LIB_STATIC"); -- println!("cargo:rerun-if-env-changed=TARGET"); -- -- // if target is specified the more concrete pq_lib_dir overwrites a more general one -- let lib_dir = if let Ok(target) = env::var("TARGET") { -- let pq_lib_dir_for_target = format!("PQ_LIB_DIR_{}", target.to_ascii_uppercase().replace("-", "_")); -- check_and_use_lib_dir(&pq_lib_dir_for_target).or_else(|_| check_and_use_lib_dir("PQ_LIB_DIR")) -- } -- else{ -- check_and_use_lib_dir("PQ_LIB_DIR") -- }; -- -- if let Ok(lib_dir) = lib_dir { -- println!("cargo:rustc-link-search=native={}", lib_dir); -- } else if configured_by_pkg_config() { -- return // pkg_config does everything for us, including output for cargo -- } else if configured_by_vcpkg() { -- return // vcpkg does everything for us, including output for cargo -- } else if let Some(path) = pg_config_output("--libdir") { -- let path = replace_homebrew_path_on_mac(path); -- println!("cargo:rustc-link-search=native={}", path); -- } -- println!("cargo:rustc-link-lib={}", LinkingOptions::from_env()); --} -- --#[cfg(feature = "pkg-config")] --fn configured_by_pkg_config() -> bool { -- pkg_config::probe_library("libpq").is_ok() --} -- --#[cfg(not(feature = "pkg-config"))] --fn configured_by_pkg_config() -> bool { -- false --} -- --#[cfg(target_env = "msvc")] --fn configured_by_vcpkg() -> bool { -- vcpkg::find_package("libpq").map(|_| { -- println!("cargo:rustc-link-lib=crypt32"); -- println!("cargo:rustc-link-lib=gdi32"); -- println!("cargo:rustc-link-lib=user32"); -- println!("cargo:rustc-link-lib=secur32"); -- println!("cargo:rustc-link-lib=shell32"); -- }).is_ok() --} -- --#[cfg(not(target_env = "msvc"))] --fn configured_by_vcpkg() -> bool { -- false --} -- --fn check_and_use_lib_dir(var_name: &str) -> Result<String, env::VarError>{ -- println!("cargo:rerun-if-env-changed={:?}", var_name); -- println!("{:?} = {:?}", var_name , env::var(var_name)); -- -- let pq_lib_dir = env::var(var_name); -- if let Ok(pg_lib_path) = pq_lib_dir.clone() { -- let path = PathBuf::from(&pg_lib_path); -- if !path.exists() { -- panic!("Folder {:?} doesn't exist in the configured path: {:?}", var_name, path); -- } -- } -- pq_lib_dir --} -- --fn pg_config_path() -> PathBuf { -- if let Ok(target) = env::var("TARGET") { -- let pg_config_for_target = &format!("PG_CONFIG_{}", target.to_ascii_uppercase().replace("-", "_")); -- println!("cargo:rerun-if-env-changed={}", pg_config_for_target); -- if let Some(pg_config_path) = env::var_os(pg_config_for_target) { -- -- let path = PathBuf::from(&pg_config_path); -- -- if !path.exists() { -- panic!("pg_config doesn't exist in the configured path: {:?}", path); -- } -- -- return path; -- } -- } -- PathBuf::from("pg_config") --} -- --fn pg_config_output(command: &str) -> Option<String> { -- Command::new(pg_config_path()) -- .arg(command) -- .output() -- .ok() -- .into_iter() -- .filter(|output| output.status.success()) -- .flat_map(|output| String::from_utf8(output.stdout).ok()) -- .map(|output| output.trim().to_string()) -- .next() --} -- --#[cfg(not(target_os = "macos"))] --fn replace_homebrew_path_on_mac(path: String) -> String { -- path --} -- --#[cfg(target_os = "macos")] --fn replace_homebrew_path_on_mac(path: String) -> String { -- if path == "/usr/local/lib" { -- Command::new("brew") -- .arg("--prefix") -- .arg("postgres") -- .output() -- .ok() -- .into_iter() -- .filter(|output| output.status.success()) -- .flat_map(|output| String::from_utf8(output.stdout).ok()) -- .map(|output| format!("{}/lib", output.trim())) -- .next() -- .unwrap_or(path) -- } else { -- path -- } -+ pkg_config::probe_library("libpq").unwrap(); - } --- -2.37.1 - diff --git a/README.md b/README.md deleted file mode 100644 index d523d27..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pq-sys - -The rust-pq-sys package \ No newline at end of file diff --git a/pq-sys-fix-metadata-auto.diff b/pq-sys-fix-metadata-auto.diff index e85b31f..5d9ba85 100644 --- a/pq-sys-fix-metadata-auto.diff +++ b/pq-sys-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- pq-sys-0.4.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pq-sys-0.4.7/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -25,5 +25,3 @@ +--- pq-sys-0.4.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pq-sys-0.4.8/Cargo.toml 2023-08-31T20:00:11.068121+00:00 +@@ -26,5 +26,3 @@ version = "0.3.0" optional = true diff --git a/pq-sys-fix-metadata.diff b/pq-sys-fix-metadata.diff index 2336a74..3565041 100644 --- a/pq-sys-fix-metadata.diff +++ b/pq-sys-fix-metadata.diff @@ -1,6 +1,6 @@ ---- pq-sys-0.4.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pq-sys-0.4.7/Cargo.toml 2022-08-05T15:25:23.988681+00:00 -@@ -23,5 +23,6 @@ +--- pq-sys-0.4.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pq-sys-0.4.8/Cargo.toml 2023-08-31T20:00:32.674209+00:00 +@@ -24,5 +24,6 @@ [build-dependencies.pkg-config] version = "0.3.0" diff --git a/rust-pq-sys.spec b/rust-pq-sys.spec index fc640f1..ff44a41 100644 --- a/rust-pq-sys.spec +++ b/rust-pq-sys.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 24 %ifarch %{ix86} %{arm} # * generated bindgen tests only work on 64-bit architectures #
https://github.com/sgrif/pq-sys/issues/32
@@ -11,7 +11,7 @@ %global crate pq-sys Name: rust-pq-sys -Version: 0.4.7 +Version: 0.4.8 Release: %autorelease Summary: Auto-generated rust bindings for libpq @@ -24,9 +24,7 @@ Patch: pq-sys-fix-metadata-auto.diff # * make build-dependency on pkg-config non-optional Patch: pq-sys-fix-metadata.diff # * unconditionally use pkg-config to link against system libpq -Patch: 0001-unconditionally-use-pkg-config-to-link-against-syste.patch - -ExclusiveArch: %{rust_arches} +Patch: 0001-Unconditionally-use-pkg-config-to-link-against-syste.patch BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index b661c51..fc05ab7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pq-sys-0.4.7.crate) = 26d4c241ce607922b71eca87e753661dc4583b356279cdd3b693c34d8d3eda3cd188aa7f4daa632c4f8785ad7f5a42d58a4ec1fde059d42cc365a411170ef811 +SHA512 (pq-sys-0.4.8.crate) = 5c9c049c2ed2f88a7e910c06bf1f13dc79a86420f57605958dc137d68e7e85cb18429c7c6e0df720e8a106b972a299f499996e91ba258635fd007c1139068f79
https://src.fedoraproject.org/rpms/rust-pq-sys/c/e18876647da357b0a6e0b6ee96…
1
0
0
0
decathorpe pushed to rpms/rust-pq-sys (f37). "Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild (..more)"
by notificationsï¼ fedoraproject.org
31 Aug '23
31 Aug '23
Notification time stamped 2023-08-31 21:41:37 UTC decathorpe pushed to rpms/rust-pq-sys (f37). "Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
(..more)"
https://src.fedoraproject.org/rpms/rust-pq-sys/c/316f49141567a32284da43b668…
1
0
0
0
← Newer
1
2
3
4
5
6
...
2318
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
Results per page:
10
25
50
100
200