Package tool does not create a distribution package
Trying to build a package using either of the following command does not work:
scons -u --usetool=Package --package=$(pwd)/package scripts
scons -u --baseoutdir=/tmp/gout --usetool=Package --package=$(pwd)/package scripts
Here is the output of the failing command:
/tmp/ggb/wdscripts $ scons -u --usetool=Package --package=$(pwd)/package scripts
scons: Entering directory `/tmp/ggb'
scons: Reading SConscript files ...
2016-12-21 11:33:49,472 INFO SConsider: SConsider version 0.3.12 (linux-x86_64)
2016-12-21 11:33:49,586 INFO setupBuildTools: using CXX compiler and version: g++(6.2.1)(gnu++98)
2016-12-21 11:33:49,586 INFO setupBuildTools: using CC compiler and version: gcc(6.2.1)
2016-12-21 11:33:51,328 INFO SConsider: compilation variant [Linux_glibc_2.9-x86_64-32_optimized]
2016-12-21 11:33:51,328 INFO SConsider: base output dir [/tmp/ggb]
2016-12-21 11:33:51,329 INFO SConsider: Collecting .sconsider packages ...
2016-12-21 11:33:51,334 INFO SConsider: Loading packages and their targets ...
2016-12-21 11:33:51,350 INFO SConsider: BUILD_TARGETS is ['scripts']
scons: done reading SConscript files.
scons: Building targets ...
Install file: "wdscripts/bootScript.sh" as "globals/scripts/scripts/bootScript.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/bootScript.sh", 0544)
Install file: "wdscripts/config.sh" as "globals/scripts/scripts/config.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/config.sh", 0544)
Install file: "wdscripts/keepwds.sh" as "globals/scripts/scripts/keepwds.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/keepwds.sh", 0544)
Install file: "wdscripts/pstackwrapper.sh" as "globals/scripts/scripts/pstackwrapper.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/pstackwrapper.sh", 0544)
Install file: "wdscripts/serverfuncs.sh" as "globals/scripts/scripts/serverfuncs.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/serverfuncs.sh", 0544)
Install file: "wdscripts/startprf.sh" as "globals/scripts/scripts/startprf.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/startprf.sh", 0544)
Install file: "wdscripts/startwda.sh" as "globals/scripts/scripts/startwda.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/startwda.sh", 0544)
Install file: "wdscripts/startwds.sh" as "globals/scripts/scripts/startwds.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/startwds.sh", 0544)
Install file: "wdscripts/stopwds.sh" as "globals/scripts/scripts/stopwds.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/stopwds.sh", 0544)
Install file: "wdscripts/sysfuncs.sh" as "globals/scripts/scripts/sysfuncs.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/sysfuncs.sh", 0544)
Install file: "wdscripts/trapsignalfuncs.sh" as "globals/scripts/scripts/trapsignalfuncs.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/trapsignalfuncs.sh", 0544)
scons: done building targets.
In ifs/sconsider 0.3.11 both commands create the package as expected.
Output of successful command:
/tmp/ggb/wdscripts $ scons -u --usetool=Package --package=$(pwd)/package scripts
scons: Entering directory `/tmp/ggb'
scons: Reading SConscript files ...
2016-12-21 11:31:51,654 INFO SConsider: SConsider version 0.3.11 (linux-x86_64)
2016-12-21 11:31:51,764 INFO setupBuildTools: using CXX compiler and version: g++(6.2.1)
2016-12-21 11:31:51,764 INFO setupBuildTools: using CC compiler and version: gcc(6.2.1)
2016-12-21 11:31:53,520 INFO SConsider: compilation variant [Linux_glibc_2.9-x86_64-32_optimized]
2016-12-21 11:31:53,520 INFO SConsider: base output dir [/tmp/ggb]
2016-12-21 11:31:53,521 INFO SConsider: Collecting .sconsider packages ...
2016-12-21 11:31:53,526 INFO SConsider: Loading packages and their targets ...
2016-12-21 11:31:53,543 INFO SConsider: BUILD_TARGETS is ['scripts', 'makepackage']
scons: done reading SConscript files.
scons: Building targets ...
Install file: "wdscripts/bootScript.sh" as "globals/scripts/scripts/bootScript.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/bootScript.sh", 0544)
Install file: "wdscripts/config.sh" as "globals/scripts/scripts/config.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/config.sh", 0544)
Install file: "wdscripts/keepwds.sh" as "globals/scripts/scripts/keepwds.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/keepwds.sh", 0544)
Install file: "wdscripts/pstackwrapper.sh" as "globals/scripts/scripts/pstackwrapper.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/pstackwrapper.sh", 0544)
Install file: "wdscripts/serverfuncs.sh" as "globals/scripts/scripts/serverfuncs.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/serverfuncs.sh", 0544)
Install file: "wdscripts/startprf.sh" as "globals/scripts/scripts/startprf.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/startprf.sh", 0544)
Install file: "wdscripts/startwda.sh" as "globals/scripts/scripts/startwda.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/startwda.sh", 0544)
Install file: "wdscripts/startwds.sh" as "globals/scripts/scripts/startwds.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/startwds.sh", 0544)
Install file: "wdscripts/stopwds.sh" as "globals/scripts/scripts/stopwds.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/stopwds.sh", 0544)
Install file: "wdscripts/sysfuncs.sh" as "globals/scripts/scripts/sysfuncs.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/sysfuncs.sh", 0544)
Install file: "wdscripts/trapsignalfuncs.sh" as "globals/scripts/scripts/trapsignalfuncs.sh"
Chmod("/tmp/ggb/globals/scripts/scripts/trapsignalfuncs.sh", 0544)
Install file: "globals/scripts/scripts/sysfuncs.sh" as "wdscripts/package/scripts/scripts/sysfuncs.sh"
Install file: "globals/scripts/scripts/stopwds.sh" as "wdscripts/package/scripts/scripts/stopwds.sh"
Install file: "globals/scripts/scripts/trapsignalfuncs.sh" as "wdscripts/package/scripts/scripts/trapsignalfuncs.sh"
Install file: "globals/scripts/scripts/startwda.sh" as "wdscripts/package/scripts/scripts/startwda.sh"
Install file: "globals/scripts/scripts/startprf.sh" as "wdscripts/package/scripts/scripts/startprf.sh"
Install file: "globals/scripts/scripts/serverfuncs.sh" as "wdscripts/package/scripts/scripts/serverfuncs.sh"
Install file: "globals/scripts/scripts/startwds.sh" as "wdscripts/package/scripts/scripts/startwds.sh"
Install file: "globals/scripts/scripts/pstackwrapper.sh" as "wdscripts/package/scripts/scripts/pstackwrapper.sh"
Install file: "globals/scripts/scripts/bootScript.sh" as "wdscripts/package/scripts/scripts/bootScript.sh"
Install file: "globals/scripts/scripts/keepwds.sh" as "wdscripts/package/scripts/scripts/keepwds.sh"
Install file: "globals/scripts/scripts/config.sh" as "wdscripts/package/scripts/scripts/config.sh"
scons: done building targets.
Comparing the output shows that makepackage
is not added to the BUILD_TARGETS
list.