<i>pkg_mkIndex should generate deterministic pkgIndex.tcl order</i> status still Open with 4 other changes
by
.
D 2012-01-28T00:35:04
J icomment My\sbest\sadvice\sis\s"Don't\sDo\sThat".\n\nIf\syour\spackage\sis\scontained\sin\smultiple\nfiles\sfor\ssome\sreason,\sit's\sfar\sbetter\sto\smake\nonly\sone\sof\sthem\sthe\smaster\sfile\sto\sbe\s[source]d\sto\nprovide\sthe\spackage.\s\sTo\sbring\sthe\scontents\sof\nthe\sother\sfiles\sin,\syou\scan\sdo\ssomething\sas\ssimple\nas\sa\s[source]\sof\sthem\sfrom\sthe\smaster\sfile.\s\sOr\nyou\scan\sset\sup\sin\sthe\smaster\sfile\sfor\sthe\sauto-loading\nof\sthe\sother\sfiles\sas\stheir\scontents\sare\srequired.\nThis\sis\sbest\sdone\swith\syour\sown\sloading-stubs\sof\nthose\scommands,\sbut\syou\scan\salso\sbuild\son\sTcl's\ntclIndex\sscheme\sif\syou\sprefer.\s\sAn\sexample\sis\sthe\npackage\s"control"\sin\stcllib.\n\nIf\syou\sreally\sdo\shave\sa\spackage\smade\sup\sof\sparts\swith\norder\sdependence,\syou\sreally\shave\sno\schoice\sbut\sto\ntake\sone\sof\sthose\ssteps.\s\sEven\sif\spkg_mkIndex\sproduced\na\sdeterministic\sorder,\sthere's\sno\sreason\sto\sbelieve\sit\swill\npick\sthe\sorder\sneeded\sby\syour\scode.\n\nIf\syou\shave\sa\spackage\smade\sup\sof\sparts\sthat\sdepend\nless\son\san\sexplicit\sorder,\sbut\son\sinterdependency\sconstraints,\nit\smay\sbe\sthat\syou\sactually\shave\scode\sthat\swould\sbe\sbetter\nrepresented\sas\smultiple\spackages,\sinstead\sof\sone,\susing\n[package]\sto\smanage\sthe\sdependency\sconstraints.\s\sIn\sthat\ssituation,\nmy\spreference\sis\sto\sinstall\seach\spackage\sinto\sits\sown\sdirectory\swith\nits\sown\spkgIndex.tcl\sfile.\n\nOnce\syou've\sreduced\sthe\sprovide\sscript\sof\syour\spackage\nto\sthe\s[source]\sof\sa\ssingle\sfile,\sthe\scontents\sof\syour\npkgIndex.tcl\slikely\sare\snear\sas\ssimple\sas:\n\npackage\sifneeded\sfoo\s1.0\s[list\ssource\s[file\sjoin\s$dir\smaster.tcl]]\n\nAt\sthat\spoint,\smy\sadvice\sis\snot\sto\suse\s[pkg_mkIndex]\sat\sall.\nYou\scan\seither\shand-edit,\sor\sgenerate\svia\smuch\ssimpler\stools.\n[pkg_mkIndex]\sis\ssimply\stoo\sambitious\sand\scomplex,\sand\stries\nto\stake\son\sproblems\sthat\sare\ssimply\sunsolvable.\s\sIt's\sbest\sabandoned.\n\nAnother\sissue\syou\smight\sconsider\sis\sthat\sif\syour\sbuild\sis\sset\sup\nso\sthat\spkgIndex.tcl\sis\sa\sgenerated\sfile,\sit\sarguably\sshould\snot\nbe\schecked\sinto\syour\sversion\scontrol\ssystem.\n
J login dgp
J mimetype text/plain
J username dgp
K 3480599fffffffffffffffffffffffffffffffff
U dgp
Z d4783164281e61fb698e2b4148021e87