Backport removal of non-existent dir from .pc file.

epel8
Elliott Sales de Andrade 6 years ago
parent f7a55c9741
commit 8f3bbd1ad8

@ -0,0 +1,21 @@
From ee25ff3d13f2639b4c3a42125e79f77f921c3320 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <bluca@debian.org>
Date: Wed, 23 Jan 2019 10:37:37 +0000
Subject: [PATCH] pkg-config: do not add -I to non-existing directory
foo/lib/pgm-5.2/include does not exist, so applications using strict
compiler flags will fail to build due to this -I flag
---
openpgm/pgm/openpgm-5.2.pc.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openpgm/pgm/openpgm-5.2.pc.in b/openpgm/pgm/openpgm-5.2.pc.in
index 1e56d944..9e30a6da 100644
--- a/openpgm/pgm/openpgm-5.2.pc.in
+++ b/openpgm/pgm/openpgm-5.2.pc.in
@@ -9,4 +9,4 @@ Version: @PACKAGE_VERSION@
# packagers may wish to move @LIBS@ to Libs.private for platforms with
# versions of pkg-config that support static linking.
Libs: -L${libdir} -lpgm @LIBS@
-Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ -I${libdir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@/include
+Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@

@ -1,6 +1,6 @@
Name: openpgm Name: openpgm
Version: 5.2.122 Version: 5.2.122
Release: 14%{?dist} Release: 15%{?dist}
Summary: An implementation of the PGM reliable multicast protocol Summary: An implementation of the PGM reliable multicast protocol
Group: System Environment/Libraries Group: System Environment/Libraries
@ -9,6 +9,7 @@ License: LGPLv2
# New URL is https://github.com/steve-o/openpgm # New URL is https://github.com/steve-o/openpgm
URL: http://openpgm.googlecode.com/ URL: http://openpgm.googlecode.com/
Source0: http://openpgm.googlecode.com/files/libpgm-%{version}~dfsg.tar.gz Source0: http://openpgm.googlecode.com/files/libpgm-%{version}~dfsg.tar.gz
Patch0001: https://github.com/steve-o/openpgm/commit/ee25ff3d13f2639b4c3a42125e79f77f921c3320.patch
BuildRequires: gcc BuildRequires: gcc
@ -31,7 +32,7 @@ This package contains OpenPGM related development libraries and header files.
%prep %prep
%setup -q -n libpgm-%{version}~dfsg/openpgm/pgm %autosetup -n libpgm-%{version}~dfsg/openpgm/pgm -p3
sed -i "s:#!/usr/bin/python:#!/usr/bin/python2:" version_generator.py sed -i "s:#!/usr/bin/python:#!/usr/bin/python2:" version_generator.py
@ -60,6 +61,9 @@ rm %{buildroot}%{_libdir}/libpgm.{a,la}
%changelog %changelog
* Wed Jan 23 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 5.2.122-15
- Remove non-existent directory from pkgconfig file
* Wed Sep 19 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 5.2.122-14 * Wed Sep 19 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 5.2.122-14
- Use python2 explicitly (#1605329). - Use python2 explicitly (#1605329).
- Remove unnecessary calls to ldconfig. - Remove unnecessary calls to ldconfig.

Loading…
Cancel
Save