Skip to content

Commit

Permalink
Merge pull request #5712 from PastaPastaPasta/20.0.1-backports
Browse files Browse the repository at this point in the history
backport: v20.0.1 backports and release
  • Loading branch information
PastaPastaPasta committed Nov 16, 2023
2 parents df79078 + 39b315a commit 702bc49
Show file tree
Hide file tree
Showing 17 changed files with 619 additions and 455 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AC_PREREQ([2.69])
define(_CLIENT_VERSION_MAJOR, 20)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_RC, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2023)
Expand Down
1 change: 1 addition & 0 deletions contrib/guix/guix-build
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ EOF
${SUBSTITUTE_URLS:+--substitute-urls="$SUBSTITUTE_URLS"} \
${ADDITIONAL_GUIX_COMMON_FLAGS} ${ADDITIONAL_GUIX_ENVIRONMENT_FLAGS} \
-- env HOST="$host" \
CONFIGFLAGS="$CONFIGFLAGS" \
DISTNAME="$DISTNAME" \
JOBS="$JOBS" \
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:?unable to determine value}" \
Expand Down
31 changes: 20 additions & 11 deletions contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Required environment variables as seen inside the container:
DIST_ARCHIVE_BASE: ${DIST_ARCHIVE_BASE:?not set}
DISTNAME: ${DISTNAME:?not set}
HOST: ${HOST:?not set}
CONFIGFLAGS: ${CONFIGFLAGS:?not set}
SOURCE_DATE_EPOCH: ${SOURCE_DATE_EPOCH:?not set}
JOBS: ${JOBS:?not set}
DISTSRC: ${DISTSRC:?not set}
Expand Down Expand Up @@ -229,7 +230,7 @@ mkdir -p "$OUTDIR"
###########################

# CONFIGFLAGS
CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-gui-tests --disable-fuzz-binary"
CONFIGFLAGS+=" --enable-reduce-exports --disable-bench --disable-gui-tests --disable-fuzz-binary"
case "$HOST" in
*linux*) CONFIGFLAGS+=" --disable-threadlocal" ;;
esac
Expand Down Expand Up @@ -285,6 +286,13 @@ mkdir -p "$DISTSRC"
# Build Dash Core
make --jobs="$JOBS" ${V:+V=1}

# Make macos-specific debug symbols
case "$HOST" in
*darwin*)
make -C src/ osx_debug
;;
esac

# Check that symbol/security checks tools are sane.
make test-security-check ${V:+V=1}
# Perform basic security checks on a series of executables.
Expand All @@ -307,14 +315,7 @@ mkdir -p "$DISTSRC"
INSTALLPATH="${PWD}/installed/${DISTNAME}"
mkdir -p "${INSTALLPATH}"
# Install built Dash Core to $INSTALLPATH
case "$HOST" in
*darwin*)
make install-strip DESTDIR="${INSTALLPATH}" ${V:+V=1}
;;
*)
make install DESTDIR="${INSTALLPATH}" ${V:+V=1}
;;
esac
make install DESTDIR="${INSTALLPATH}" ${V:+V=1}

case "$HOST" in
*darwin*)
Expand Down Expand Up @@ -354,7 +355,10 @@ mkdir -p "$DISTSRC"
rm -rf "${DISTNAME}/lib/pkgconfig"

case "$HOST" in
*darwin*) ;;
*darwin*)
# Copy dSYM-s
find ../src -name "*.dSYM" -exec cp -ra {} "${DISTNAME}/bin" \;
;;
*)
# Split binaries and libraries from their debug symbols
{
Expand Down Expand Up @@ -403,11 +407,16 @@ mkdir -p "$DISTSRC"
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-debug.tar.gz" && exit 1 )
;;
*darwin*)
find "${DISTNAME}" -print0 \
find "${DISTNAME}" -not -path "*.dSYM*" -print0 \
| sort --zero-terminated \
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}.tar.gz" \
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}.tar.gz" && exit 1 )
find "${DISTNAME}" -path "*.dSYM*" -print0 \
| sort --zero-terminated \
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}-debug.tar.gz" \
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-debug.tar.gz" && exit 1 )
;;
esac
) # $DISTSRC/installed
Expand Down
Loading

0 comments on commit 702bc49

Please sign in to comment.