This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openoffice-devtools.git
commit 8652eb1951594a01c702e9ca1b11770fe376ff07 Author: Jim Jagielski <[email protected]> AuthorDate: Mon Nov 2 04:08:02 2026 -0500 5.0.0-Dev1: align the Linux build scripts with the macOS ones Rework the four Linux scripts (ubuntu and centos7 64bit, ubuntu and fed19 32bit) on top of build_aoo64bit_on_macos.sh: getopt-based option parsing with the same options, JAVA_HOME and ANT_HOME checks driven by --java-version and --ant-version, --just-config, --quick, --debug and passthrough of extra arguments to configure. fed19 had no option parsing at all. The macOS-only --macos-target and --macos-sdk are dropped. Also fix the stray ")" in the centos7 JAVA_HOME path. The macOS scripts used -j for both --just-config and --java-version, so -j never took a Java version. --java-version is now -J in all six scripts. macOS configure now passes --without-system-python (Darwin otherwise links the build host's Python) and --with-static-system-libs=libxml,libxslt,curl,openssl so the /usr/local static archives can't be displaced by a dylib. The openssl entry needs the matching configure.ac change in the openoffice tree. --- .../5.0.0-Dev1/unxlngi6/build_aoo32bit_on_fed19.sh | 115 +++++++++++++++------ .../unxlngi6/build_aoo32bit_on_ubuntu.sh | 61 ++++++----- .../unxlngix6/build_aoo64bit_on_centos7.sh | 64 ++++++------ .../unxlngix6/build_aoo64bit_on_ubuntu.sh | 61 ++++++----- .../unxmaccr/build_aoo64bit_on_macosarm.sh | 6 +- .../5.0.0-Dev1/unxmacos/build_aoo64bit_on_macos.sh | 6 +- 6 files changed, 196 insertions(+), 117 deletions(-) diff --git a/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_fed19.sh b/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_fed19.sh index 9f74e79..49cd6f5 100755 --- a/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_fed19.sh +++ b/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_fed19.sh @@ -1,15 +1,32 @@ #!/usr/bin/env bash # + +set -eo pipefail + +# Build-script for AOO 5.0.x (and later) on Fedora 19 +# +# ENV: +# LC_CTYPE=en_US.UTF-8 +# LANG=en_US.UTF-8 +# # Installed in /usr/local: +# +# o Apache ant (unversioned apache-ant dir unless --ant-version is given) # o dmake 4.13.2 (https://github.com/jimjag/dmake/archive/v4.13.2/dmake-4.13.2.tar.gz) # o epm 5.1.0 (https://github.com/jimjag/epm/archive/v5.1.0/epm-5.1.0.tar.gz) +# o autoconf +# +# Everything else (zlib, expat, jpeg, libxml2, libxslt, curl, openssl, nss, +# icu, python, ...) is built from the bundled sources, so the only +# --with-system-* option passed to configure is --with-system-stdlibs +# (libstdc++/libgcc_s come from the build host). +# -set -eo pipefail - -ANT_HOME=/usr/local/share/java/apache-ant -ANT_CLASSPATH=/usr/local/share/java/apache-ant/lib -export ANT_HOME -export ANT_CLASSPATH +# +# Build options +# +AOO_JAVA_VERSION=1.7.0 +AOO_ANT_VERSION= # # Parse options @@ -22,17 +39,27 @@ AOO_BUILD_VERSION= AOO_BUILD_BETA= AOO_BUILD_DEV= AOO_BUILD_SRC= +AOO_BUILD_ALL="yes" +AOO_BUILD_DEBUG= + +AOPTS=`getopt -o vsjtdbqa:J: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version: -n 'parse-options' -- "$@"` +if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi +#echo "$AOPTS" +eval set -- "$AOPTS" while true; do case "$1" in - "--verbose" ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;; - "--skip-config" ) AOO_SKIP_CONFIG="yes"; shift ;; - "--just-config" ) AOO_JUST_CONFIG="yes"; shift ;; - "--build-src" ) AOO_BUILD_SRC="yes"; shift ;; - "--dev" ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;; - "--beta" ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;; - "--" ) shift; break ;; - "" ) break ;; + -v | --verbose ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;; + -s | --skip-config ) AOO_SKIP_CONFIG="yes"; shift ;; + -j | --just-config ) AOO_JUST_CONFIG="yes"; shift ;; + -t | --build-src ) AOO_BUILD_SRC="yes"; shift ;; + -q | --quick ) AOO_BUILD_ALL="no"; shift ;; + -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;; + -J | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; + -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;; + -b | --beta ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;; + --debug ) AOO_BUILD_DEBUG="--enable-symbols"; shift ;; + -- ) shift; break ;; * ) echo "unknown option: $1"; shift ;; esac done @@ -41,20 +68,43 @@ if [ ! -d ../main -o ! -d sal ] ; then echo "CHDIR into AOO's main/ directory first!" exit 1 fi + + +JAVA_HOME=/usr/lib/jvm/java-${AOO_JAVA_VERSION}-openjdk +if [ ! -d "$JAVA_HOME" ] ; then + echo "JAVA_HOME not found: $JAVA_HOME" + exit 1 +fi +export JAVA_HOME +echo "JAVA_HOME is: $JAVA_HOME..." + +ANT_HOME=/usr/local/share/java/apache-ant${AOO_ANT_VERSION:+-${AOO_ANT_VERSION}} +if [ ! -d "$ANT_HOME" ] ; then + echo "ANT_HOME not found: $ANT_HOME" + exit 1 +fi +export ANT_HOME +ANT_CLASSPATH=${ANT_HOME}/lib +export ANT_CLASSPATH +echo "ANT_HOME is: $ANT_HOME..." +echo "ANT_CLASSPATH is: $ANT_CLASSPATH..." +echo "PATH is: $PATH" + +echo "Building for ${AOO_BUILD_TYPE}: Linux 32, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION:-default}" +echo "---" +echo "Starting build:" +echo "" \rm -f solenv/inc/reporevision.lst + if [ ! -e external/unowinreg/unowinreg.dll ] ; then echo "Downloading unowinreg.dll..." - wget -O external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll + wget -O external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll fi LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es et eu fi fr gd gl he hi hu hy it ja kab km ko lt nb nl om pl pt pt-BR ru sk sl sr sv ta th tr uk vi zh-CN zh-TW" +#LANGS="en-US" -if [ -e configure.in ]; then - AOO_CONF_T="configure.in" -else - AOO_CONF_T="configure.ac" -fi -if [ ! -e configure -o $AOO_CONF_T -nt configure ] ; then +if [ ! -e configure -o configure.ac -nt configure ] ; then echo "Running autoconf..." autoconf || exit 1 fi @@ -63,30 +113,35 @@ if [ "$AOO_SKIP_CONFIG" != "yes" ]; then ( ./configure \ --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname -sm`${AOO_BUILD_VERSION}" \ ${AOO_VERBOSE_BUILD} \ + ${AOO_BUILD_DEBUG} \ --with-system-stdlibs \ --enable-crashdump=yes \ --enable-category-b \ --enable-beanshell \ - --enable-wiki-publisher \ --enable-bundled-dictionaries \ - --enable-opengl \ - --enable-dbus \ + --enable-wiki-publisher \ + --enable-opengl \ + --enable-dbus \ --enable-gstreamer \ + --with-jdk-home="$JAVA_HOME" \ + --with-ant-home="$ANT_HOME" \ --without-junit \ + --with-epm=/usr/local/bin/epm \ + --with-dmake-path=/usr/local/bin/dmake \ --without-stlport \ - --with-ant-home=$ANT_HOME \ - --with-jdk-home=/usr/lib/jvm/java-1.7.0-openjdk \ --with-package-format="rpm deb" \ --with-lang="${LANGS}" \ - --with-epm=/usr/local/bin/epm \ - --with-dmake-path=/usr/local/bin/dmake \ + "$@" \ | tee config.out ) || exit 1 fi -source ./LinuxX86Env.Set.sh || exit 1 +if [ "$AOO_JUST_CONFIG" = "yes" ]; then + exit +fi +source ./LinuxX86Env.Set.sh || exit 1 ./bootstrap || exit 1 if [ -e solenv/inc/reporevision.lst ]; then - rm solenv/inc/reporevision.lst + \rm solenv/inc/reporevision.lst fi cd instsetoo_native time perl "$SOLARENV/bin/build.pl" --all -P4 MAXPROCESS=2 EXTMAXPROCESS=2 -- -P2 || exit 1 diff --git a/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_ubuntu.sh b/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_ubuntu.sh index b461865..3f9416b 100755 --- a/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_ubuntu.sh +++ b/build-scripts/5.0.0-Dev1/unxlngi6/build_aoo32bit_on_ubuntu.sh @@ -6,16 +6,21 @@ set -eo pipefail # Build-script for AOO 5.0.x (and later) on Ubuntu # # ENV: -# LC_CTYPE=en_US.UTF-8 -# LANG=en_US.UTF-8 -# -# +# LC_CTYPE=en_US.UTF-8 +# LANG=en_US.UTF-8 +# # Installed in /usr/local: -# +# # o Apache ant 1.10.9 # o dmake 4.13.2 (https://github.com/jimjag/dmake/archive/v4.13.2/dmake-4.13.2.tar.gz) # o epm 5.1.0 (https://github.com/jimjag/epm/archive/v5.1.0/epm-5.1.0.tar.gz) # o autoconf 2.72 +# +# Everything else (zlib, expat, jpeg, libxml2, libxslt, curl, openssl, nss, +# icu, python, ...) is built from the bundled sources, so the only +# --with-system-* option passed to configure is --with-system-stdlibs +# (libstdc++/libgcc_s come from the build host). +# # # Build options @@ -37,28 +42,26 @@ AOO_BUILD_SRC= AOO_BUILD_ALL="yes" AOO_BUILD_DEBUG= -AOPTS=`getopt -o vsjtdbqa:j:m:k: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target:,macos-sdk: -n 'parse-options' -- "$@"` +AOPTS=`getopt -o vsjtdbqa:J: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version: -n 'parse-options' -- "$@"` if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi #echo "$AOPTS" eval set -- "$AOPTS" while true; do - case "$1" in + case "$1" in -v | --verbose ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;; -s | --skip-config ) AOO_SKIP_CONFIG="yes"; shift ;; -j | --just-config ) AOO_JUST_CONFIG="yes"; shift ;; -t | --build-src ) AOO_BUILD_SRC="yes"; shift ;; -q | --quick ) AOO_BUILD_ALL="no"; shift ;; -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;; - -j | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; - -m | --macos-target ) AOO_MACOS_TARGET=$2; shift 2 ;; - -k | --macos-sdk ) AOO_MACOS_SDK=$2; shift 2 ;; + -J | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;; -b | --beta ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;; --debug ) AOO_BUILD_DEBUG="--enable-symbols"; shift ;; -- ) shift; break ;; - * ) echo "unknown option: $1"; shift ;; - esac + * ) echo "unknown option: $1"; shift ;; + esac done if [ ! -d ../main -o ! -d sal ] ; then @@ -66,6 +69,7 @@ if [ ! -d ../main -o ! -d sal ] ; then exit 1 fi + JAVA_HOME=/usr/lib/jvm/java-${AOO_JAVA_VERSION}-openjdk-i386 if [ ! -d "$JAVA_HOME" ] ; then echo "JAVA_HOME not found: $JAVA_HOME" @@ -84,25 +88,23 @@ ANT_CLASSPATH=${ANT_HOME}/lib export ANT_CLASSPATH echo "ANT_HOME is: $ANT_HOME..." echo "ANT_CLASSPATH is: $ANT_CLASSPATH..." +echo "PATH is: $PATH" -echo "Building for Linux 32, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION}" +echo "Building for ${AOO_BUILD_TYPE}: Linux 32, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION}" echo "---" echo "Starting build:" echo "" \rm -f solenv/inc/reporevision.lst + if [ ! -e external/unowinreg/unowinreg.dll ] ; then echo "Downloading unowinreg.dll..." wget -O external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll fi LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es et eu fi fr gd gl he hi hu hy it ja kab km ko lt nb nl om pl pt pt-BR ru sk sl sr sv ta th tr uk vi zh-CN zh-TW" +#LANGS="en-US" -if [ -e configure.in ]; then - AOO_CONF_T="configure.in" -else - AOO_CONF_T="configure.ac" -fi -if [ ! -e configure -o $AOO_CONF_T -nt configure ] ; then +if [ ! -e configure -o configure.ac -nt configure ] ; then echo "Running autoconf..." autoconf || exit 1 fi @@ -111,27 +113,32 @@ if [ "$AOO_SKIP_CONFIG" != "yes" ]; then ( ./configure \ --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname -sm`${AOO_BUILD_VERSION}" \ ${AOO_VERBOSE_BUILD} \ + ${AOO_BUILD_DEBUG} \ --with-system-stdlibs \ --enable-crashdump=yes \ --enable-category-b \ --enable-beanshell \ - --enable-wiki-publisher \ --enable-bundled-dictionaries \ - --enable-opengl \ - --enable-dbus \ + --enable-wiki-publisher \ + --enable-opengl \ + --enable-dbus \ --enable-gstreamer \ - --without-junit \ - --without-stlport \ --with-jdk-home="$JAVA_HOME" \ --with-ant-home="$ANT_HOME" \ - --with-package-format="rpm deb" \ - --with-lang="${LANGS}" \ + --without-junit \ --with-epm=/usr/local/bin/epm \ --with-dmake-path=/usr/local/bin/dmake \ + --without-stlport \ + --with-package-format="rpm deb" \ + --with-lang="${LANGS}" \ + "$@" \ | tee config.out ) || exit 1 fi -source ./LinuxX86Env.Set.sh || exit 1 +if [ "$AOO_JUST_CONFIG" = "yes" ]; then + exit +fi +source ./LinuxX86Env.Set.sh || exit 1 ./bootstrap || exit 1 if [ -e solenv/inc/reporevision.lst ]; then \rm solenv/inc/reporevision.lst diff --git a/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_centos7.sh b/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_centos7.sh index 104ac21..cc24c8c 100755 --- a/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_centos7.sh +++ b/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_centos7.sh @@ -3,19 +3,24 @@ set -eo pipefail -# Build-script for AOO 5.0.x (and later) on Ubuntu +# Build-script for AOO 5.0.x (and later) on CentOS 7 # # ENV: -# LC_CTYPE=en_US.UTF-8 -# LANG=en_US.UTF-8 -# -# +# LC_CTYPE=en_US.UTF-8 +# LANG=en_US.UTF-8 +# # Installed in /usr/local: -# +# # o Apache ant 1.10.9 # o dmake 4.13.2 (https://github.com/jimjag/dmake/archive/v4.13.2/dmake-4.13.2.tar.gz) # o epm 5.1.0 (https://github.com/jimjag/epm/archive/v5.1.0/epm-5.1.0.tar.gz) # o autoconf 2.72 +# +# Everything else (zlib, expat, jpeg, libxml2, libxslt, curl, openssl, nss, +# icu, python, ...) is built from the bundled sources, so the only +# --with-system-* option passed to configure is --with-system-stdlibs +# (libstdc++/libgcc_s come from the build host). +# # # Build options @@ -37,28 +42,26 @@ AOO_BUILD_SRC= AOO_BUILD_ALL="yes" AOO_BUILD_DEBUG= -AOPTS=`getopt -o vsjtdbqa:j:m:k: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target:,macos-sdk: -n 'parse-options' -- "$@"` +AOPTS=`getopt -o vsjtdbqa:J: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version: -n 'parse-options' -- "$@"` if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi #echo "$AOPTS" eval set -- "$AOPTS" while true; do - case "$1" in + case "$1" in -v | --verbose ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;; -s | --skip-config ) AOO_SKIP_CONFIG="yes"; shift ;; -j | --just-config ) AOO_JUST_CONFIG="yes"; shift ;; -t | --build-src ) AOO_BUILD_SRC="yes"; shift ;; -q | --quick ) AOO_BUILD_ALL="no"; shift ;; -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;; - -j | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; - -m | --macos-target ) AOO_MACOS_TARGET=$2; shift 2 ;; - -k | --macos-sdk ) AOO_MACOS_SDK=$2; shift 2 ;; + -J | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;; -b | --beta ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;; --debug ) AOO_BUILD_DEBUG="--enable-symbols"; shift ;; -- ) shift; break ;; - * ) echo "unknown option: $1"; shift ;; - esac + * ) echo "unknown option: $1"; shift ;; + esac done if [ ! -d ../main -o ! -d sal ] ; then @@ -67,7 +70,7 @@ if [ ! -d ../main -o ! -d sal ] ; then fi -JAVA_HOME=/usr/lib/jvm/java-${AOO_JAVA_VERSION})-openjdk +JAVA_HOME=/usr/lib/jvm/java-${AOO_JAVA_VERSION}-openjdk if [ ! -d "$JAVA_HOME" ] ; then echo "JAVA_HOME not found: $JAVA_HOME" exit 1 @@ -85,25 +88,23 @@ ANT_CLASSPATH=${ANT_HOME}/lib export ANT_CLASSPATH echo "ANT_HOME is: $ANT_HOME..." echo "ANT_CLASSPATH is: $ANT_CLASSPATH..." +echo "PATH is: $PATH" -echo "Building for Linux 64, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION}" +echo "Building for ${AOO_BUILD_TYPE}: Linux 64, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION}" echo "---" echo "Starting build:" echo "" \rm -f solenv/inc/reporevision.lst + if [ ! -e external/unowinreg/unowinreg.dll ] ; then echo "Downloading unowinreg.dll..." wget -O external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll fi LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es et eu fi fr gd gl he hi hu hy it ja kab km ko lt nb nl om pl pt pt-BR ru sk sl sr sv ta th tr uk vi zh-CN zh-TW" +#LANGS="en-US" -if [ -e configure.in ]; then - AOO_CONF_T="configure.in" -else - AOO_CONF_T="configure.ac" -fi -if [ ! -e configure -o $AOO_CONF_T -nt configure ] ; then +if [ ! -e configure -o configure.ac -nt configure ] ; then echo "Running autoconf..." autoconf || exit 1 fi @@ -112,27 +113,32 @@ if [ "$AOO_SKIP_CONFIG" != "yes" ]; then ( ./configure \ --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname -sm`${AOO_BUILD_VERSION}" \ ${AOO_VERBOSE_BUILD} \ + ${AOO_BUILD_DEBUG} \ --with-system-stdlibs \ --enable-crashdump=yes \ --enable-category-b \ --enable-beanshell \ - --enable-wiki-publisher \ --enable-bundled-dictionaries \ - --enable-opengl \ - --enable-dbus \ + --enable-wiki-publisher \ + --enable-opengl \ + --enable-dbus \ --enable-gstreamer \ - --without-junit \ - --without-stlport \ --with-jdk-home="$JAVA_HOME" \ --with-ant-home="$ANT_HOME" \ - --with-package-format="rpm deb" \ - --with-lang="${LANGS}" \ + --without-junit \ --with-epm=/usr/local/bin/epm \ --with-dmake-path=/usr/local/bin/dmake \ + --without-stlport \ + --with-package-format="rpm deb" \ + --with-lang="${LANGS}" \ + "$@" \ | tee config.out ) || exit 1 fi -source ./LinuxX86-64Env.Set.sh || exit 1 +if [ "$AOO_JUST_CONFIG" = "yes" ]; then + exit +fi +source ./LinuxX86-64Env.Set.sh || exit 1 ./bootstrap || exit 1 if [ -e solenv/inc/reporevision.lst ]; then \rm solenv/inc/reporevision.lst diff --git a/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_ubuntu.sh b/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_ubuntu.sh index 18db6ac..daef37f 100755 --- a/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_ubuntu.sh +++ b/build-scripts/5.0.0-Dev1/unxlngix6/build_aoo64bit_on_ubuntu.sh @@ -6,16 +6,21 @@ set -eo pipefail # Build-script for AOO 5.0.x (and later) on Ubuntu # # ENV: -# LC_CTYPE=en_US.UTF-8 -# LANG=en_US.UTF-8 -# -# +# LC_CTYPE=en_US.UTF-8 +# LANG=en_US.UTF-8 +# # Installed in /usr/local: -# +# # o Apache ant 1.10.9 # o dmake 4.13.2 (https://github.com/jimjag/dmake/archive/v4.13.2/dmake-4.13.2.tar.gz) # o epm 5.1.0 (https://github.com/jimjag/epm/archive/v5.1.0/epm-5.1.0.tar.gz) # o autoconf 2.72 +# +# Everything else (zlib, expat, jpeg, libxml2, libxslt, curl, openssl, nss, +# icu, python, ...) is built from the bundled sources, so the only +# --with-system-* option passed to configure is --with-system-stdlibs +# (libstdc++/libgcc_s come from the build host). +# # # Build options @@ -37,28 +42,26 @@ AOO_BUILD_SRC= AOO_BUILD_ALL="yes" AOO_BUILD_DEBUG= -AOPTS=`getopt -o vsjtdbqa:j:m:k: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target:,macos-sdk: -n 'parse-options' -- "$@"` +AOPTS=`getopt -o vsjtdbqa:J: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version: -n 'parse-options' -- "$@"` if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi #echo "$AOPTS" eval set -- "$AOPTS" while true; do - case "$1" in + case "$1" in -v | --verbose ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;; -s | --skip-config ) AOO_SKIP_CONFIG="yes"; shift ;; -j | --just-config ) AOO_JUST_CONFIG="yes"; shift ;; -t | --build-src ) AOO_BUILD_SRC="yes"; shift ;; -q | --quick ) AOO_BUILD_ALL="no"; shift ;; -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;; - -j | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; - -m | --macos-target ) AOO_MACOS_TARGET=$2; shift 2 ;; - -k | --macos-sdk ) AOO_MACOS_SDK=$2; shift 2 ;; + -J | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;; -b | --beta ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;; --debug ) AOO_BUILD_DEBUG="--enable-symbols"; shift ;; -- ) shift; break ;; - * ) echo "unknown option: $1"; shift ;; - esac + * ) echo "unknown option: $1"; shift ;; + esac done if [ ! -d ../main -o ! -d sal ] ; then @@ -66,6 +69,7 @@ if [ ! -d ../main -o ! -d sal ] ; then exit 1 fi + JAVA_HOME=/usr/lib/jvm/java-${AOO_JAVA_VERSION}-openjdk-amd64 if [ ! -d "$JAVA_HOME" ] ; then echo "JAVA_HOME not found: $JAVA_HOME" @@ -84,25 +88,23 @@ ANT_CLASSPATH=${ANT_HOME}/lib export ANT_CLASSPATH echo "ANT_HOME is: $ANT_HOME..." echo "ANT_CLASSPATH is: $ANT_CLASSPATH..." +echo "PATH is: $PATH" -echo "Building for Linux 64, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION}" +echo "Building for ${AOO_BUILD_TYPE}: Linux 64, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION}" echo "---" echo "Starting build:" echo "" \rm -f solenv/inc/reporevision.lst + if [ ! -e external/unowinreg/unowinreg.dll ] ; then echo "Downloading unowinreg.dll..." wget -O external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll fi LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es et eu fi fr gd gl he hi hu hy it ja kab km ko lt nb nl om pl pt pt-BR ru sk sl sr sv ta th tr uk vi zh-CN zh-TW" +#LANGS="en-US" -if [ -e configure.in ]; then - AOO_CONF_T="configure.in" -else - AOO_CONF_T="configure.ac" -fi -if [ ! -e configure -o $AOO_CONF_T -nt configure ] ; then +if [ ! -e configure -o configure.ac -nt configure ] ; then echo "Running autoconf..." autoconf || exit 1 fi @@ -111,27 +113,32 @@ if [ "$AOO_SKIP_CONFIG" != "yes" ]; then ( ./configure \ --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname -sm`${AOO_BUILD_VERSION}" \ ${AOO_VERBOSE_BUILD} \ + ${AOO_BUILD_DEBUG} \ --with-system-stdlibs \ --enable-crashdump=yes \ --enable-category-b \ --enable-beanshell \ - --enable-wiki-publisher \ --enable-bundled-dictionaries \ - --enable-opengl \ - --enable-dbus \ + --enable-wiki-publisher \ + --enable-opengl \ + --enable-dbus \ --enable-gstreamer \ - --without-junit \ - --without-stlport \ --with-jdk-home="$JAVA_HOME" \ --with-ant-home="$ANT_HOME" \ - --with-package-format="rpm deb" \ - --with-lang="${LANGS}" \ + --without-junit \ --with-epm=/usr/local/bin/epm \ --with-dmake-path=/usr/local/bin/dmake \ + --without-stlport \ + --with-package-format="rpm deb" \ + --with-lang="${LANGS}" \ + "$@" \ | tee config.out ) || exit 1 fi -source ./LinuxX86-64Env.Set.sh || exit 1 +if [ "$AOO_JUST_CONFIG" = "yes" ]; then + exit +fi +source ./LinuxX86-64Env.Set.sh || exit 1 ./bootstrap || exit 1 if [ -e solenv/inc/reporevision.lst ]; then \rm solenv/inc/reporevision.lst diff --git a/build-scripts/5.0.0-Dev1/unxmaccr/build_aoo64bit_on_macosarm.sh b/build-scripts/5.0.0-Dev1/unxmaccr/build_aoo64bit_on_macosarm.sh index 00b3c8c..8c7a027 100755 --- a/build-scripts/5.0.0-Dev1/unxmaccr/build_aoo64bit_on_macosarm.sh +++ b/build-scripts/5.0.0-Dev1/unxmaccr/build_aoo64bit_on_macosarm.sh @@ -66,7 +66,7 @@ AOO_BUILD_SRC= AOO_BUILD_ALL="yes" AOO_BUILD_DEBUG= -AOPTS=`getopt -o vsjtdbqa:j:m:k: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target:,macos-sdk: -n 'parse-options' -- "$@"` +AOPTS=`getopt -o vsjtdbqa:J:m:k: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target:,macos-sdk: -n 'parse-options' -- "$@"` if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi #echo "$AOPTS" eval set -- "$AOPTS" @@ -79,7 +79,7 @@ while true; do -t | --build-src ) AOO_BUILD_SRC="yes"; shift ;; -q | --quick ) AOO_BUILD_ALL="no"; shift ;; -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;; - -j | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; + -J | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; -m | --macos-target ) AOO_MACOS_TARGET=$2; shift 2 ;; -k | --macos-sdk ) AOO_MACOS_SDK=$2; shift 2 ;; -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;; @@ -158,6 +158,8 @@ if [ "$AOO_SKIP_CONFIG" != "yes" ]; then --with-system-libxml=/usr/local \ --with-system-curl=/usr/local \ --with-system-expat=/usr/local \ + --with-static-system-libs=libxml,libxslt,curl,openssl \ + --without-system-python \ --enable-category-b \ --enable-beanshell \ --enable-bundled-dictionaries \ diff --git a/build-scripts/5.0.0-Dev1/unxmacos/build_aoo64bit_on_macos.sh b/build-scripts/5.0.0-Dev1/unxmacos/build_aoo64bit_on_macos.sh index 16a618b..60115df 100755 --- a/build-scripts/5.0.0-Dev1/unxmacos/build_aoo64bit_on_macos.sh +++ b/build-scripts/5.0.0-Dev1/unxmacos/build_aoo64bit_on_macos.sh @@ -66,7 +66,7 @@ AOO_BUILD_SRC= AOO_BUILD_ALL="yes" AOO_BUILD_DEBUG= -AOPTS=`getopt -o vsjtdbqa:j:m:k: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target:,macos-sdk: -n 'parse-options' -- "$@"` +AOPTS=`getopt -o vsjtdbqa:J:m:k: --long verbose,debug,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target:,macos-sdk: -n 'parse-options' -- "$@"` if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi #echo "$AOPTS" eval set -- "$AOPTS" @@ -79,7 +79,7 @@ while true; do -t | --build-src ) AOO_BUILD_SRC="yes"; shift ;; -q | --quick ) AOO_BUILD_ALL="no"; shift ;; -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;; - -j | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; + -J | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;; -m | --macos-target ) AOO_MACOS_TARGET=$2; shift 2 ;; -k | --macos-sdk ) AOO_MACOS_SDK=$2; shift 2 ;; -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;; @@ -158,6 +158,8 @@ if [ "$AOO_SKIP_CONFIG" != "yes" ]; then --with-system-libxml=/usr/local \ --with-system-curl=/usr/local \ --with-system-expat=/usr/local \ + --with-static-system-libs=libxml,libxslt,curl,openssl \ + --without-system-python \ --enable-category-b \ --enable-beanshell \ --enable-bundled-dictionaries \
