public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/open-vm-tools] rawhide: Fix postinstall of bundled libraries
Date: Thu, 03 Sep 2026 15:05:38 GMT [thread overview]
Message-ID: <178844793827.1.6362633902354092181.rpms-open-vm-tools-45ff4db9582b@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-03 15:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178844793827.1.6362633902354092181.rpms-open-vm-tools-45ff4db9582b@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox