From b56a93d85ea304e25f4537ab81230953510d5919 Mon Sep 17 00:00:00 2001 From: Marek Kulik Date: Wed, 23 Feb 2022 20:47:11 +0100 Subject: [PATCH] Disable package note generation Otherwise additional flag will be used during build process: gcc .... /builddir/build/BUILD/postgresql-13.6/.package_note-postgresql-13.6-1.module_f36+13837+d3769ef5.x86_64.ld ... which will be inherited (with wrong paths) during some extension build via: pg_config --pgxs --- postgresql.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/postgresql.spec b/postgresql.spec index 9aad01b..4eeb093 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -57,11 +57,15 @@ # https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_of_Additional_RPM_Macros %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) +# Don't create note file, added package_note_flags to linker by redhat-rpm-config +# will cause issue during extension build because it'll be inherited. +%undefine _package_note_file + Summary: PostgreSQL client programs Name: postgresql %global majorversion 14 Version: %{majorversion}.1 -Release: 2%{?dist} +Release: 3%{?dist} # The PostgreSQL license is very similar to other MIT licenses, but the OSI # recognizes it as an independent license, so we do as well. @@ -1247,6 +1251,9 @@ make -C postgresql-setup-%{setup_version} check %changelog +* Wed Feb 23 2022 Marek Kulik - 14.1-3 +- Disable package note generation due to extension build issue. + * Fri Jan 21 2022 Fedora Release Engineering - 14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild