public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/open-vm-tools] rawhide: Fix postinstall of bundled libraries
@ 2026-09-03 15:05 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-09-03 15:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/open-vm-tools
Branch : rawhide
Commit : 45ff4db9582b207d7d63458c3653777d8bf8dba7
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2025-03-20T14:16:16-04:00
Stats : +13/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/open-vm-tools/c/45ff4db9582b207d7d63458c3653777d8bf8dba7?branch=rawhide
Log:
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
---
diff --git a/open-vm-tools.spec b/open-vm-tools.spec
index 801a4c6..a8def52 100644
--- a/open-vm-tools.spec
+++ b/open-vm-tools.spec
@@ -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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-03 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 15:05 [rpms/open-vm-tools] rawhide: Fix postinstall of bundled libraries Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox