Results 1 to 1 of 1
Hi everyone! I run into a strange situation while running rpmbuild -bb. Would very appreciate your comments. Background I use SuSE 10.1. My rpmbuild command is: rpmbuild -bb --buildroot /tmp/mypackage/BUILD ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-01-2009 #1
- Join Date
- Jan 2009
rpmbuild -bb adds mysterious commands to my empty %build section
I run into a strange situation while running rpmbuild -bb. Would very appreciate your comments.
I use SuSE 10.1.
My rpmbuild command is:
rpmbuild -bb --buildroot /tmp/mypackage/BUILD --define '_topdir /tmp/mypackage' myPackage.spec.
The RPM_BUILD_ROOT is set to /tmp/mypackage/BUILD.
The %build section in myPackage.spec file is completely empty.
After adding set -x to the .sh file which calls rpmbuild, I see the following output:
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.78582
+ umask 022
+ cd /tmp/mypackage/BUILD
+ /bin/rm -rf /tmp/mypackage/BUILD
++ dirname /tmp/mypackage/BUILD
+ /bin/mkdir -p /tmp/mypackage
+ /bin/mkdir /tmp/mypackage/BUILD
+ exit 0
I know that the "umask" and the "cd" commands are executed for every section in the spec file, so I'm not worried about them. However, the 4 other commands (in red) seem to appear out of nowhere!
I already searched my scripts and files for the mysterious commands, but found nothing.
Do you happen to have an idea for me???