Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206695 - dev-scheme/slib fails test w/ dev-scheme/scm
Summary: dev-scheme/slib fails test w/ dev-scheme/scm
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2008-01-19 20:10 UTC by Olivier Huber
Modified: 2017-07-31 20:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
slib-3.1.5.ebuild.diff (slib-3.1.5.ebuild.diff,337 bytes, patch)
2008-01-19 20:11 UTC, Olivier Huber
Details | Diff
slib-3.1.5.ebuild.diff (slib-3.1.5.ebuild.diff,506 bytes, patch)
2008-01-20 14:09 UTC, Olivier Huber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Huber 2008-01-19 20:10:32 UTC
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.
Comment 1 Olivier Huber 2008-01-19 20:11:35 UTC
Created attachment 141327 [details, diff]
slib-3.1.5.ebuild.diff
Comment 2 Marijn Schouten (RETIRED) gentoo-dev 2008-01-20 12:53:44 UTC
I was thinking of solving this problem as you suggest. Your patch is lacking logic for running the tests when scm is installed though.
Comment 3 Olivier Huber 2008-01-20 14:09:46 UTC
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))))
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2008-01-21 21:25:32 UTC
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.
Comment 5 Marijn Schouten (RETIRED) gentoo-dev 2008-01-22 09:41:52 UTC
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.
Comment 6 Amy Liffey gentoo-dev 2017-07-31 12:39:09 UTC
Can you confirm that it is already fixed in slib-3.2.5-r1 ?

Thank you
Comment 7 Olivier Huber 2017-07-31 20:35:56 UTC
(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.