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
|
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="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
|
||||||
export LDFLAGS="-Wl,-rpath,%{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"
|
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
|
# libsigc++20
|
||||||
rpm -ivh %{SOURCE101}
|
rpm -ivh %{SOURCE101}
|
||||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/libsigc++20.spec
|
rpmbuild_bundled -ba %{_specdir}/libsigc++20.spec
|
||||||
pushd %{_buildrootdir}
|
pushd %{_buildrootdir}
|
||||||
install_rpms_to_current_dir libsigc++20*.rpm
|
install_rpms_to_current_dir libsigc++20*.rpm
|
||||||
popd
|
popd
|
||||||
@ -269,7 +276,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
|||||||
|
|
||||||
# glibmm2.4
|
# glibmm2.4
|
||||||
rpm -ivh %{SOURCE102}
|
rpm -ivh %{SOURCE102}
|
||||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/glibmm2.4.spec
|
rpmbuild_bundled -ba %{_specdir}/glibmm2.4.spec
|
||||||
pushd %{_buildrootdir}
|
pushd %{_buildrootdir}
|
||||||
install_rpms_to_current_dir glibmm2.4*.rpm
|
install_rpms_to_current_dir glibmm2.4*.rpm
|
||||||
popd
|
popd
|
||||||
@ -279,7 +286,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
|||||||
|
|
||||||
# atkmm
|
# atkmm
|
||||||
rpm -ivh %{SOURCE103}
|
rpm -ivh %{SOURCE103}
|
||||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/atkmm.spec
|
rpmbuild_bundled -ba %{_specdir}/atkmm.spec
|
||||||
pushd %{_buildrootdir}
|
pushd %{_buildrootdir}
|
||||||
install_rpms_to_current_dir atkmm*.rpm
|
install_rpms_to_current_dir atkmm*.rpm
|
||||||
popd
|
popd
|
||||||
@ -289,7 +296,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
|||||||
|
|
||||||
# cairomm
|
# cairomm
|
||||||
rpm -ivh %{SOURCE104}
|
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}
|
pushd %{_buildrootdir}
|
||||||
install_rpms_to_current_dir cairomm*.rpm
|
install_rpms_to_current_dir cairomm*.rpm
|
||||||
popd
|
popd
|
||||||
@ -299,7 +306,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
|||||||
|
|
||||||
# pangomm
|
# pangomm
|
||||||
rpm -ivh %{SOURCE105}
|
rpm -ivh %{SOURCE105}
|
||||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/pangomm.spec
|
rpmbuild_bundled -ba %{_specdir}/pangomm.spec
|
||||||
pushd %{_buildrootdir}
|
pushd %{_buildrootdir}
|
||||||
install_rpms_to_current_dir pangomm*.rpm
|
install_rpms_to_current_dir pangomm*.rpm
|
||||||
popd
|
popd
|
||||||
@ -309,7 +316,7 @@ sed -i 's@prefix=%{bundled_install_path}@prefix=%{_buildrootdir}%{bundled_instal
|
|||||||
|
|
||||||
# gtkmm3.0
|
# gtkmm3.0
|
||||||
rpm -ivh %{SOURCE106}
|
rpm -ivh %{SOURCE106}
|
||||||
rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/gtkmm3.0.spec
|
rpmbuild_bundled -ba %{_specdir}/gtkmm3.0.spec
|
||||||
pushd %{_buildrootdir}
|
pushd %{_buildrootdir}
|
||||||
install_rpms_to_current_dir gtkmm*.rpm
|
install_rpms_to_current_dir gtkmm*.rpm
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user