From 49b1c5d39dd46eda92b38e2aa3349f8e85964e4c Mon Sep 17 00:00:00 2001 From: Keri Harris Date: Mon, 20 Jul 2020 07:30:57 +0200 Subject: dev-lang/cxprolog: do not source Prolog files from live file system Package-Manager: Portage-2.3.103, Repoman-2.3.22 Signed-off-by: Keri Harris --- dev-lang/cxprolog/cxprolog-0.98.2.ebuild | 3 ++- dev-lang/cxprolog/files/cx_dev_boot.pl | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 dev-lang/cxprolog/files/cx_dev_boot.pl (limited to 'dev-lang/cxprolog') diff --git a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild index 69288df6b053..ca85e4badada 100644 --- a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild +++ b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild @@ -37,6 +37,7 @@ src_prepare() { sed -i -e "s|lib/cxprolog|$(get_libdir)/cxprolog|" "${S}"/src/FileSys.c || die cp "${FILESDIR}"/build.xml "${S}"/build.xml || die + cp "${FILESDIR}"/cx_dev_boot.pl "${S}"/cx_dev_boot.pl || die rm -f "${S}"/pl/test_file_io_1.txt use wxwidgets && setup-wxwidgets @@ -83,8 +84,8 @@ cxprolog_src_test() { cd "${S}"/pl LD_LIBRARY_PATH="${S}" \ - PREFIX="${S}" \ "${S}"/cxprolog_shared \ + --boot "${S}"/cx_dev_boot.pl \ --script "${S}"/pl/test_all.pl \ | tee "${S}"/cxprolog_test.log } diff --git a/dev-lang/cxprolog/files/cx_dev_boot.pl b/dev-lang/cxprolog/files/cx_dev_boot.pl new file mode 100644 index 000000000000..2794cabe34b0 --- /dev/null +++ b/dev-lang/cxprolog/files/cx_dev_boot.pl @@ -0,0 +1,9 @@ +'$cxprolog_initialise' :- + version, + fs_cwd(CWD), + fs_set_prefix_dir(CWD), + '$env_context' := [main]. + + +'$cxprolog_top_level_goal' :- + true. -- cgit v1.2.3-65-gdbad