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
This commit is contained in:
Marek Kulik 2022-02-23 20:47:11 +01:00 committed by Filip Janus
parent 38703687ee
commit b56a93d85e
1 changed files with 8 additions and 1 deletions

View File

@ -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 <mkulik@redhat.com> - 14.1-3
- Disable package note generation due to extension build issue.
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild