svn commit: r523845 - head/www/chromium/files
Piotr Kubaj
pkubaj at anongoth.pl
Wed Jan 22 21:01:14 UTC 2020
www/iridium has the same problem, can you apply this patch there as well?
On 20-01-22 20:53:42, Christoph Moench-Tegeder wrote:
> Author: cmt
> Date: Wed Jan 22 20:53:41 2020
> New Revision: 523845
> URL: https://svnweb.freebsd.org/changeset/ports/523845
>
> Log:
> fix build
>
> in a 12.1amd64 poudriere, chromium failed:
> In file included from ../../third_party/leveldatabase/port/port_chromium.cc:10:
> ../../third_party/snappy/src/snappy.h:76:59: error: unknown type name 'string'; did you mean 'std::string'?
> size_t Compress(const char* input, size_t input_length, string* output);
> ^~~~~~
> std::string
> /usr/include/c++/v1/iosfwd:211:65: note: 'std::string' declared here
>
> instead of trying to muck around with type aliasing (see
> snappy-stubs-public.h.in) just reference thy type directly, as there's only
> one file requiring patching.
>
> MFH: 2020Q1 (blanket: web browser, just fix it)
>
> Added:
> head/www/chromium/files/patch-third__party_snappy_src_snappy.h (contents, props changed)
>
> Added: head/www/chromium/files/patch-third__party_snappy_src_snappy.h
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ head/www/chromium/files/patch-third__party_snappy_src_snappy.h Wed Jan 22 20:53:41 2020 (r523845)
> @@ -0,0 +1,20 @@
> +--- third_party/snappy/src/snappy.h.orig 2020-01-22 18:43:16 UTC
> ++++ third_party/snappy/src/snappy.h
> +@@ -73,7 +73,7 @@ namespace snappy {
> + // Original contents of *output are lost.
> + //
> + // REQUIRES: "input[]" is not an alias of "*output".
> +- size_t Compress(const char* input, size_t input_length, string* output);
> ++ size_t Compress(const char* input, size_t input_length, std::string* output);
> +
> + // Decompresses "compressed[0,compressed_length-1]" to "*uncompressed".
> + // Original contents of "*uncompressed" are lost.
> +@@ -82,7 +82,7 @@ namespace snappy {
> + //
> + // returns false if the message is corrupted and could not be decompressed
> + bool Uncompress(const char* compressed, size_t compressed_length,
> +- string* uncompressed);
> ++ std::string* uncompressed);
> +
> + // Decompresses "compressed" to "*uncompressed".
> + //
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20200122/82916ba9/attachment.sig>
More information about the svn-ports-all
mailing list