rpmbuild: variables in %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, i have a "little" problem with rpmbuild

on the begin of my spec-file: %define kernel_uname_r %(echo $(uname -r))
this works fine in %files, but is ignored in %post
FATAL: Could not open '/boot/System.map-': No such file or directory
why?

%post
/sbin/ldconfig
/sbin/depmod -aeF /boot/System.map-%{kernel_uname_r} %{kernel_uname_r} > /dev/null
/bin/systemctl enable vmtoolsd.service
exit 0

%files
%defattr(-,root,root,-)
%{_bindir}/vm*
%{_datadir}/open-vm-tools
%config(noreplace) %{_sysconfdir}/pam.d/*
%{_unitdir}/vmtoolsd.service
%{_libexecdir}/vmtools-setup-modules
%{_libexecdir}/vmtools-unload-modules
%{_sysconfdir}/vmware-tools
/lib/modules/%{kernel_uname_r}/kernel/drivers/misc/vmci.ko
/lib/modules/%{kernel_uname_r}/kernel/drivers/misc/vmsync.ko
/lib/modules/%{kernel_uname_r}/kernel/net/vsock/vsock.ko
________________________

Führe Verarbeitung durch
  Aktualisieren: open-vm-tools-libs-0.0.0.535097-11.fc15.20111129.rh.x86_64                                    1/4
  Aktualisieren: open-vm-tools-0.0.0.535097-11.fc15.20111129.rh.x86_64                                         2/4
  Aufräumen    : open-vm-tools-0.0.0.535097-10.fc15.20111129.rh.x86_64                                         3/4
  Aufräumen    : open-vm-tools-libs-0.0.0.535097-10.fc15.20111129.rh.x86_64                                    4/4
FATAL: Could not open '/boot/System.map-': No such file or directory

Aktualisiert:
  open-vm-tools.x86_64 0:0.0.0.535097-11.fc15.20111129.rh
  open-vm-tools-libs.x86_64 0:0.0.0.535097-11.fc15.20111129.rh

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux