Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uptemplate build error: ./functions.sh: line 170: declare: GLOBAL_CACHE: not found #1089
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@nrgaway can you look at this? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nrgaway
commented
Jul 29, 2015
|
Yes, never seen that error before; looking into it right now... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nrgaway
Jul 29, 2015
debootstrap is not installed. Run make install-deps before make qubes-vm; and template.
I do see the GLOBAL_CACHE error which is unrelated I believe.
nrgaway
commented
Jul 29, 2015
|
I do see the GLOBAL_CACHE error which is unrelated I believe. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nrgaway
Jul 29, 2015
I have a fix for the ./functions.sh: line 170: declare: GLOBAL_CACHE: not found error message which just suppressed it (2> /dev/null) if array does not exist which will not effect results as that line just returns the data within the array, which will be nothing if it does not exist globally yet.
I will commit once the rounds of template build testing is complete
nrgaway
commented
Jul 29, 2015
|
I have a fix for the I will commit once the rounds of template build testing is complete |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 29, 2015
Member
Take a look at #1088 - it will still break the build when set -x will be implemented in all the scripts.
|
Take a look at #1088 - it will still break the build when |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nrgaway
commented
Jul 29, 2015
|
Ok, I will test with @adrelanos patch in place |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nrgaway
Jul 29, 2015
It worked with patch in place as functions.sh already sets +e and +x if DEBUG or VERBOSE >= 2, but I still added an additional gaurd (|| true)
The error message ./functions.sh: line 170: declare: GLOBAL_CACHE: not found did not cause build failure; missing depend of debootstrap did.
setArrayAsGlobal() {
local array="$1"
local export_as="$2"
#local code=$(declare -p "$array") # Original line; now replaced with line below
local code=$(declare -p "$array" 2> /dev/null || true) # This was line causing error
local replaced="${code/$array/$export_as}"
eval ${replaced/declare -/declare -g}
}
Restarted template re-build tests
nrgaway
commented
Jul 29, 2015
|
It worked with patch in place as functions.sh already sets +e and +x if DEBUG or VERBOSE >= 2, but I still added an additional gaurd ( The error message
Restarted template re-build tests |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Jul 29, 2015
Member
debootstrap is not installed. Run make install-deps before make qubes-vm; and template.
True. Created QubesOS/qubes-builder-debian#1 for it.
True. Created QubesOS/qubes-builder-debian#1 for it. |
adrelanos commentedJul 29, 2015