Package Details: ruby-google-protobuf 3.25.3-1

Git Clone URL: https://aur.archlinux.org/ruby-google-protobuf.git (read-only, click to copy)
Package Base: ruby-google-protobuf
Description: Protocol Buffers are Google's data interchange format.
Upstream URL: https://developers.google.com/protocol-buffers
Licenses: BSD3
Submitter: husam212
Maintainer: husam212
Last Packager: husam212
Votes: 0
Popularity: 0.000000
First Submitted: 2017-04-06 11:57 (UTC)
Last Updated: 2024-02-29 13:57 (UTC)

Latest Comments

MarsSeed commented on 2024-02-28 18:00 (UTC)

3.25.2 fails to build:

  ==> Starting package()...
  Building native extensions. This could take a while...
  ERROR:  Error installing google-protobuf-3.25.2.gem:
          ERROR: Failed to build gem native extension.

  current directory: 
      ruby-google-protobuf/pkg/ruby-google-protobuf/usr/lib/ruby/gems/3.0.0/gems/google-protobuf-3.25.2/ext/google/protobuf_c
  /usr/bin/ruby -I /usr/lib/ruby/3.0.0 extconf.rb
  creating Makefile

  current directory: 
      ruby-google-protobuf/pkg/ruby-google-protobuf/usr/lib/ruby/gems/3.0.0/gems/google-protobuf-3.25.2/ext/google/protobuf_c
  make DESTDIR\= sitearchdir\=./.gem.20240228-887048-lw9w46 sitelibdir\=./.gem.20240228-887048-lw9w46 clean

  current directory: 
      ruby-google-protobuf/pkg/ruby-google-protobuf/usr/lib/ruby/gems/3.0.0/gems/google-protobuf-3.25.2/ext/google/protobuf_c
  make DESTDIR\= sitearchdir\=./.gem.20240228-887048-lw9w46 sitelibdir\=./.gem.20240228-887048-lw9w46
  compiling defs.c
  compiling convert.c
  compiling protobuf.c
  convert.c: In function ‘Msgval_IsEqual’:
  convert.c:295:58: warning: passing argument 4 of ‘shared_Msgval_IsEqual’ discards ‘const’ qualifier from pointer target type 
      [-Wdiscarded-qualifiers]
    295 |                                             type_info.def.msgdef, &status);
        |                                             ~~~~~~~~~~~~~^~~~~~~
  In file included from convert.c:21:
  shared_convert.h:19:60: note: expected ‘upb_MessageDef *’ but argument is of type ‘const upb_MessageDef *’
     19 |                            upb_CType type, upb_MessageDef* msgdef,
        |                                            ~~~~~~~~~~~~~~~~^~~~~~
  convert.c:299:5: error: format not a string literal and no format arguments [-Werror=format-security]
    299 |     rb_raise(rb_eRuntimeError, upb_Status_ErrorMessage(&status));
        |     ^~~~~~~~
  convert.c: In function ‘Msgval_GetHash’:
  convert.c:308:41: warning: passing argument 3 of ‘shared_Msgval_GetHash’ discards ‘const’ qualifier from pointer target type 
      [-Wdiscarded-qualifiers]
    308 |       val, type_info.type, type_info.def.msgdef, seed, &status);
        |                            ~~~~~~~~~~~~~^~~~~~~
  shared_convert.h:23:48: note: expected ‘upb_MessageDef *’ but argument is of type ‘const upb_MessageDef *’
     23 |                                upb_MessageDef* msgdef, uint64_t seed,
        |                                ~~~~~~~~~~~~~~~~^~~~~~
  convert.c:312:5: error: format not a string literal and no format arguments [-Werror=format-security]
    312 |     rb_raise(rb_eRuntimeError, upb_Status_ErrorMessage(&status));
        |     ^~~~~~~~
  cc1: some warnings being treated as errors
  make: *** [Makefile:246: convert.o] Error 1
  make: *** Waiting for unfinished jobs....

  make failed, exit code 2

  Gem files will remain installed in ruby-google-protobuf/pkg/ruby-google-protobuf/usr/lib/ruby/gems/3.0.0/gems/google-protobuf-3.25.2 
      for inspection.
  Results logged to 
      ruby-google-protobuf/pkg/ruby-google-protobuf/usr/lib/ruby/gems/3.0.0/extensions/x86_64-linux/3.0.0/google-protobuf-3.25.2/gem_make.out
  ==> ERROR: A failure occurred in package().
      Aborting...