Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[protobuf] port does not work #4006

Closed
jozefizso opened this issue Aug 2, 2018 · 6 comments
Closed

[protobuf] port does not work #4006

jozefizso opened this issue Aug 2, 2018 · 6 comments

Comments

@jozefizso
Copy link
Contributor

The protobuf port 3.6.1 does not work properly.

Patches are incorrect, when building, the patch error logs this:

patch-x86-windows-static-0-err.log

Checking patch cmake/libprotoc.cmake...
Hunk #1 succeeded at 62 (offset -11 lines).
error: while searching for:
)?
add_executable(js_embed ${protobuf_source_dir}/src/google/protobuf/compiler/js/embed.cc)?
add_custom_command(?
  OUTPUT ${protobuf_source_dir}/src/google/protobuf/compiler/js/well_known_types_embed.cc?
  DEPENDS js_embed ${js_well_known_types_sources}?
  COMMAND js_embed ${js_well_known_types_sources} > ${protobuf_source_dir}/src/google/protobuf/compiler/js/well_known_types_embed.cc?
)?
?
add_library(libprotoc ${protobuf_SHARED_OR_STATIC}?

error: patch failed: cmake/libprotoc.cmake:210
error: cmake/libprotoc.cmake: patch does not apply 
@TheAifam5
Copy link
Contributor

TheAifam5 commented Aug 2, 2018

I wrote it about that the patches are obsolete. #3995
That shows how they test ports :(

You can use my pr which works: #4000
Don't mind that my pr "has conflicts", that happened because of the #3995. You can safely just download the port and replace files.

@ras0219-msft
Copy link
Contributor

ras0219-msft commented Aug 2, 2018

Thanks for posting this issue!

The protobuf port 3.6.1 does not work properly.

To be completely clear: does the build fail or does the produced binary not work? While it's definitely better to not have patches that don't apply (and at some point we would like to make non-applicable patches an error), I want to be completely clear what the current state is :)

@TheAifam5 We currently don't consider patches that fail to apply an error, however we do compile the entire transitive build closure to ensure there are no breakages.

@jozefizso
Copy link
Contributor Author

I think if the patch does not apply correctly, it's bug in the protobuf port. The patch is there for some reason so unpatched code may not work correctly.

@alexkaratarakis
Copy link
Contributor

@TheAifam5 @jozefizso
#4000 Builds fine in all platforms and some of the removed patches were not being referenced in the portfile to begin with. The only patch that was referenced is js-embed.patch and it wasn't applying.

I merged #4000 so the port is in a clean state. If a patch needs to be re-added, then we can easily retrieve it from git history.

@alexkaratarakis
Copy link
Contributor

Related: #3787

@TheAifam5
Copy link
Contributor

TheAifam5 commented Aug 7, 2018

@alexkaratarakis I'm not sure and I don't see any point why we should have js-embed.patch. If that's is really needed, it's really simple to add.
The BUILD_PROTOC_BINARIES is ON default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants