[RSB PATCH] print/texinfo: Check the version and build if too old

chrisj at rtems.org chrisj at rtems.org
Fri Dec 8 02:07:27 UTC 2023


From: Chris Johns <chrisj at rtems.org>

Packages like binutils need newer versions than available by
default on MacOS.
---
 bare/config/print/texinfo.cfg | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/bare/config/print/texinfo.cfg b/bare/config/print/texinfo.cfg
index 5fa0cba..0c4c4f9 100644
--- a/bare/config/print/texinfo.cfg
+++ b/bare/config/print/texinfo.cfg
@@ -1,8 +1,15 @@
 #
 # 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 "makeinfo (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
-- 
2.37.1 (Apple Git-137.1)



More information about the devel mailing list