>From 6cb2f2eb369fa6267b71cf4b94cdcb5ec83d15e7 Mon Sep 17 00:00:00 2001 From: Knut Petersen Date: Thu, 17 Jan 2019 01:35:42 +0100 Subject: [PATCH 3/3] Fix lilypond-test lilypond-test uses our texi2dvi, and texi2dvi uses etex. As we don't have an own etex, the system's etex binary is used. Our texi2dvi needs a proper LD_LIBRARY_PATH, but etex might fail (and it does so on openSuSE tumbleweed) if LD_LIBRARY_PATH is not empty. To solve this problem a script etex is created in ./target/tools/root/usr/bin. This script simply clears LD_LIBRARY_PATH and then executes the system's etex binary. --- gub/specs/lilypond-test.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gub/specs/lilypond-test.py b/gub/specs/lilypond-test.py index a07b3f4b..14c8db7a 100644 --- a/gub/specs/lilypond-test.py +++ b/gub/specs/lilypond-test.py @@ -1,4 +1,5 @@ # +import os from gub import context from gub import misc from gub import target @@ -45,6 +46,14 @@ LD_PRELOAD= tar -C %(builddir)s -cjf %(test_ball)s input/regression/out-test self.file_sub ([('^EXTRACTPDFMARK = ([^L].*)$', 'EXTRACTPDFMARK = LD_LIBRARY_PATH=%(tools_prefix)s/lib \\1')], '%(builddir)s/config.make') + # our texi2pdf uses system's etex, so create a script etex + # that calls /usr/bin/etex with empty LD_LIBRARY_PATH + foutname = './target/tools/root/usr/bin/etex' + fout = open (foutname, 'w+') + fout.write ('#!/bin/sh\n') + fout.write ('LD_LIBRARY_PATH= /usr/bin/etex address@hidden') + fout.close + os.chmod(foutname,0700) # The timestamp of these scripts should not be older than config.make. # Otherwise, they will be regenerated from the source directory # and the above substitutes will be lost. -- 2.20.1