rpmbuild - How to change %install section in spec file? -
i tried build binaries in rhel6 using rpmbuild command.it throws file not found error during rpmbuild command execution. in rhel5 same rpmbuild command working fine.
rhel5 execution result:
*executing(%install): /bin/sh -e /var/tmp/rpm-tmp.77266
- umask 022
- cd /usr/src/redhat/build
- lang=c
- export lang
- unset display*
rhel6 execution result:
*executing(%install): /bin/sh -e /var/tmp/rpm-tmp.bemhyh
- umask 022
- cd //rpmbuild/build
- '[' //rpmbuild/buildroot/ '!=' / ']'
- rm -rf //rpmbuild/buildroot/ ++ dirname //rpmbuild/buildroot/
- mkdir -p //rpmbuild/buildroot
- mkdir //rpmbuild/buildroot/
- lang=c
- export lang
- unset display
- /usr/lib/rpm/check-buildroot*
i not able find %install changes between spec files. 1 please me understand doing wrong?
thanks in advance..!
the problem clear snippets provided $home not defined in rpmbuild environment. $home/rpmbuild default build root 'rpmbuild' in rhel6, instead of /usr/src/redhat in rhel5.
things consider:
- is there '~/.rpmmacros' file altering rpmbuild directives.
- the temporary %install script not deleted on error-exit. inspecting directly might tell more why failed.
ex:
[user@host rpmbuild]$ rpmbuild -bb nano <snip> + exit 1 error: bad exit status /var/tmp/rpm-tmp.2uw1tz (%install) rpm build errors: bad exit status /var/tmp/rpm-tmp.2uw1tz (%install) [user@host rpmbuild]$ cat /var/tmp/rpm-tmp.2uw1tz #!/bin/sh rpm_source_dir="/home/user/rpmbuild/sources" rpm_build_dir="/home/user/rpmbuild/build" ...
Comments
Post a Comment