Skip to content

Commit 702bc49

Browse files
Merge pull request dashpay#5712 from PastaPastaPasta/20.0.1-backports
backport: v20.0.1 backports and release
2 parents df79078 + 39b315a commit 702bc49

17 files changed

+619
-455
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AC_PREREQ([2.69])
22
define(_CLIENT_VERSION_MAJOR, 20)
33
define(_CLIENT_VERSION_MINOR, 0)
4-
define(_CLIENT_VERSION_BUILD, 0)
4+
define(_CLIENT_VERSION_BUILD, 1)
55
define(_CLIENT_VERSION_RC, 0)
66
define(_CLIENT_VERSION_IS_RELEASE, true)
77
define(_COPYRIGHT_YEAR, 2023)

contrib/guix/guix-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ EOF
447447
${SUBSTITUTE_URLS:+--substitute-urls="$SUBSTITUTE_URLS"} \
448448
${ADDITIONAL_GUIX_COMMON_FLAGS} ${ADDITIONAL_GUIX_ENVIRONMENT_FLAGS} \
449449
-- env HOST="$host" \
450+
CONFIGFLAGS="$CONFIGFLAGS" \
450451
DISTNAME="$DISTNAME" \
451452
JOBS="$JOBS" \
452453
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:?unable to determine value}" \

contrib/guix/libexec/build.sh

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Required environment variables as seen inside the container:
2727
DIST_ARCHIVE_BASE: ${DIST_ARCHIVE_BASE:?not set}
2828
DISTNAME: ${DISTNAME:?not set}
2929
HOST: ${HOST:?not set}
30+
CONFIGFLAGS: ${CONFIGFLAGS:?not set}
3031
SOURCE_DATE_EPOCH: ${SOURCE_DATE_EPOCH:?not set}
3132
JOBS: ${JOBS:?not set}
3233
DISTSRC: ${DISTSRC:?not set}
@@ -229,7 +230,7 @@ mkdir -p "$OUTDIR"
229230
###########################
230231

231232
# CONFIGFLAGS
232-
CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-gui-tests --disable-fuzz-binary"
233+
CONFIGFLAGS+=" --enable-reduce-exports --disable-bench --disable-gui-tests --disable-fuzz-binary"
233234
case "$HOST" in
234235
*linux*) CONFIGFLAGS+=" --disable-threadlocal" ;;
235236
esac
@@ -285,6 +286,13 @@ mkdir -p "$DISTSRC"
285286
# Build Dash Core
286287
make --jobs="$JOBS" ${V:+V=1}
287288

289+
# Make macos-specific debug symbols
290+
case "$HOST" in
291+
*darwin*)
292+
make -C src/ osx_debug
293+
;;
294+
esac
295+
288296
# Check that symbol/security checks tools are sane.
289297
make test-security-check ${V:+V=1}
290298
# Perform basic security checks on a series of executables.
@@ -307,14 +315,7 @@ mkdir -p "$DISTSRC"
307315
INSTALLPATH="${PWD}/installed/${DISTNAME}"
308316
mkdir -p "${INSTALLPATH}"
309317
# Install built Dash Core to $INSTALLPATH
310-
case "$HOST" in
311-
*darwin*)
312-
make install-strip DESTDIR="${INSTALLPATH}" ${V:+V=1}
313-
;;
314-
*)
315-
make install DESTDIR="${INSTALLPATH}" ${V:+V=1}
316-
;;
317-
esac
318+
make install DESTDIR="${INSTALLPATH}" ${V:+V=1}
318319

319320
case "$HOST" in
320321
*darwin*)
@@ -354,7 +355,10 @@ mkdir -p "$DISTSRC"
354355
rm -rf "${DISTNAME}/lib/pkgconfig"
355356

356357
case "$HOST" in
357-
*darwin*) ;;
358+
*darwin*)
359+
# Copy dSYM-s
360+
find ../src -name "*.dSYM" -exec cp -ra {} "${DISTNAME}/bin" \;
361+
;;
358362
*)
359363
# Split binaries and libraries from their debug symbols
360364
{
@@ -403,11 +407,16 @@ mkdir -p "$DISTSRC"
403407
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-debug.tar.gz" && exit 1 )
404408
;;
405409
*darwin*)
406-
find "${DISTNAME}" -print0 \
410+
find "${DISTNAME}" -not -path "*.dSYM*" -print0 \
407411
| sort --zero-terminated \
408412
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
409413
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}.tar.gz" \
410414
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}.tar.gz" && exit 1 )
415+
find "${DISTNAME}" -path "*.dSYM*" -print0 \
416+
| sort --zero-terminated \
417+
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
418+
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}-debug.tar.gz" \
419+
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-debug.tar.gz" && exit 1 )
411420
;;
412421
esac
413422
) # $DISTSRC/installed

0 commit comments

Comments
 (0)