diff options
author | Keri Harris <keri@gentoo.org> | 2020-07-20 07:30:57 +0200 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2020-07-20 07:31:44 +0200 |
commit | 49b1c5d39dd46eda92b38e2aa3349f8e85964e4c (patch) | |
tree | 91d3b27c959d3ff57dc211cf45568042ec932645 /dev-lang/cxprolog | |
parent | media-radio/xastir: Drop old (diff) | |
download | gentoo-49b1c5d39dd46eda92b38e2aa3349f8e85964e4c.tar.gz gentoo-49b1c5d39dd46eda92b38e2aa3349f8e85964e4c.tar.bz2 gentoo-49b1c5d39dd46eda92b38e2aa3349f8e85964e4c.zip |
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 <keri@gentoo.org>
Diffstat (limited to 'dev-lang/cxprolog')
-rw-r--r-- | dev-lang/cxprolog/cxprolog-0.98.2.ebuild | 3 | ||||
-rw-r--r-- | dev-lang/cxprolog/files/cx_dev_boot.pl | 9 |
2 files changed, 11 insertions, 1 deletions
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. |