Skip to content
Snippets Groups Projects
  1. Mar 09, 2020
    • Karel Koci's avatar
      compile_pkgs: verify generated config against our preferences · 76dc51bb
      Karel Koci authored
      This checks generated config after Kconfig pass if it still contains
      preferences we have in files in configs directory.
      
      This also drops some of the options in our config that are obsolete or
      invalid.
      
      CONFIG_VERSION_REPO is overwritten by setting pushed dynamically in
      config by compile_pkgs so it makes no sense to have it here.
      
      CONFIG_BUSYBOX_DEFAULT_CROND seems to be impossible to change and is
      also default value that we later override with
      CONFIG_BUSYBOX_CONFIG_CROND.
      
      All PACKAGE options are not necessary. They are all enabled to 'm' but
      getting them to 'y' would require a lot of works with gain that build
      would in some cases failed instead of passed without that package. Not
      worth it.
      
      CONFIG_DEFAULT_TARGET_OPTIMIZATION is not applies so it is dropped here
      without replacement. Same as one occurrence of CONFIG_CPU_TYPE.
      Verified
      76dc51bb
    • Josef Schlehofer's avatar
      patches/packages: syslog-ng: rotate log with logread: rebase · e7357384
      Josef Schlehofer authored
      Remove the part with PKG_RELEASE bump, so I dont need to rebase it
      every time, when I bump syslog-ng in upstream
      Verified
      e7357384
  2. Mar 07, 2020
  3. Mar 06, 2020
    • Karel Koci's avatar
      lists/base-fix: add fix for updater v65.0 Alternatives · 9cd14651
      Karel Koci authored
      This fixes problem that updater running is unable to handle alternatives
      but with installing new one the script that was handling it previously
      was removed. This installs one-time fix package that runs that original
      script on its removal. The reason why on its removal is that it lets
      first install all packages by original updater and new updater later
      just removes this fix package and in that time it makes sense to
      consitently update alternatives the same way as we did it previously
      with postupdate hook script.
      Verified
      9cd14651
  4. Mar 04, 2020
  5. Feb 24, 2020
  6. Feb 21, 2020
    • Karel Koci's avatar
      lists/luci: handle all luci-i18n-* packages centrally · cd151c81
      Karel Koci authored
      These packages are same as language packages for Foris
      
      There is one speciality and that is that some of Luci's packages have
      English localization package as well so we have to add "en" to
      languages.
      
      There is full list of all Luci applications there are in repository. We
      should update this in future or modify the updater functionality so it
      would be possible to check for existence of package in repository.
      Verified
      cd151c81
    • Karel Koci's avatar
      lists/foris: handle all Foris language packages centrally · a8a2c36e
      Karel Koci authored
      This has various advantages such as that we do not have to care to
      always set appropriate requests for language packages as well as for
      core package. It also ensures that localization is installed even if
      package is installed outside of package list it is mentioned in.
      
      There is also improvement for reForis. Now when you install reForis its
      plugins are going to be managed relative to those requested to be
      installed for Foris.
      Verified
      a8a2c36e
  7. Feb 20, 2020
  8. Feb 18, 2020
  9. Feb 17, 2020
  10. Feb 14, 2020
  11. Feb 13, 2020
  12. Feb 12, 2020
  13. Feb 11, 2020
    • Karel Koci's avatar
      Revert "lists/migrate3x: Add provides and virtuals to pass migration" · c6b0420f
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      This reverts commit 9b6f3aea.
      
      With updater version 64.0 we can specify that all install requests
      should be considered optional so this can be replaced with single line.
      Verified
      c6b0420f
    • Karel Koci's avatar
      lists/migrate3x: Add provides and virtuals to pass migration · eb11dbad
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      We have problem of chicken and egg. To know if we can update we need to
      update updater but doing so we have to start updating system. The
      problem is that reverting to 3.x with new updater would be pretty hacky
      and is also not something we want. The common problem is that users
      install some packages with opkg and those are added to updater's
      /etc/updater/conf.d/opkg-auto.lua file. Updater is stuck when such
      package is no longer provided. Modifying given file is not ideal because
      user can have other files that are not automatically managed and running
      replacement scripts on them is not good idea. Instead it is better to
      ensure that update proceeds even if there is a request for package that
      is no longer in repository.
      
      This commit adds two types of rules for packages that are not in Turris
      OS 4.0 compared to Turris OS 3.x.
      Fist rule is to convince updater that package exists but is effectively
      empty. That is done by marking package as virtual:
          Package("NAME", { virtual = true })
      Other rule is that package is somewhat replaced by some other package
      and we add temporally provide for missing package in to it:
          Package("EXISTING", { provides = {"NAME"} })
      
      This should push problems with requests for non-existing packages to
      last step of migration, that is after removal of tos3to4 package.
      
      The list I worked on here was generated only for Omnia. Turris 1.x
      should be almost same and mostly just subset so this should be enough.
      First I downloaded all repositories indexes from 3.11.9 and from 4.0.1.
      
          cd 3x
          for repo in base hardware lucics management node openwisp packages php printing routing sidn telephony turrispackages; do curl https://repo.turris.cz/omnia/packages/$repo/Packages > $repo; done
          cd ../4x
          for repo in base core luci openwisp packages routing sidn telephony turrispackages; do curl https://repo.turris.cz/hbs/omnia/packages/$repo/Packages > $repo; done
      
      Next step was to collect all package names.
      
          cd ../3x
          for repo in $(ls); do sed -n 's/Package: \(.*\)/\1/p' $repo; done | sort > ../3s
          cd ../4x
          for repo in $(ls); do sed -n 's/Package: \(.*\)/\1/p' $repo; done | sort > ../4s
      
      And lastly diff was made for packages missing in 4s but present in 3s:
      
          cd ..
          diff --new-line-format="" --unchanged-line-format="" 3s 4s
      Verified
      eb11dbad