[Tcl-bugs] [Tcl] (bmwiedemann) tkt (New): tclIndex varies across builds from auto_mkindex

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Tcl-bugs] [Tcl] (bmwiedemann) tkt (New): tclIndex varies across builds from auto_mkindex

akupries
Automated mail by fx, on behalf of [hidden email]

Ticket Change [b0098ba5990dd4d6f5e6578a9f87d88ddb7ea226]
  [tclIndex varies across builds from auto_mkindex]
  By      bmwiedemann
  For     Tcl
  On      2017-07-17T06:51:29.980
  Details https://core.tcl.tk/tcl/tinfo?name=b0098ba5990dd4d6f5e6578a9f87d88ddb7ea226
  Ticket  https://core.tcl.tk/tcl/tktview/fb2208172c671f29d60e9ac928d9ded45d01d8b8

Changed Fields
  assignee:        nobody
  closer:          nobody
  comment:         might be related to
                   https://core.tcl.tk/tcl/tktview/218239ffffffffffffff

                   The exmh package in openSUSE does not build reproducibly  because the
                   tclIndex files varies for each build.

                   Here is a simple patch to fix it:

                   From: "Bernhard M. Wiedemann" <[hidden email]>  Date: Mon, 17 Jul
                   2017 08:32:17 +0200  Subject: [PATCH] Sort glob used in auto_mkindex

                   necessary because glob manual says  No particular order is guaranteed
                   in the list,  so if a sorted list is required the caller should use
                   lsort.

                   This was causing the exmh package to not build reproducibly.  See
                   https://reproducible-builds.org/ for why this matters.  ---
                   library/auto.tcl | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-)


                   diff --git a/library/auto.tcl b/library/auto.tcl  index
                   97ea8af..568beb0 100644  --- a/library/auto.tcl  +++
                   b/library/auto.tcl  @@ -203,7 +203,7 @@ proc auto_mkindex {dir args} {
                   }

                   auto_mkindex_parser::init  - foreach file [glob -- {*}$args] {  +
                   foreach file [lsort [glob -- {*}$args]] {  try {  append index
                   [auto_mkindex_parser::mkindex $file]  } on error {msg opts} {  --
                   2.12.3
  foundin:         8.6.6
  is_private:      0
  login:           bmwiedemann
  priority:        5 Medium
  private_contact: 77f471323bffeae13597270e52be6ffde7a23680
  resolution:      None
  severity:        Minor
  status:          Open
  submitter:       bmwiedemann
  subsystem:       69. Other
  title:           tclIndex varies across builds from auto_mkindex
  type:            Bug

------------------------------------------------------------
See Tcl/Tk development @ http://core.tcl.tk/
------------------------------------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tcl-Bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tcl-bugs
Loading...