Skip to content
Snippets Groups Projects
  1. Dec 18, 2020
  2. Oct 21, 2020
  3. Sep 24, 2020
    • Christophe Monniez's avatar
      [FIX] packaging: wait for windows sshd service · aed85d89
      Christophe Monniez authored
      
      In some undeterministic conditions, the Windows virtual machine can take
      more than 60 sec to start and have the sshd service ready.
      
      With this commit, the packaging script tries to connect to the VM up to
      30 times, giving more than 10 minutes for the boot.
      
      As soon as the connexion is ready, the packaging starts. This means
      that the script will probably start sooner in most of the cases.
      
      closes odoo/odoo#58271
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      aed85d89
  4. Sep 15, 2020
    • Christophe Monniez's avatar
      [IMP] packaging: update windows packaging · c47d7c67
      Christophe Monniez authored
      
      Up to Odoo 13.0, the windows setup is 32 bits and embeds an old
      postgresql 9.5 32 bits version too.
      
      With this commit, the postgresql server is no longer embedded in the
      resulting setup file. Instead, if the user choose to install the
      postgresql server, the 12.4 version is downloaded from the official site
      (version 10.14 in the case of a 32 bits windows).
      
      Also, the Python target achitecture is choosen based on the Windows
      system on which Odoo is installed.
      
      This imply changes on the KVM images used to build the installer:
      
          - The Windows system on the KVM as to be 64 bits.
          - A 32 bits WinPython version must be in `c:/odoobuild/WinPy32`
          - A 64 bits WinPyhton version must be in `c:/odoobuild/WinPy64`
      
      A little bit of cleaning also comes with this commit to get rid of the
      old `openerp` references.
      
      closes odoo/odoo#57155
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      c47d7c67
  5. Aug 21, 2020
    • Christophe Monniez's avatar
      [FIX] packaging: stop docker container when odoo fails · 5dbabad0
      Christophe Monniez authored
      
      When the Odoo installation is tested, if the test fails an error is
      raised but the Docker container is not stopped.
      
      As a result, a ghost container stays alive with a Postgres server
      running. Worse, if another package is built on the same host, the
      ghost container prevent the other build to succeed.
      
      With this commit, a specific Exception is raised and the container is
      stopped in any case.
      
      closes odoo/odoo#56270
      
      X-original-commit: fbe2092d
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      5dbabad0
  6. Jul 10, 2020
    • Romain Tartière's avatar
      [FIX] packaging: List all package versions in APT repositories · 607b3c9b
      Romain Tartière authored
      
      When building the package list of the APT repository, dpkg-scanpackages
      reports the following and only output the latest package information in
      the Packages file:
      
      ```
      dpkg-scanpackages: warning: Packages with multiple instances but no --multiversion specified:
      dpkg-scanpackages: warning: ./odoo_13.0.20191002_all.deb
      dpkg-scanpackages: warning: ./odoo_13.0.20191003_all.deb
      [...]
      dpkg-scanpackages: warning: ./odoo_13.0.20200630_all.deb
      ```
      
      Having only the latest version listed in the Packages file makes it
      impossible to tell apt to use a specific version through apt-pinning.
      It also makes it impossible to revert to a previous version if a
      regression is caused by an update.
      
      For these reasons, tell dpkg-scanpackages to include all versions of the
      odoo package in the Packages file it generates.
      
      closes odoo/odoo#54302
      
      X-original-commit: f41c00a8
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      607b3c9b
  7. Nov 05, 2019
    • Christophe Monniez's avatar
      [FIX] packaging: compute winpython path with package.py args · 7ce07a7a
      Christophe Monniez authored
      
      When building the MS Windows package, the PYTHON_VERSION variable is not
      used and the WinPython path is hard coded in the Makefile and NSI file.
      This prevent the usage of a newer version of Python.
      
      With this commit, the PYTHON_VERSION is used to compute the WinPython
      Python directory. That way, this directory can be derived from
      package.py command line argument --vm-winxp-python-version.
      
      Also the less windows binaries are not packaged anymore.
      
      closes odoo/odoo#39821
      
      X-original-commit: ac90d858
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      7ce07a7a
  8. Oct 22, 2019
  9. Oct 02, 2019
    • Christophe Monniez's avatar
      [REF] packaging: use docker to build packages · 8c4c4394
      Christophe Monniez authored
      
      Actually, docker is used to test Linux packages once they are built.
      The packaging process is done on the host system where package.py is
      run.
      
      Consequences:
          * difficult to reproduce an exact same build on another host
          * changing a Debian/Ubuntu target version means some upgrade steps
            on the build host (mix that with the fact that the host also
            could build old Odoo versions)
          * Fedora rpm package is built on an Ubuntu system (which is not a
            real problem but it could be)
      
      With this commit, the package.py utility is refactored to use Docker
      containers to build the Gnu/Linux packages.
      
      Also, the Debian package is adapted for Debian Buster, the RPM package
      is built based on Fedora 30.
      
      Some minor changes are also made in the windows packaging system.
      
      closes odoo/odoo#37766
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      8c4c4394
  10. Nov 19, 2018
    • Christophe Monniez's avatar
      [FIX] packaging: add qrcode package to docker file · 51ee0c3c
      Christophe Monniez authored
      After the Odoo package is built, the package.py script uses a Docker
      image to test the package. After that python3-qrcode was added as a
      dependency for the package in 2ff49c5f , it revealed some issues.
      
      A missing cli parameter and a forgotten '&&' in the Dockerfile prevented
      the installation of the depending packages.
      
      Also, the script shebang was wrong by launching python2.
      
      Finally, the fact that python3-xlwt is missing in Debian stretch was
      highlighted. With this commit, the python3-xlwt is explicitly removed
      from the dependencies and the documentation is updated accordingly.
      
      closes odoo/odoo#28807
      51ee0c3c
  11. Aug 27, 2018
  12. May 04, 2018
  13. Nov 03, 2017
    • Christophe Monniez's avatar
      [FIX] package: fix the windows build test · 4035d55d
      Christophe Monniez authored
      As the windows package provides odoo from sources alongs with
      python 3, the test of the build was failing.
      The odoo-bin.exe was not found because py2exe is not used anymore.
      
      Windows firewall is now disabled from package.py to prevent it
      from blocking local xmlrpc calls.
      
      Also, the docker containers were removed when package tests were
      finished, even when no docker was involved in the process (e.g. only
      a windows build).
      
      This commit fixes the test part of the windows build process.
      4035d55d
  14. Oct 23, 2017
  15. Oct 12, 2017
    • Christophe Monniez's avatar
      [FIX] packages: fix docker images builds tests · 5dfa00cb
      Christophe Monniez authored
      The automated tests of rpm,deb and src packages are using docker
      images and containers. Those tests were not working as expected due
      to various small glitches:
      * some debian python- packages were missing in the Debian image
      * pip was called instead of pip3 for the src test
      * a wrong addons path was given for the tests
      * the containers id's were wrong due to a bytes implicitly converted
        to str
      5dfa00cb
  16. Oct 09, 2017
  17. Oct 03, 2017
    • Olivier Dony's avatar
      [FIX] setup: bump up kvm startup delay · 360bfb7a
      Olivier Dony authored
      Windows can be slower to start than that, sometimes.
      360bfb7a
    • Christophe Monniez's avatar
      [REF] win32: move to WinPython... · 06c2346d
      Christophe Monniez authored
      Purpose: for multiple reasons (bytecode change in python 3.6,
               missing files for some packages, py2exe is unmaintained
               ...) the py2exe solution cannot be used anymore.
               Odoo for windows will now use a portable Python that
               will be shipped with the Windows installer.
               For that purpose, a Winpython 3.6.2 is used.
               In order to build the Windows installer, a Winpython dir
               with all the Odoo requirements fullfilled, must exists on
               the build system (qemu-kvm VM).
      
      * nsis installer:
          - Only the python dir is used to avoid packaging too much stuffs
          - better compression level
          - starts the Odoo service using nssm
          -  bump to V11
      * change the default win10 build vm path
      * print a warning when uncomplete addon move
      * try to force remove of addon path:
        when the addons are moved to Odoo/addons, it happens that the
        destination already exists. In that case, the source addon was not
        deleted, resulting in a uneeded file duplication.
      * fix version string to avoid invalid chars in windows service
      * Add requirements adpated for WinPython
      * package.py now shows the traceback when a build fails
      * verify that a file exists before publishing
      * debuild now creates an .xz file instead of .gz
      * package: use logging module
      * kvm CPU that works with older versions.
      * fix a pexpect encoding bug
      * fix the version to remove special chars '~' which is not appreciated
        by windows services
      
      [REM] win32setup: Remove win32 python service
      
      Purpose:
          Before this commit, the win32 service was managed by an executable
          builded from those two files with the help of py2xe.
          The win32 service is now managed by nssm which starts Odoo and therefore, those
          files are not needed anymore.
      06c2346d
    • Christophe Monniez's avatar
      [IMP] setup: Update docker files · 6953f22e
      Christophe Monniez authored
      6953f22e
    • Christophe Monniez's avatar
    • Christophe Monniez's avatar
      e0dc2518
    • Christophe Monniez's avatar
      [IMP] package: various improvements · 1e76ffc7
      Christophe Monniez authored
      * Add an option to avoid signing deb package
      * update windows vm name
      * add memory to kvm as win10 needs 1G
      * increase win VM timeout because win10 seems slower to start
      * add an option to keep build dir for debugging purpose
      1e76ffc7
  18. Aug 20, 2017
  19. Jun 26, 2017
  20. Apr 27, 2017
    • xmo-odoo's avatar
      [FIX] builtins removed from Python 3 · 2e6a589f
      xmo-odoo authored
      * Reverse wrapper courtesy of @rco-odoo's original P3 branch
      * thin compat module stripped down from werkzeug (to augment as needed)
      
      issue 8530
      2e6a589f
  21. Oct 06, 2016
  22. Oct 05, 2016
  23. Sep 30, 2016
  24. Dec 18, 2015
  25. Oct 09, 2015
  26. Jul 15, 2015
Loading