RPM build root location different from intended install location
I am creating an upstart RPM package for Fedora. I am using this line for configuring for use to package in RPM:
./configure --prefix=
rpmbuild successfully builds the binary rpm package. Also, the rpm package successfully installs in /opt/upstart/sbin (following the Fedora install instructions for the 'secure way'). However, this is where the problem starts.
Whenever I try to do an /opt/upstart/
'reboot: Unable to execute shutdown: No such file or directory'
On further investigation, this error is valid. The reason this error is in compat/
Since RPM uses build-root to actually compile sources, and package up binaries, the path used for setting the install path should be different than when referencing installed binaries.
My assumption is all binaries are going to be installed together in one directory, such as '/sbin/' or '/opt/upstart/
If not, is there another suggestion for resolving this issue? Another idea is to take out SHUTDOWN from Makefile and redefine SHUTDOWN on line 74 in reboot.c to the intended full path for shutdown binary.
Thanks,
Jordan Rhody
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- upstart Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: