Make /usr/bin/pkg-config multilib safe
This commit is contained in:
parent
05c8560a2e
commit
ac4bf07a65
7
pkg-config.in
Normal file
7
pkg-config.in
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Multilib safe wrapper for pkg-config to call correct platform-specific version of pkg-config
|
||||||
|
|
||||||
|
HOST_PLATFORM=$(rpm --eval "%{_host}")
|
||||||
|
|
||||||
|
exec "@PKGCONF_BINDIR@/${HOST_PLATFORM}-pkg-config" "$@"
|
13
pkgconf.spec
13
pkgconf.spec
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
Name: pkgconf
|
Name: pkgconf
|
||||||
Version: 1.7.3
|
Version: 1.7.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Package compiler and linker metadata toolkit
|
Summary: Package compiler and linker metadata toolkit
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
@ -25,8 +25,9 @@ URL: http://pkgconf.org/
|
|||||||
# Mirror at https://releases.pagure.org/pkgconf/pkgconf/
|
# Mirror at https://releases.pagure.org/pkgconf/pkgconf/
|
||||||
Source0: https://distfiles.dereferenced.org/%{name}/%{name}-%{version}.tar.xz
|
Source0: https://distfiles.dereferenced.org/%{name}/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
# Simple wrapper script to offer platform versions of pkgconfig
|
# Simple wrapper scripts to offer platform versions of pkgconfig
|
||||||
Source1: platform-pkg-config.in
|
Source1: platform-pkg-config.in
|
||||||
|
Source2: pkg-config.in
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -146,7 +147,10 @@ sed -e "s|@TARGET_PLATFORM@|%{_target_platform}|" \
|
|||||||
-e "s|@PKGCONF_SYSINCDIR@|%{_includedir}|" \
|
-e "s|@PKGCONF_SYSINCDIR@|%{_includedir}|" \
|
||||||
-i %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
-i %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
||||||
|
|
||||||
ln -sr %{buildroot}%{_bindir}/%{_target_platform}-pkg-config %{buildroot}%{_bindir}/pkg-config
|
install -pm 0755 %{SOURCE2} %{buildroot}%{_bindir}/pkg-config
|
||||||
|
|
||||||
|
sed -e "s|@PKGCONF_BINDIR@|%{_bindir}|" \
|
||||||
|
-i %{buildroot}%{_bindir}/pkg-config
|
||||||
|
|
||||||
# Link pkg-config(1) to pkgconf(1)
|
# Link pkg-config(1) to pkgconf(1)
|
||||||
echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/pkg-config.1
|
echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/pkg-config.1
|
||||||
@ -198,6 +202,9 @@ rm -rf %{buildroot}%{_datadir}/aclocal
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 15 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-3
|
||||||
|
- Make /usr/bin/pkg-config multilib safe
|
||||||
|
|
||||||
* Mon Aug 10 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-2
|
* Mon Aug 10 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-2
|
||||||
- Add /usr/local paths to pkg-config(1) search path for non RPM builds
|
- Add /usr/local paths to pkg-config(1) search path for non RPM builds
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user