forked from rpms/open-vm-tools
Fix postinstall of bundled libraries
Setting %_prefix also affects the value of %__perl, which is used in multiple postinstall steps. Without this, a number of error messages result: /usr/lib64/open-vm-tools/bin/perl: No such file or directory
This commit is contained in:
parent
c55679b848
commit
45ff4db958
@ -251,6 +251,13 @@ function install_rpms_to_current_dir() {
|
||||
done
|
||||
}
|
||||
|
||||
rpmbuild_bundled() {
|
||||
rpmbuild --nodeps \
|
||||
--define '_prefix %{bundled_install_path}' \
|
||||
--define '__perl /usr/bin/perl' \
|
||||
$@
|
||||
}
|
||||
|
||||
export LDFLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
|
||||
export LDFLAGS="-Wl,-rpath,%{bundled_install_path}/%{_lib} $LDFLAGS"
|
||||
export LDFLAGS="-Wl,-rpath-link,%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
|
||||
@ -259,7 +266,7 @@ export PATH="%{_buildrootdir}%{bundled_install_path}/bin:$PATH"
|
||||
|
||||
# libsigc++20
|
||||
rpm -ivh %{SOURCE101}
|
||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/libsigc++20.spec
|
||||
rpmbuild_bundled -ba %{_specdir}/libsigc++20.spec
|
||||
pushd %{_buildrootdir}
|
||||
install_rpms_to_current_dir libsigc++20*.rpm
|
||||
popd
|
||||
@ -269,7 +276,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
||||
|
||||
# glibmm2.4
|
||||
rpm -ivh %{SOURCE102}
|
||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/glibmm2.4.spec
|
||||
rpmbuild_bundled -ba %{_specdir}/glibmm2.4.spec
|
||||
pushd %{_buildrootdir}
|
||||
install_rpms_to_current_dir glibmm2.4*.rpm
|
||||
popd
|
||||
@ -279,7 +286,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
||||
|
||||
# atkmm
|
||||
rpm -ivh %{SOURCE103}
|
||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/atkmm.spec
|
||||
rpmbuild_bundled -ba %{_specdir}/atkmm.spec
|
||||
pushd %{_buildrootdir}
|
||||
install_rpms_to_current_dir atkmm*.rpm
|
||||
popd
|
||||
@ -289,7 +296,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
||||
|
||||
# cairomm
|
||||
rpm -ivh %{SOURCE104}
|
||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=doc_pdf -ba %{_specdir}/cairomm.spec
|
||||
rpmbuild_bundled --without=doc_pdf -ba %{_specdir}/cairomm.spec
|
||||
pushd %{_buildrootdir}
|
||||
install_rpms_to_current_dir cairomm*.rpm
|
||||
popd
|
||||
@ -299,7 +306,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
||||
|
||||
# pangomm
|
||||
rpm -ivh %{SOURCE105}
|
||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/pangomm.spec
|
||||
rpmbuild_bundled -ba %{_specdir}/pangomm.spec
|
||||
pushd %{_buildrootdir}
|
||||
install_rpms_to_current_dir pangomm*.rpm
|
||||
popd
|
||||
@ -309,7 +316,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
||||
|
||||
# gtkmm3.0
|
||||
rpm -ivh %{SOURCE106}
|
||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/gtkmm3.0.spec
|
||||
rpmbuild_bundled -ba %{_specdir}/gtkmm3.0.spec
|
||||
pushd %{_buildrootdir}
|
||||
install_rpms_to_current_dir gtkmm*.rpm
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user