dholm / homebrew-sdr

Homebrew formulas for software defined radio
77 stars 40 forks source link

gr-gsm patch fails #2

Closed nejohnson2 closed 9 years ago

nejohnson2 commented 9 years ago

When trying to install gr-gsm I get several errors from the patching process:

=> Patching
patching file cmake/Modules/FindGnuradioRuntime.cmake
patching file include/gsm/endian.h
patching file lib/CMakeLists.txt
Hunk #1 FAILED at 42.
1 out of 1 hunk FAILED -- saving rejects to file lib/CMakeLists.txt.rej
can't find file to patch at input line 80
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/lib/demapping/get_bcch_or_ccch_bursts_impl.cc
|+++ b/lib/demapping/get_bcch_or_ccch_bursts_impl.cc
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file lib/demapping/universal_ctrl_chans_demapper_impl.cc
Hunk #1 FAILED at 24.
1 out of 1 hunk FAILED -- saving rejects to file lib/demapping/universal_ctrl_chans_demapper_impl.cc.rej
patching file lib/receiver/receiver_impl.cc
Hunk #1 succeeded at 36 with fuzz 2 (offset -2 lines).
Hunk #2 FAILED at 642.
1 out of 2 hunks FAILED -- saving rejects to file lib/receiver/receiver_impl.cc.rej
can't find file to patch at input line 126
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- c/lib/receiver/assert.h
|+++ i/lib/receiver/assert.h
--------------------------
No file to patch.  Skipping patch.
patch unexpectedly ends in middle of line
1 out of 1 hunk ignored
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1
nejohnson2 commented 9 years ago

Any idea's on how to update this? Or where did the patch come from? Is there another that might work?

dholm commented 9 years ago

@nejohnson2 I have updated the patch to work on the latest gr-gsm HEAD.

nejohnson2 commented 9 years ago

I think a patch to the libosmocore package may have affected the gr-gsm package.

I noticed today there was the patch for gr-gsm update...i tried to install...and the patches worked...but installing gr-gsm failed because libsomocore wasnt installed and it's a dependency of gr-gsm. I tried to install libosmocore but needed a patch update so I filled issue #7 . After a quick patch of libosmocore, I installed it successfully and went back to install gr-gsm but received this error:

patching file lib/misc_utils/extract_immediate_assignment_impl.cc
Hunk #1 FAILED at 28.
1 out of 1 hunk FAILED -- saving rejects to file lib/misc_utils/extract_immediate_assignment_impl.cc.rej
patching file lib/misc_utils/extract_system_info_impl.cc
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file lib/misc_utils/extract_system_info_impl.cc.rej
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1
dholm commented 9 years ago

@nejohnson2 I submitted the patch to gr-gsm yesterday and he merged it today. I updated the gr-gsm recipe after I saw the email but you probably fetched it before that. :)

I've updated the gr-gsm recipe to depend on libosmocore now.