RedisDesktopManager icon indicating copy to clipboard operation
RedisDesktopManager copied to clipboard

Breakpad.xib: patch does not apply (branch 2019.0)

Open HanawaBanana opened this issue 7 years ago • 20 comments

when I clone this repo(checkout branch:2019.0). I run ./configure, get this response.

error: patch failed: src/client/mac/sender/Breakpad.xib:1114
error: src/client/mac/sender/Breakpad.xib: patch does not apply

this is steps.

git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 2019.0
cd RedisDesktopManager/src/
./configure

it's shell screenshots. image it's Breakpad.xib screenshots. image

Environment mac OS version:10.14.4 (18E226) qt version:5.12.0

HanawaBanana avatar Apr 25 '19 11:04 HanawaBanana

@Hanawa , have you ever solved this problem? I have met this problem too

cielu avatar Apr 25 '19 12:04 cielu

@hanawa have you ever solved this problem? I have met this problem too

nope... I tried 0.9.8, 0.9.999. It works. But not 2019.0.

HanawaBanana avatar Apr 25 '19 12:04 HanawaBanana

nope... I tried 0.9.8, 0.9.999. It works. But not 2019.0.

May not support anymore.

cielu avatar Apr 25 '19 12:04 cielu

@HanawaBanana @cielu Please edit line git apply ../breakpad_osx.patch to git apply -v ../breakpad_osx.patch in src/configure to see why git fails to apply patch

uglide avatar Apr 25 '19 12:04 uglide

image

sawyersoft avatar Apr 28 '19 15:04 sawyersoft

@uglide

Checking patch src/client/mac/sender/Breakpad.xib...
error: while searching for:
		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
			<integer value="1050" key="NS.object.0"/>
		</object>
		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>

error: patch failed: src/client/mac/sender/Breakpad.xib:1114
error: src/client/mac/sender/Breakpad.xib: patch does not apply

kanyways avatar Apr 29 '19 01:04 kanyways

OS: macOS Mojave 10.14.4

kanyways avatar Apr 29 '19 01:04 kanyways

@HanawaBanana @cielu I edit line git apply ../breakpad_osx.patch to # git apply -v ../breakpad_osx.patch in src/configure, It works.

kanyways avatar Apr 29 '19 02:04 kanyways

if brew run into error, breakpad_osx.patch will failed

thus you can ensure your brew never error by comment the error install scripts

# On OSX use coreutils package to fix absense of readlink command
# if [[ $OSTYPE == darwin* ]]; then
#   brew install coreutils || true
#   PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
# fi

# brew upgrade openssl || brew install openssl || true

in my case is coreutils and openssl, you can install it manually

you may need to clean up before rebuild

dxsooo avatar Apr 29 '19 09:04 dxsooo

@HanawaBanana @cielu I edit line git apply ../breakpad_osx.patch to # git apply -v ../breakpad_osx.patch in src/configure, It works.

it still not work.

...
=== BUILD TARGET crash_report_sender OF PROJECT Breakpad WITH CONFIGURATION Release ===
warning: invalid character '_' in Bundle Identifier at column 18. This string must be a uniform type identifier (UTI) that contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.) characters.
=== BUILD TARGET crash_report_sender OF PROJECT Breakpad WITH CONFIGURATION Release ===
warning: no debug symbols in executable (-arch x86_64)
Error: openssl 1.0.2r already installed
Warning: openssl 1.0.2r is already installed and up-to-date
To reinstall 1.0.2r, run `brew reinstall openssl`

echokk11 avatar May 10 '19 02:05 echokk11

OS: macOS Mojave 10.14.2 (18C54)
Xcode 10.1
Build version 10B61

same error

sundayha avatar May 15 '19 10:05 sundayha

same error

littlefisher666 avatar May 17 '19 07:05 littlefisher666

same error

jsrpy avatar May 21 '19 07:05 jsrpy

Once apply the patch, it already changed the file 3rdparty/gbreakpad/src/client/mac/sender/Breakpad.xib. Second time run ./configure, it cannot find where to patch so it will emit this error.
So discard the change in 3rdparty/gbreakpad/src/client/mac/sender/Breakpad.xib or comment git apply ../breakpad_osx.patch in build/common_functions may help.

cyf-hopex avatar May 24 '19 07:05 cyf-hopex

@HanawaBanana @cielu Please edit line git apply ../breakpad_osx.patch to git apply -v ../breakpad_osx.patch in src/configure to see why git fails to apply patch

rdm$ ./src/configure Warning: coreutils 8.31 is already installed and up-to-date To reinstall 8.31, run brew reinstall coreutils Checking patch src/client/mac/sender/Breakpad.xib... error: while searching for: IBCocoaFramework com.apple.InterfaceBuilder.CocoaPlugin.macosx com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3

error: patch failed: src/client/mac/sender/Breakpad.xib:1114 error: src/client/mac/sender/Breakpad.xib: patch does not apply

alanxiaowei avatar Jun 14 '19 13:06 alanxiaowei

I edit line git apply ../breakpad_osx.patch to # git apply -v ../breakpad_osx.patch in src/configure, It works.

I edit line git apply ../breakpad_osx.patch to # git apply -v ../breakpad_osx.patch in src/configure, It works. and I edit the rdm.pro, comment the lines

#    debug:   DESTDIR = ./../bin/osx/debug
······
#    release {
#        CRASHREPORTER_APP.files = $$DESTDIR/crashreporter
#        CRASHREPORTER_APP.path = Contents/MacOS
#        QMAKE_BUNDLE_DATA += CRASHREPORTER_APP
#    }

and do qmake CONFIG-=debug && make in cmd then it works

xSandie avatar Jul 01 '19 06:07 xSandie

it interrupt here

=== BUILD TARGET crash_report_sender OF PROJECT Breakpad WITH CONFIGURATION Release ===
warning: invalid character '_' in Bundle Identifier at column 18. This string must be a uniform type identifier (UTI) that contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.) characters.
=== BUILD TARGET crash_report_sender OF PROJECT Breakpad WITH CONFIGURATION Release ===
warning: no debug symbols in executable (-arch x86_64)
Error: openssl 1.0.2s already installed
Warning: openssl 1.0.2s is already installed and up-to-date
To reinstall 1.0.2s, run `brew reinstall openssl`

echokk11 avatar Jul 01 '19 12:07 echokk11

@echokk11 I comment all the lines where brew install appears and install them manually.

xSandie avatar Jul 01 '19 12:07 xSandie

I have met this problem too.

moqimoqidea avatar Jul 14 '19 04:07 moqimoqidea

Exact same problem.

Offirmo avatar Jul 15 '19 06:07 Offirmo