[rtems-source-builder commit] print/texinfo: Check the version and build if too old
Chris Johns
chrisj at rtems.org
Wed Dec 13 20:23:10 UTC 2023
Module: rtems-source-builder
Branch: master
Commit: 25df680df738b3f24a83aee7a32fc2913b86a4e7
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=25df680df738b3f24a83aee7a32fc2913b86a4e7
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Dec 8 11:37:08 2023 +1100
print/texinfo: Check the version and build if too old
Packages like binutils need newer versions than available by
default on MacOS.
---
bare/config/print/texinfo.cfg | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/bare/config/print/texinfo.cfg b/bare/config/print/texinfo.cfg
index 5fa0cba..63df197 100644
--- a/bare/config/print/texinfo.cfg
+++ b/bare/config/print/texinfo.cfg
@@ -1,8 +1,16 @@
#
# GNU makeinfo has a version option, check for it.
-# If not found build it.
+# If not found or not recent build it.
#
+%define makeinfo_version 7.0.3
%define has_makeinfo %(makeinfo --version > /dev/null 2>&1; echo $?)
+%if %{has_makeinfo} == 0
+ %define makeinfo_version_resident \
+ %(makeinfo --version | grep -e "^makeinfo (GNU texinfo)" -e "^texi2any (GNU texinfo)" | rev | sed -r 's/ .*//' | rev)
+ %if %{makeinfo_version_resident} < %{makeinfo_version}
+ %define has_makeinfo 1
+ %endif
+%endif
%if %{has_makeinfo} != 0
%include %{_configdir}/print/texinfo-7.0.3.cfg
%endif
More information about the vc
mailing list