mirror of
https://github.com/sbopkg/sbopkg
synced 2024-09-19 22:40:19 +03:00
add ability to change ARCH in the options submenu
This commit is contained in:
parent
59ac74efb1
commit
99515de9bd
@ -1,4 +1,4 @@
|
|||||||
Thu Feb 4 00:07:59 UTC 2010
|
Fri Feb 26 13:45:20 UTC 2010
|
||||||
Sbopkg 0.XX.X released. This version contains the following fixes and
|
Sbopkg 0.XX.X released. This version contains the following fixes and
|
||||||
enhancements:
|
enhancements:
|
||||||
|
|
||||||
@ -24,4 +24,5 @@ enhancements:
|
|||||||
version of some packages (e.g. google-chrome, whose version is discovered
|
version of some packages (e.g. google-chrome, whose version is discovered
|
||||||
looking into the source package which can be missing). Thanks to alkos333
|
looking into the source package which can be missing). Thanks to alkos333
|
||||||
for the bug report.
|
for the bug report.
|
||||||
|
* Add ability to temporarily change $ARCH in the 'options' submenu.
|
||||||
+--------------------------+
|
+--------------------------+
|
||||||
|
@ -3244,6 +3244,14 @@ build_package() {
|
|||||||
# Start the actual build
|
# Start the actual build
|
||||||
# We loop here to enable a 'retry' if anything goes wrong with the build
|
# We loop here to enable a 'retry' if anything goes wrong with the build
|
||||||
while :; do
|
while :; do
|
||||||
|
# Populate BUILDOPTIONS with any found options.build. This has to
|
||||||
|
# occur outside the subshell below in order to populate $ARCH with any
|
||||||
|
# a user-added $ARCH option. We will fall back to whatever $ARCH is
|
||||||
|
# set to originally after the build.
|
||||||
|
if [[ -f options.build ]]; then
|
||||||
|
BUILDOPTIONS=$(< options.build)
|
||||||
|
[[ $BUILDOPTIONS ]] && eval "export $BUILDOPTIONS"
|
||||||
|
fi
|
||||||
# Fetch the sources
|
# Fetch the sources
|
||||||
# Note that get_source() "knows" about the source cache, so this isn't
|
# Note that get_source() "knows" about the source cache, so this isn't
|
||||||
# necessarily a download.
|
# necessarily a download.
|
||||||
@ -3251,10 +3259,6 @@ build_package() {
|
|||||||
get_source $PKGNAME.info.build && (
|
get_source $PKGNAME.info.build && (
|
||||||
# Run the build in a subshell, to avoid namespace pollution
|
# Run the build in a subshell, to avoid namespace pollution
|
||||||
echo "Building package for $PKGNAME..."
|
echo "Building package for $PKGNAME..."
|
||||||
if [[ -f options.build ]]; then
|
|
||||||
BUILDOPTIONS=$(< options.build)
|
|
||||||
[[ $BUILDOPTIONS ]] && eval "export $BUILDOPTIONS"
|
|
||||||
fi
|
|
||||||
export OUTPUT=$SB_OUTPUT
|
export OUTPUT=$SB_OUTPUT
|
||||||
# Custom LC_COLLATE settings can break scripts (since some
|
# Custom LC_COLLATE settings can break scripts (since some
|
||||||
# expressions, like [A-Z], don't behave as expected -- for
|
# expressions, like [A-Z], don't behave as expected -- for
|
||||||
|
Loading…
Reference in New Issue
Block a user