Skip to content

Commit 29739eb

Browse files
committed
merge bitcoin#24031: don't compress macOS DMG
1 parent b6c7428 commit 29739eb

File tree

10 files changed

+7
-111
lines changed

10 files changed

+7
-111
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ libconftest.dylib*
7575
*.log
7676
*.trs
7777
*.dmg
78-
*.iso
7978

8079
*.json.h
8180
*.raw.h

Makefile.am

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if ENABLE_MAN
1313
SUBDIRS += doc/man
1414
endif
1515
.PHONY: deploy FORCE
16-
.INTERMEDIATE: $(OSX_TEMP_ISO) $(COVERAGE_INFO)
16+
.INTERMEDIATE: $(COVERAGE_INFO)
1717

1818
export PYTHONPATH
1919

@@ -35,7 +35,6 @@ space := $(empty) $(empty)
3535
OSX_APP=Dash-Qt.app
3636
OSX_VOLNAME = $(subst $(space),-,$(PACKAGE_NAME))
3737
OSX_DMG = $(OSX_VOLNAME).dmg
38-
OSX_TEMP_ISO = $(OSX_DMG:.dmg=).temp.iso
3938
OSX_BACKGROUND_IMAGE=$(top_srcdir)/contrib/macdeploy/background.tiff
4039
OSX_DEPLOY_SCRIPT=$(top_srcdir)/contrib/macdeploy/macdeployqtplus
4140
OSX_INSTALLER_ICONS=$(top_srcdir)/src/qt/res/icons/dash.icns
@@ -132,12 +131,9 @@ $(APP_DIST_DIR)/Applications:
132131

133132
$(APP_DIST_EXTRAS): $(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Dash-Qt
134133

135-
$(OSX_TEMP_ISO): $(APP_DIST_EXTRAS)
134+
$(OSX_DMG): deploydir
136135
$(XORRISOFS) -D -l -V "$(OSX_VOLNAME)" -no-pad -r -dir-mode 0755 -o $@ $(APP_DIST_DIR) -- $(if $(SOURCE_DATE_EPOCH),-volume_date all_file_dates =$(SOURCE_DATE_EPOCH))
137136

138-
$(OSX_DMG): $(OSX_TEMP_ISO)
139-
$(DMG) dmg "$<" "$@"
140-
141137
$(APP_DIST_DIR)/.background/background.tiff:
142138
$(MKDIR_P) $(@D)
143139
cp $(OSX_BACKGROUND_IMAGE) $@
@@ -148,7 +144,6 @@ $(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Dash-Qt: $(OSX_APP_BUILT) $(OSX_PACKAG
148144
deploydir: $(APP_DIST_EXTRAS)
149145
endif !BUILD_DARWIN
150146

151-
appbundle: $(OSX_APP_BUILT)
152147
deploy: $(OSX_DMG)
153148
endif
154149

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,6 @@ case $host in
757757
AC_PATH_TOOL([INSTALLNAMETOOL], [install_name_tool], install_name_tool)
758758
AC_PATH_TOOL([OTOOL], [otool], otool)
759759
AC_PATH_PROGS([XORRISOFS], [xorrisofs], xorrisofs)
760-
AC_PATH_PROGS([DMG], [dmg], dmg)
761760

762761
dnl libtool will try to strip the static lib, which is a problem for
763762
dnl cross-builds because strip attempts to call a hard-coded ld,

contrib/guix/libexec/build.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,6 @@ prepend_to_search_env_var() {
7676
export "${1}=${2}${!1:+:}${!1}"
7777
}
7878

79-
case "$HOST" in
80-
*darwin*)
81-
# When targeting darwin, zlib is required by native_libdmg-hfsplus.
82-
zlib_store_path=$(store_path "zlib")
83-
zlib_static_store_path=$(store_path "zlib" static)
84-
85-
prepend_to_search_env_var LIBRARY_PATH "${zlib_static_store_path}/lib:${zlib_store_path}/lib"
86-
prepend_to_search_env_var C_INCLUDE_PATH "${zlib_store_path}/include"
87-
prepend_to_search_env_var CPLUS_INCLUDE_PATH "${zlib_store_path}/include"
88-
prepend_to_search_env_var OBJC_INCLUDE_PATH "${zlib_store_path}/include"
89-
prepend_to_search_env_var OBJCPLUS_INCLUDE_PATH "${zlib_store_path}/include"
90-
esac
91-
9279
# Set environment variables to point the CROSS toolchain to the right
9380
# includes/libs for $HOST
9481
case "$HOST" in
@@ -334,8 +321,7 @@ mkdir -p "$DISTSRC"
334321
mkdir -p "unsigned-app-${HOST}"
335322
cp --target-directory="unsigned-app-${HOST}" \
336323
osx_volname \
337-
contrib/macdeploy/detached-sig-create.sh \
338-
"${BASEPREFIX}/${HOST}"/native/bin/dmg
324+
contrib/macdeploy/detached-sig-create.sh
339325
mv --target-directory="unsigned-app-${HOST}" dist
340326
(
341327
cd "unsigned-app-${HOST}"

contrib/guix/libexec/codesign.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,11 @@ mkdir -p "$DISTSRC"
8181
# Apply detached codesignatures to dist/ (in-place)
8282
signapple apply dist/Dash-Qt.app codesignatures/osx/dist
8383

84-
# Make an uncompressed DMG from dist/
84+
# Make a DMG from dist/
8585
xorrisofs -D -l -V "$(< osx_volname)" -no-pad -r -dir-mode 0755 \
86-
-o uncompressed.dmg \
86+
-o "${OUTDIR}/${DISTNAME}-${HOST}.dmg" \
8787
dist \
8888
-- -volume_date all_file_dates ="$SOURCE_DATE_EPOCH"
89-
90-
# Compress uncompressed.dmg and output to OUTDIR
91-
./dmg dmg uncompressed.dmg "${OUTDIR}/${DISTNAME}-${HOST}.dmg"
9289
;;
9390
*)
9491
exit 1

contrib/guix/manifest.scm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,6 @@ parse, modify and abstract ELF, PE and MachO formats.")
600600
bzip2
601601
gzip
602602
xz
603-
zlib
604-
(list zlib "static")
605603
;; Build tools
606604
gnu-make
607605
libtool-2.4.7

contrib/macdeploy/README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,7 @@ redistributed.
9797

9898
[`xorrisofs`](https://www.gnu.org/software/xorriso/) is used to create the DMG.
9999

100-
`xorrisofs` cannot compress DMGs, so afterwards, the DMG tool from the
101-
`libdmg-hfsplus` project is used to compress it. There are several bugs in this
102-
tool and its maintainer has seemingly abandoned the project.
103-
104-
The DMG tool has the ability to create DMGs from scratch as well, but this functionality is
105-
broken. Only the compression feature is currently used. Ideally, the creation could be fixed
106-
and `xorrisofs` would no longer be necessary.
107-
108-
Background images and other features can be added to DMG files by inserting a
109-
`.DS_Store` during creation.
100+
A background image is added to DMG files by inserting a `.DS_Store` during creation.
110101

111102
As of OS X 10.9 Mavericks, using an Apple-blessed key to sign binaries is a requirement in
112103
order to satisfy the new Gatekeeper requirements. Because this private key cannot be

depends/packages/native_libdmg-hfsplus.mk

Lines changed: 0 additions & 24 deletions
This file was deleted.

depends/packages/packages.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ darwin_native_packages = native_ds_store native_mac_alias
2424
$(host_arch)_$(host_os)_native_packages += native_b2
2525

2626
ifneq ($(build_os),darwin)
27-
darwin_native_packages += native_cctools native_libtapi native_libdmg-hfsplus
27+
darwin_native_packages += native_cctools native_libtapi
2828

2929
ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),)
3030
darwin_native_packages+= native_clang

depends/patches/native_libdmg-hfsplus/remove-libcrypto-dependency.patch

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)