mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
fix(steps-guix): make seed packaging scripts create their own build dirs in src_unpack
This commit is contained in:
parent
ea69ae93b8
commit
4f0f50366b
5 changed files with 13 additions and 16 deletions
|
|
@ -181,7 +181,7 @@ build() {
|
||||||
pkg=$1
|
pkg=$1
|
||||||
get_revision "${pkg}"
|
get_revision "${pkg}"
|
||||||
script_name=${2:-pass$((revision+1)).sh}
|
script_name=${2:-pass$((revision+1)).sh}
|
||||||
build_dir=${3:-${pkg}}
|
dirname=${3:-${pkg}}
|
||||||
|
|
||||||
# shellcheck disable=SC2015
|
# shellcheck disable=SC2015
|
||||||
bin_preseed && return || true # Normal build if preseed fails
|
bin_preseed && return || true # Normal build if preseed fails
|
||||||
|
|
@ -206,9 +206,6 @@ build() {
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. "${build_script}"
|
. "${build_script}"
|
||||||
fi
|
fi
|
||||||
if [ -n "${BUILD_DIRNAME+x}" ]; then
|
|
||||||
build_dir="${BUILD_DIRNAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "${pkg}: getting sources."
|
echo "${pkg}: getting sources."
|
||||||
build_stage=src_get
|
build_stage=src_get
|
||||||
|
|
@ -219,7 +216,7 @@ build() {
|
||||||
call $build_stage
|
call $build_stage
|
||||||
unset EXTRA_DISTFILES
|
unset EXTRA_DISTFILES
|
||||||
|
|
||||||
cd "${build_dir}" || (echo "Cannot cd into build/${build_dir}!"; kill $$)
|
cd "${dirname}" || (echo "Cannot cd into build/${dirname}!"; kill $$)
|
||||||
|
|
||||||
echo "${pkg}: preparing source."
|
echo "${pkg}: preparing source."
|
||||||
build_stage=src_prepare
|
build_stage=src_prepare
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
src_get() { :; }
|
src_get() { :; }
|
||||||
src_unpack() { :; }
|
src_unpack() {
|
||||||
|
mkdir -p mes-minimal-stripped-0.19-i686-linux
|
||||||
|
}
|
||||||
src_prepare() { :; }
|
src_prepare() { :; }
|
||||||
src_configure() { :; }
|
src_configure() { :; }
|
||||||
BUILD_DIRNAME=.
|
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
local stage
|
local stage
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
src_get() { :; }
|
src_get() { :; }
|
||||||
src_unpack() { :; }
|
src_unpack() {
|
||||||
|
mkdir -p mescc-tools-static-stripped-0.5.2-i686-linux
|
||||||
|
}
|
||||||
src_prepare() { :; }
|
src_prepare() { :; }
|
||||||
src_configure() { :; }
|
src_configure() { :; }
|
||||||
BUILD_DIRNAME=.
|
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
local stage copied
|
local stage copied
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
src_get() { :; }
|
src_get() { :; }
|
||||||
src_unpack() { :; }
|
src_unpack() {
|
||||||
|
mkdir -p static-binaries-0-i686-linux
|
||||||
|
}
|
||||||
src_prepare() { :; }
|
src_prepare() { :; }
|
||||||
src_configure() { :; }
|
src_configure() { :; }
|
||||||
BUILD_DIRNAME=.
|
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
local stage dist
|
local stage dist
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ build() {
|
||||||
pkg=$1
|
pkg=$1
|
||||||
get_revision "${pkg}"
|
get_revision "${pkg}"
|
||||||
script_name=${2:-pass$((revision+1)).sh}
|
script_name=${2:-pass$((revision+1)).sh}
|
||||||
build_dir=${3:-${pkg}}
|
dirname=${3:-${pkg}}
|
||||||
|
|
||||||
# shellcheck disable=SC2015
|
# shellcheck disable=SC2015
|
||||||
bin_preseed && return || true # Normal build if preseed fails
|
bin_preseed && return || true # Normal build if preseed fails
|
||||||
|
|
@ -206,9 +206,6 @@ build() {
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. "${build_script}"
|
. "${build_script}"
|
||||||
fi
|
fi
|
||||||
if [ -n "${BUILD_DIRNAME+x}" ]; then
|
|
||||||
build_dir="${BUILD_DIRNAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "${pkg}: getting sources."
|
echo "${pkg}: getting sources."
|
||||||
build_stage=src_get
|
build_stage=src_get
|
||||||
|
|
@ -219,7 +216,7 @@ build() {
|
||||||
call $build_stage
|
call $build_stage
|
||||||
unset EXTRA_DISTFILES
|
unset EXTRA_DISTFILES
|
||||||
|
|
||||||
cd "${build_dir}" || (echo "Cannot cd into build/${build_dir}!"; kill $$)
|
cd "${dirname}" || (echo "Cannot cd into build/${dirname}!"; kill $$)
|
||||||
|
|
||||||
echo "${pkg}: preparing source."
|
echo "${pkg}: preparing source."
|
||||||
build_stage=src_prepare
|
build_stage=src_prepare
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue