]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- don't use rpmrc in check_buildarch(), it makes rpm 4.4.7 to fail
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 8 Mar 2007 07:28:29 +0000 (07:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.494

builder.sh

index 6b2757d1348f89fad2cb93a44a716488282d2e62..6046bbf620de86d00cbdcd390e284a004abfa394 100644 (file)
@@ -372,6 +372,11 @@ set_spec_target() {
 
 # runs rpm with minimal macroset
 minirpm() {
+       nprpmrc=no
+       if [ "$1" = "--norpmrc" ]; then
+               norpmrc=yes
+               shift
+       fi
        # we reset macros not to contain macros.build as all the %() macros are
        # executed here, while none of them are actually needed.
        # at the time of this writing macros.build + macros contained 70 "%(...)" macros.
@@ -426,7 +431,9 @@ EOF
 %_sourcedir ./
 EOF
        fi
-       eval $RPMBUILD --rcfile .builder-rpmrc $QUIET $RPMOPTS $RPMBUILDOPTS $BCOND $TARGET_SWITCH $* 2>&1
+       LOCAL_RPMRC="--rcfile .builder-rpmrc"
+       [ "$norpmrc" = "yes" ] && LOCAL_RPMRC=""
+       eval $RPMBUILD $LOCAL_RPMRC $QUIET $RPMOPTS $RPMBUILDOPTS $BCOND $TARGET_SWITCH $* 2>&1
 }
 
 cache_rpm_dump() {
@@ -1196,7 +1203,7 @@ branch_files()
 # this avoids unneccessary BR filling.
 check_buildarch() {
        local out ret
-       out=$(minirpm --short-circuit -bp --define "'prep exit 0'" --nodeps $SPECFILE 2>&1)
+       out=$(minirpm --norpmrc --short-circuit -bp --define "'prep exit 0'" --nodeps $SPECFILE 2>&1)
        ret=$?
        if [ $ret -ne 0 ]; then
                echo >&2 "$out"
This page took 0.058749 seconds and 4 git commands to generate.