提交 f48ab7d8 编写于 作者: E Eric Blake

maint: allow bootstrap in a sandbox

Jiri Denemark reported an instance of bootstrapping libvirt
failing when run inside a sandbox, traced to rpm trying to
access /var/ which was not permitted by the sandbox.

Alex Jia reported that 0.9.8-rc1 failed to bootstrap if patch(1)
is not installed.

* bootstrap.conf (buildreq): Avoid rpm call if python-config
exists.  Also, require patch, in case we have gnulib-local diffs.
上级 f21d4914
...@@ -195,6 +195,7 @@ gettext 0.17 ...@@ -195,6 +195,7 @@ gettext 0.17
git 1.5.5 git 1.5.5
gzip - gzip -
libtool - libtool -
patch -
perl 5.5 perl 5.5
pkg-config - pkg-config -
python-config - python-config -
...@@ -203,10 +204,11 @@ tar - ...@@ -203,10 +204,11 @@ tar -
xmllint - xmllint -
xsltproc - xsltproc -
" "
# You don't have to be on a system with rpm; rather, if you happen to # Use rpm as a fallback to bypass the bootstrap probe for python-config,
# be on RHEL 5, then this bypasses the bootstrap logic that probes for # for the sake of RHEL 5; without requiring it on newer systems that
# a working 'python-config --version'. # have python-config to begin with.
if `(rpm -q python-devel) >/dev/null 2>&1`; then if `(${PYTHON_CONFIG-python-config} --version;
test $? -lt 126 || rpm -q python-devel) >/dev/null 2>&1`; then
PYTHON_CONFIG=true PYTHON_CONFIG=true
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册