Skip to content
Snippets Groups Projects
  1. Jul 01, 2024
  2. Mar 08, 2024
  3. Feb 25, 2024
  4. Dec 20, 2023
  5. Dec 19, 2023
  6. Oct 20, 2023
    • David Bauer's avatar
      build: fix duplicate building of host-tools · 6b22b742
      David Bauer authored
      Upstream introduced two different methods for determining the state of a
      package within the OpenWrt buildsystem. While both are based around the
      md5 hash-function, one taks filename & mtime into account while the
      other one uses the actual md5 hash of the file-content.
      
      Ever wondered why Gluon suddenly took considerably longer to build?
      The messy part is how the build-system chooses which method to use. This
      is based around the AUTOREMOVE configuration. Gluon sets this variable
      conditionally when built with GLUON_AUTOREMOVE set to 1.
      
      Enter the Gluon build-system. It first compiles Lua, without the
      AUTOREMOVE configuration passed to OpenWrt. This compiles the packages
      with the old hash-method based around filename & mtime. Afterwards, it
      builds with AUTOREMOVE enabled, changing the hash-function and
      rebuilding all host-packages.
      
      Fix this by setting AUTOREMOVE for both build-processes according to the
      setting of GLUON_AUTOREMOVE.
      
      Link: https://github.com/openwrt/openwrt/commit/53a08e37437972ba0a8fbf953a93a70a6b784ef4
      
      
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      6b22b742
  7. Oct 14, 2023
  8. Sep 10, 2023
  9. Jan 15, 2023
  10. Dec 18, 2022
  11. Aug 23, 2022
  12. Mar 24, 2022
  13. Jan 03, 2022
  14. Jan 01, 2022
  15. Dec 31, 2021
  16. Dec 21, 2021
    • Martin Weinelt's avatar
      Add helper to run a containerized build environment (#2292) · 6728c4a1
      Martin Weinelt authored
      Using `make container` or, if you don't have automake/gmake on your host
      system, `./scripts/container.sh` will build an image for the current
      branch your are on and drop you into a shell running inside a container
      using that image.
      
      From there all tooling required to work on Gluon is available.
      
      Supports both podman (preferred) and docker.
      Unverified
      6728c4a1
  17. Oct 07, 2021
  18. Oct 05, 2021
  19. Aug 14, 2021
  20. Aug 10, 2021
  21. Jul 13, 2021
  22. Jul 12, 2021
  23. Jun 12, 2021
  24. Oct 10, 2020
  25. Aug 28, 2020
    • Matthias Schiffer's avatar
      features: handle all feature files in a single pass of feature_lib.get_packages() · a9c2db93
      Matthias Schiffer authored
      All defined features need to be known at the same time, otherwise handling
      a feed-provided feature definition file would add gluon-web-advanced etc.
      to the package list when the corresponding feature flags appear in
      GLUON_FEATURES.
      
      Fixes: ee5ec5af ("build: rewrite features.sh in Lua")
      a9c2db93
    • Matthias Schiffer's avatar
      features: fix handling of logical expressions · 13b743d5
      Matthias Schiffer authored
      The rewrite of the feature handling introduced multiple major bugs. One
      of them was caused by the way Lua's logical operators work:
      
      An expression of the form
      
          _'autoupdater' and _'web-advanced'
      
      would return 'web-advanced' rather than the boolean true when _ returned
      both strings unchanged (because the features are enabled).
      
      As entries with more than a single feature name in their expressions did
      not set no_default, Gluon would then attempt to add gluon-web-advanced to
      the package selection, as web-advanced is a "pure" feature.
      
      To fix this, and get rid of the annoying nodefault, separate handling of
      "pure" feature and handling of logical expressions into two separate
      functions, called feature() and when(). To simplify the feature
      definitions, the package list is now passed directly to these functions
      rather than in a table with a single field 'packages'.
      
      Fixes: ee5ec5af ("build: rewrite features.sh in Lua")
      13b743d5
    • Matthias Schiffer's avatar
      scripts: feature_lib.lua: improve error handling for invalid feature files · 097efa9d
      Matthias Schiffer authored
      Print a proper error message, rather than just
      
          openwrt/staging_dir/hostpkg/bin/lua: scripts/feature_lib.lua:48: bad
          argument #1 to 'setfenv' (integer expected, got nil)
      Unverified
      097efa9d
  26. Aug 15, 2020
Loading