Skip to content
Snippets Groups Projects
  1. Apr 11, 2022
    • Karel Koci's avatar
      helpers/common.sh: the minimal version is Bash 5.0 · 3c0b053f
      Karel Koci authored and Simon Borek's avatar Simon Borek committed
      The syntax used in the Bash scripts here requires at minimum Bash 5.0.
      This checks for it and reports reasonable error message instead of
      failure.
      
      There are two discovered issues with older versions of bash.
      
      The first issue is the change of empty array expansion in Bash 4.4
      resulted in empty arrays not being considered as undefined anymore. We
      depended on this heavily and thus we can't easily go bellow that
      version.
      
      The second issue is that syntax `[[ -v "foo[key]" ]` works only in Bash
      5.0 and newer. This checks if specific key is in the associative array.
      The replacement could be `[ "${foo[key]:+_}" ]` in some cases but this
      only works if value is also nonempty. Thus it makes sense to just the
      more clear and reliable syntax and such depend on Bash 5.0.
      Verified
      3c0b053f
  2. Dec 08, 2021
  3. Nov 01, 2021
  4. Jul 20, 2021
    • Karel Koci's avatar
      generate_lists: start with clean checkout · a9d95a9d
      Karel Koci authored
      This should be used always when we apply patches as otherwise git tries
      to do rebase on pull and if that passes then we try to reapply all
      patches which fails. The cleanup simply nukes the original git history
      thus we prevent these issues.
      Verified
      a9d95a9d
  5. Jul 07, 2021
    • Karel Koci's avatar
      lists: move to separate repository and improve scripts · ab1dd25d
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      There are two changes in this commit. First most noticable is removal of
      all updater lists.
      
      The second but more significant change is pretty much reformat of all
      generate scripts. It extracts common git and configuration handling from
      compile_pkgs to generate_common.
      The advantage of this is of course code sharing but also that other
      generate scripts now get features such as local git mirror.
      Verified
      ab1dd25d
  6. Nov 21, 2020
    • Karel Koci's avatar
      generate_*: improve includes to be more consistent · c5ca0c17
      Karel Koci authored
      This is just stylistic change. It removes dirname and instead relies on
      string operation. There should be no way of having in $0 anything else
      other than some valid path. That is last part has to be at least
      /name_of_file. This means that we do not have to rely on dirname and we
      can safely just remove anything after last slash (including that slash).
      We user dirname only for paths in sub-directories.
      Verified
      c5ca0c17
  7. Jan 30, 2020
    • Karel Koci's avatar
      generate_lists: fix usage with output path · b8e90e3e
      Karel Koci authored
      The default value of output_path should have been set after arguments
      parsing as empty variable is used to detect if variable was provided or
      not.
      
      Also change help as OUTPUT_PATH is optional and there is default in
      place if not provided.
      Verified
      b8e90e3e
  8. Jan 29, 2020
  9. Oct 14, 2019
    • Karel Koci's avatar
      Revert "Add obsolete lists" · 17069a8b
      Karel Koci authored
      This reverts commit 1bd0f379.
      
      This was created to migrate Turris OS 4.0-alpha* releases. The first
      supported version 4.0-beta1 already contains correct path with board
      specific path so there is no need to preserve these obsolete ones.
      Non the less they are also wrong with additional introduced changes.
      They point to pkglists in invalid location.
      
      This requires also removal of code on build server to not use --obsolete
      option and to not deploy those.
      Verified
      17069a8b
    • Karel Koci's avatar
      Revert "Add obsolete lists" · c2f6394b
      Karel Koci authored
      This reverts commit 1bd0f379.
      
      This was created to migrate Turris OS 4.0-alpha* releases. The first
      supported version 4.0-beta1 already contains correct path with board
      specific path so there is no need to preserve these obsolete ones.
      Non the less they are also wrong with additional introduced changes.
      They point to pkglists in invalid location.
      
      This requires also removal of code on build server to not use --obsolete
      option and to not deploy those.
      Verified
      c2f6394b
  10. May 16, 2019
    • Karel Koci's avatar
      lists: Report target Turris OS · cc1f7ea5
      Karel Koci authored
      This should help us to debug system configuration better to see what
      exactly was targeted version. This also helps users to see what they are
      dealing with. It in some sense informs them if they are upgrading to new
      version or if that is just packages change (because of configuration
      change) in same release.
      Verified
      cc1f7ea5
    • Karel Koci's avatar
      lists: Report target Turris OS · c667b814
      Karel Koci authored
      This should help us to debug system configuration better to see what
      exactly was targeted version. This also helps users to see what they are
      dealing with. It in some sense informs them if they are upgrading to new
      version or if that is just packages change (because of configuration
      change) in same release.
      Verified
      c667b814
  11. May 13, 2019
  12. Apr 23, 2019
  13. Jan 28, 2019
    • Karel Koci's avatar
      Nonabsolute lists · d486e0b3
      Karel Koci authored
      This creates lists that can be included in to each other. This is done
      by hack that original script calling one of these lists passes base URI
      to access sources and that is later reused. This is how relative URI
      should work in future but it is not completed now so we can overcome it
      this way and have almost same support.
      
      This also means that we no longer have to specify target branch for
      lists because it no longer matters.
      
      Fallback branch is for now dropped because we are not doing small build
      at the moment. We should in future return to them but they will be
      implemented differently then fallback branch is.
      
      This also does some base list cleanup.
      Verified
      d486e0b3
  14. Dec 03, 2018
  15. Nov 20, 2018
  16. Nov 19, 2018