logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

reproducibility.patch (2100B)


  1. SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: Artistic-1.0
  3. Set some things that cannot be overriden in the perl Configure script to
  4. generate with correct values for live-bootstrap.
  5. NOTE: this patch CANNOT be applied to a non-live-bootstrap environment.
  6. --- metaconfig-5.32.1~rc1/U/threads/archname.U 2022-02-27 21:30:03.155396204 +1100
  7. +++ metaconfig-5.32.1~rc1/U/threads/archname.U 2022-02-27 21:30:49.392396204 +1100
  8. @@ -79,7 +79,7 @@
  9. ?X: Very GCCian.
  10. *) archname=`echo $targetarch|sed 's,^[^-]*-,,'` ;;
  11. esac
  12. -myarchname="$tarch"
  13. +myarchname="i686-linux"
  14. case "$archname" in
  15. '') dflt="$tarch";;
  16. *) dflt="$archname";;
  17. --- metaconfig-5.32.1~rc1/U/modified/Oldconfig.U 2022-02-27 21:31:26.911396204 +1100
  18. +++ metaconfig-5.32.1~rc1/U/modified/Oldconfig.U 2022-02-27 21:32:31.846396204 +1100
  19. @@ -117,16 +117,13 @@
  20. ?X: on some machines to avoid the error message when uname is not found; e.g.
  21. ?X: old SUN-OS 3.2 would not execute hostname in (uname -a || hostname). Sigh!
  22. ?X: Now not using a subshell but instead $test.
  23. -myuname=`$uname -a 2>/dev/null`
  24. -$test -z "$myuname" && myuname=`hostname 2>/dev/null`
  25. # Downcase everything to avoid ambiguity.
  26. # Remove slashes and single quotes so we can use parts of this in
  27. # directory and file names.
  28. # Remove newlines so myuname is sane to use elsewhere.
  29. # tr '[A-Z]' '[a-z]' would not work in EBCDIC
  30. # because the A-Z/a-z are not consecutive.
  31. -myuname=`echo $myuname | $sed -e "s,['/],,g" | \
  32. - ./tr '[A-Z]' '[a-z]' | $tr $trnl ' '`
  33. +myuname="linux (none) 4.14.341-openela #1 mon jan 1 00:00:01 1970 i686 gnulinux"
  34. ?X: Save the value we just computed to reset myuname after we get done here.
  35. newmyuname="$myuname"
  36. dflt=n
  37. @@ -336,7 +333,7 @@
  38. ?X: Note the hostname on the second one, which will fool Configure
  39. ?X: into using the SysV case!
  40. gnu) osname=gnu
  41. - osvers="$3" ;;
  42. + osvers="4.14.341-openela" ;;
  43. ?X: HP-UX uname -a gives something like
  44. ?X: HP-UX foobar B.10.20 A 9000/735 2016483812 two-user license
  45. ?X: Preserve the full 10.20 string instead of the previous plain '10'.