# HG changeset patch # User Mathias De Maré # Date 1451938919 -3600 # Node ID 1292700d31b520a0af73cd5515b6d10a3f7af7cd # Parent 7c598947fbbd78b26989326c61345c6e46855bdc dockerrpm: fix CentOS 5 RPMs (issue4977) The older rpmbuild in CentOS 5 fails if some of the output directories have not been created yet. This change results in creating those directories. diff -r 7c598947fbbd -r 1292700d31b5 contrib/dockerrpm --- a/contrib/dockerrpm Sat Jan 02 02:04:32 2016 +0100 +++ b/contrib/dockerrpm Mon Jan 04 21:21:59 2016 +0100 @@ -15,6 +15,8 @@ RPMBUILDDIR=$ROOTDIR/packages/$PLATFORM contrib/buildrpm --rpmbuilddir $RPMBUILDDIR --prepare $* +mkdir -p $RPMBUILDDIR/{BUILD,SRPMS,RPMS} + DSHARED=/mnt/shared $DOCKER run -u $DBUILDUSER --rm -v $RPMBUILDDIR:$DSHARED $CONTAINER \ rpmbuild --define "_topdir $DSHARED" -ba $DSHARED/SPECS/mercurial.spec --clean