pygrub: add quoting to install receipe
PATCH 1/1 pygrub: add quoting to install receipe
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1343895857 -7200
# Node ID 480b8f03e6635873e32b6fdcb4a8e19b7b8b3a04 # Parent 3d622e2c7cfb15b37498e9bb8f1005516fe99f2f
pygrub: add quoting to install receipe
The changeset 25694:e20085770cb5 causes a syntax error if readline returns nothing due to non-existant path:
[ 148s] set -e; if [ `readlink -f /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin` != \ [ 148s] `readlink -f /usr/lib64/xen/bin` ]; then \ [ 148s] ln -sf /usr/lib64/xen/bin/pygrub /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin; \ [ 148s] fi [ 148s] /bin/sh: line 0: [: /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install/usr/bin: unary operator expected
Add quoting to fix the error.
tools/pygrub/Makefile +2 -2
@@ -14,8 +14,8 @@ install: all $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \ --install-scripts=$(PRIVATE_BINDIR) --force $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot - set -e; if [ `readlink -f $(DESTDIR)/$(BINDIR)` != \ - `readlink -f $(PRIVATE_BINDIR)` ]; then \ + set -e; if [ "`readlink -f $(DESTDIR)/$(BINDIR)`" != \ + "`readlink -f $(PRIVATE_BINDIR)`" ]; then \ ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \ fi
Quoted 16 lines · Olaf Hering
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1343895857 -7200
# Node ID480b8f03e6635873e32b6fdcb4a8e19b7b8b3a04# Parent3d622e2c7cfb15b37498e9bb8f1005516fe99f2f
pygrub: add quoting to install receipeThe changeset 25694:e20085770cb5 causes a syntax error if readline returns nothing due to non-existant path:
[ 148s] set -e; if [ `readlink -f /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin` != \ [ 148s] `readlink -f /usr/lib64/xen/bin` ]; then \ [ 148s] ln -sf /usr/lib64/xen/bin/pygrub /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin; \ [ 148s] fi [ 148s] /bin/sh: line 0: [: /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install/usr/bin: unary operator expected
Quoted 3 lines
Add quoting to fix the error.
Signed-off-by Olaf Hering <[email protected]>
I would apply but xenbits appears to be down. I've pinged the admins.
Ian.
Quoted 8 lines · Ian Campbell
On Thu, 2012-08-02 at 09:24 +0100, Olaf Hering wrote:
pygrub: add quoting to install receipeQuoted 1 line
Signed-off-by Olaf Hering <[email protected]>Acked-by Ian Campbell <[email protected]>I would apply but xenbits appears to be down. I've pinged the admins.
It's back => applied.
Quoted 8 lines
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel