slib needs dev-scheme/scm to run tests : >>> Test phase [test]: dev-scheme/slib-3.1.5 scm Template.scm format.scm printf.scm genwrite.scm pp.scm ppfile.scm strcase.scm debug.scm trace.scm strport.scm scanf.scm qp.scm break.scm stdio.scm strsrch.scm prec.scm schmooz.scm defmacex.scm mbe.scm sort.scm comlist.scm logical.scm sc4opt.scm sc4sc3.scm sc2.scm mularg.scm mulapply.scm trnscrpt.scm withfile.scm dynwind.scm promise.scm values.scm eval.scm null.scm charplot.scm root.scm cring.scm selfset.scm limit.scm timecore.scm psxtime.scm cltime.scm timezone.scm tzfile.scm math-real.scm r4rsyn.scm scmacro.scm synclo.scm synrul.scm synchk.scm repl.scm macwork.scm mwexpand.scm mwdenote.scm mwsynrul.scm record.scm dynamic.scm process.scm hash.scm wttree.scm wttest.scm sierpinski.scm soundex.scm simetrix.scm rdms.scm alistab.scm paramlst.scm batch.scm crc.scm dbrowse.scm getopt.scm dbinterp.scm dbcom.scm dbsyn.scm colorspc.scm cie1931.xyz cie1964.xyz resenecolours.txt saturate.txt nbs-iscc.txt ciesid65.dat ciesia.dat scainit.scm scaglob.scm scamacr.scm scaoutp.scm scaexpp.scm structure.scm grapheps.scm glob.scm getparam.scm vet.scm top-refs.scm hashtab.scm chap.scm comparse.scm alist.scm ratize.scm modular.scm dirs.scm priorque.scm queue.scm srfi.scm srfi-1.scm xml-parse.scm pnm.scm http-cgi.scm htmlform.scm html4each.scm db2html.scm uri.scm dft.scm solid.scm random.scm randinex.scm obj2str.scm ncbi-dna.scm minimize.scm factor.scm determ.scm daylight.scm colornam.scm mkclrnam.scm color.scm subarray.scm dbutil.scm array.scm transact.scm arraymap.scm phil-spc.scm lineio.scm differ.scm cvs.scm tree.scm coerce.scm byte.scm bytenumb.scm matfile.scm tsort.scm manifest.scm peanosfc.scm linterp.scm math-integer.scm srfi-2.scm srfi-8.scm srfi-9.scm srfi-11.scm srfi-23.scm srfi-61.scm make: scm : commande introuvable (it means "command not found") make: *** [test] Error 127 But we can't make slib depending on scm because scm depends on slib. So I modified the ebuild in order to run tests only if scm is installed. Thanks for all your work.
Created attachment 141327 [details, diff] slib-3.1.5.ebuild.diff
I was thinking of solving this problem as you suggest. Your patch is lacking logic for running the tests when scm is installed though.
Created attachment 141385 [details, diff] slib-3.1.5.ebuild.diff Update a little bit the ebuild. But now I have an issue with the tests : >>> Source compiled. scm Template.scm format.scm printf.scm genwrite.scm pp.scm ppfile.scm strcase.scm debug.scm trace.scm strport.scm scanf.scm qp.scm break.scm stdio.scm strsrch.scm prec.scm schmooz.scm defmacex.scm mbe.scm sort.scm comlist.scm logical.scm sc4opt.scm sc4sc3.scm sc2.scm mularg.scm mulapply.scm trnscrpt.scm withfile.scm dynwind.scm promise.scm values.scm eval.scm null.scm charplot.scm root.scm cring.scm selfset.scm limit.scm timecore.scm psxtime.scm cltime.scm timezone.scm tzfile.scm math-real.scm r4rsyn.scm scmacro.scm synclo.scm synrul.scm synchk.scm repl.scm macwork.scm mwexpand.scm mwdenote.scm mwsynrul.scm record.scm dynamic.scm process.scm hash.scm wttree.scm wttest.scm sierpinski.scm soundex.scm simetrix.scm rdms.scm alistab.scm paramlst.scm batch.scm crc.scm dbrowse.scm getopt.scm dbinterp.scm dbcom.scm dbsyn.scm colorspc.scm cie1931.xyz cie1964.xyz resenecolours.txt saturate.txt nbs-iscc.txt ciesid65.dat ciesia.dat scainit.scm scaglob.scm scamacr.scm scaoutp.scm scaexpp.scm structure.scm grapheps.scm glob.scm getparam.scm vet.scm top-refs.scm hashtab.scm chap.scm comparse.scm alist.scm ratize.scm modular.scm dirs.scm priorque.scm queue.scm srfi.scm srfi-1.scm xml-parse.scm pnm.scm http-cgi.scm htmlform.scm html4each.scm db2html.scm uri.scm dft.scm solid.scm random.scm randinex.scm obj2str.scm ncbi-dna.scm minimize.scm factor.scm determ.scm daylight.scm colornam.scm mkclrnam.scm color.scm subarray.scm dbutil.scm array.scm transact.scm arraymap.scm phil-spc.scm lineio.scm differ.scm cvs.scm tree.scm coerce.scm byte.scm bytenumb.scm matfile.scm tsort.scm manifest.scm peanosfc.scm linterp.scm math-integer.scm srfi-2.scm srfi-8.scm srfi-9.scm srfi-11.scm srfi-23.scm srfi-61.scm ;ERROR: open-file mode? "r?" > As I'm a newbie concerning what scm, I have try to google a bit. I think it has something to do with the Template.scm file, where this is declared : 322 (define (open-file filename modes) 323 (case modes 324 ((r rb) (open-input-file filename)) 325 ((w wb) (open-output-file filename)) 326 (else (slib:error 'open-file 'mode? modes))))
thanks, Olivier, I have incorporated your patch in slib-3.1.5-r1 and mailed upstream about the test failure as it makes no sense to me. Leaving this open until the tests are fixed too.
Aubrey Jaffer says: This happens because "Template.scm"'s redefinition of load conflicts with "Init5e4.scm"'s redefinition of load. The "test" target is over 15 years old. I haven't run it in years. And it hasn't been maintained; note that several .txt files are being loaded. So I am removing it. My experience has been that most problems which develop over time with SLIB are due to changes in implementations and their support in .init files. Running an application (JACAL) which uses defmacro manages to flag most of them.
Can you confirm that it is already fixed in slib-3.2.5-r1 ? Thank you
(In reply to Amy Liffey from comment #6) > Can you confirm that it is already fixed in slib-3.2.5-r1 ? This package is no longer installed on my machine and I have no recollection of the tests being fixed. It may be better to close this bug report. Feel free to reopen it if needed.