Feature #1932

Add package build and check functionality to ctools

Added by Knödlseder Jürgen over 7 years ago. Updated almost 7 years ago.

Status:ClosedStart date:02/28/2017
Priority:UrgentDue date:03/23/2017
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.5.0
Duration: 24

Description

To implement also automatic deployment, a package build and check functionality should be added to ctools. Ultimately,

make pkg
should create a package for the native Operating System, and
make pkgcheck
should check the validity of the package.


Recurrence

No recurrence.


Subtasks

Action #1935: Integrate centos_packaging branchPull requestKnödlseder Jürgen

Action #1949: Sign packagesClosedBrau-Nogué Sylvie

History

#1 Updated by Knödlseder Jürgen over 7 years ago

I added the targets pkg and pkgcheck to the Makefile.am and added some code that detects the host OS and dispatches to dedicated scripts.

So far, the script dev/pkgbuild-macosx.sh exists that builds package for Mac OS X. The package includes also libraries that are required (i.e. ncurses, readline, cfitsio, gammalib). It downloads the libraries from their native locations. For GammaLib, it first tries to download the source tarball with the same version number as the actual code. If this tarball does not exist it will clone the code from GitLab, and tries to checkout the release branch. If this branch does not exist is will use the devel branch. This allows to include the script in a release process, and also in a CI process.

The logic for the ctools source code is similar: first the script tries to download the source tarball, if it does not exist if will clone the code from GitLab and use the same branch that was used for GammaLib.

#2 Updated by Knödlseder Jürgen over 7 years ago

  • % Done changed from 0 to 10

Mac OS X scripts for package generation and validation are working

#3 Updated by Knödlseder Jürgen over 7 years ago

  • % Done changed from 10 to 20

I tested the cross installation of a package built on Mac OS X version “a” on a Mac OS X version “b” system. Here the results:

Built on ⇒ 10.7 10.8 10.9 10.10 10.11
Installed on 10.7 ok error error error error
Installed on 10.8 ok ok error error error
Installed on 10.9 ok ok ok ok ok
Installed on 10.10 ok ok ok ok ok
Installed on 10.11 ok ok ok ok ok

A package built on Mac OS X 10.7 works on Mac OS X 10.7 - 10.11. I still need to test whether it also works on Mac OS X 10.12.

#5 Updated by Knödlseder Jürgen over 7 years ago

  • Target version changed from 1.2.0 to 1.3.0

#6 Updated by Knödlseder Jürgen over 7 years ago

  • Target version changed from 1.3.0 to 1.4.0

#7 Updated by Knödlseder Jürgen over 7 years ago

  • Target version changed from 1.4.0 to 1.5.0

#8 Updated by Knödlseder Jürgen almost 7 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF