deri pushed a commit to branch master in repository groff. commit 398ab1c7722724586f97e3a7ca20714e1d465452 Author: Deri James <d...@chuzzlewit.myzen.co.uk> AuthorDate: Sat Feb 11 13:01:34 2023 +0000
[BuildFoundries]: Fails if neither ghostcript nor URW fonts are installed. * font/devpdf/util/BuildFoundries.pl: When the change to hold paths in an array, rather than a delimited string (see commit 4ae4aeb6555f4f16c28fcb03eb1f56577826054c), the FindGSpath subroutine should return a pointer to an empty array when the call to ghostscript fails, rather than return an empty string, as was done previously. See <https://lists.gnu.org/archive/html/groff/2023-02/msg00042.html> thanks to Bruno Haible for the report. --- ChangeLog | 15 +++++++++++++++ font/devpdf/util/BuildFoundries.pl | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 81dc74049..c48799f7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2023-02-11 Deri James <d...@chuzzlewit.myzen.co.uk> + + [BuildFoundries]: Fails if neither ghostcript nor URW fonts + are installed. + + * font/devpdf/util/BuildFoundries.pl: When the change to hold paths + in an array, rather than a delimited string (see commit + 4ae4aeb6555f4f16c28fcb03eb1f56577826054c), the FindGSpath + subroutine should return a pointer to an empty array when the + call to ghostscript fails, rather than return an empty string, + as was done previously. + + See <https://lists.gnu.org/archive/html/groff/2023-02/msg00042.html> + thanks to Bruno Haible for the report. + 2023-02-09 G. Branden Robinson <g.branden.robin...@gmail.com> Switch to using system's assert.h header file. It is futile to diff --git a/font/devpdf/util/BuildFoundries.pl b/font/devpdf/util/BuildFoundries.pl index 1e7c416cb..b22925a89 100644 --- a/font/devpdf/util/BuildFoundries.pl +++ b/font/devpdf/util/BuildFoundries.pl @@ -332,7 +332,7 @@ sub LocateFile sub FindGSpath { my (@res)=`@GROFF_GHOSTSCRIPT_INTERPRETERS@ -h 2>/dev/null`; - return '' if $?; + return [] if $?; my $buildpath=[]; my $stg=1; _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit