{"id":2231923,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2231923/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260501152758.2610763-14-bernd@kuhls.net/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.2/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260501152758.2610763-14-bernd@kuhls.net>","list_archive_url":null,"date":"2026-05-01T15:27:49","name":"[v4,13/21] package/snappy: enable rtti","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"aeeb72464ef92c8da90f65184074bd5b3fac53bd","submitter":{"id":86624,"url":"http://patchwork.ozlabs.org/api/1.2/people/86624/?format=json","name":"Bernd Kuhls","email":"bernd@kuhls.net"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260501152758.2610763-14-bernd@kuhls.net/mbox/","series":[{"id":502474,"url":"http://patchwork.ozlabs.org/api/1.2/series/502474/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=502474","date":"2026-05-01T15:27:39","name":"package/gcc: add version 16.1.0","version":4,"mbox":"http://patchwork.ozlabs.org/series/502474/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231923/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231923/checks/","tags":{},"related":[],"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=Xf39PZ0A;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6ZkX51sdz1xqf\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Sat, 02 May 2026 01:31:00 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 51B1542712;\n\tFri,  1 May 2026 15:30:59 +0000 (UTC)","from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id e6CWn08LBRRf; Fri,  1 May 2026 15:30:57 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 076A342690;\n\tFri,  1 May 2026 15:30:57 +0000 (UTC)","from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n by lists1.osuosl.org (Postfix) with ESMTP id 93A28127\n for <buildroot@buildroot.org>; Fri,  1 May 2026 15:30:56 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id 9165C40276\n for <buildroot@buildroot.org>; Fri,  1 May 2026 15:30:56 +0000 (UTC)","from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id PeI9YDPhvDjM for <buildroot@buildroot.org>;\n Fri,  1 May 2026 15:30:55 +0000 (UTC)","from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp2.osuosl.org (Postfix) with ESMTPS id 88F6441042\n for <buildroot@buildroot.org>; Fri,  1 May 2026 15:30:55 +0000 (UTC)","from fli4l.lan.fli4l (p4fd6c2eb.dip0.t-ipconnect.de\n [79.214.194.235])\n by dd20012.kasserver.com (Postfix) with ESMTPSA id 541BDA4C0250;\n Fri,  1 May 2026 17:28:03 +0200 (CEST)","from bruckner.lan.fli4l ([192.168.1.1]:42324)\n by fli4l.lan.fli4l with esmtp (Exim 4.99.2)\n (envelope-from <bernd@kuhls.net>) id 1wIpmb-00000000172-26ET;\n Fri, 01 May 2026 15:28:01 +0000"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp4.osuosl.org 076A342690","OpenDKIM Filter v2.11.0 smtp2.osuosl.org 88F6441042"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777649457;\n\tbh=NT9nD4FCuweQ+IsNkZMp2HtI4AZpiPrxw0yIJarrxx8=;\n\th=From:To:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t Cc:From;\n\tb=Xf39PZ0A13rfos8tKBRvFQmdTalk9VZC2uYfLvpMVFakb+VXT+5QgGlCks1eM6oQB\n\t Ixb+ohop93To0kXOMA/5+P3sEQx/S1bFWTbTe5oalNmhVv5WhkYBnPoqNB6KL7hKlH\n\t Q+H5fisU42MJc6HBHBkY3uIg7oBNVxDf7MblVruzkKAgQVcSlNd7YbytHNg5/bpxkx\n\t I8sN/yyBwNM74ULHk/b8/I+aYidfKC8rXVx0zUgQmxLMYz3VJS4yJt2Tppp8jOsyAq\n\t OEoexQPoChU26iWkG134cXi1FrblExwuCubWDkl1y+2RaqOnX+lkgyRKFhO7yJnysD\n\t p6NTeB1sMuDyg==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=85.13.140.57;\n helo=dd20012.kasserver.com; envelope-from=bernd@kuhls.net;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp2.osuosl.org 88F6441042","From":"Bernd Kuhls <bernd@kuhls.net>","To":"buildroot@buildroot.org","Date":"Fri,  1 May 2026 17:27:49 +0200","Message-ID":"<20260501152758.2610763-14-bernd@kuhls.net>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260501152758.2610763-1-bernd@kuhls.net>","References":"<20260501152758.2610763-1-bernd@kuhls.net>","MIME-Version":"1.0","X-Spamd-Bar":"++","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=kuhls.net;\n s=kas202511301023; t=1777649283;\n bh=fKafc9RnwyKD+LNCTE4nI9Ub9DwyRZQ0nErz8tc02UE=;\n h=From:To:Cc:Subject:Date:In-Reply-To:From;\n b=G/EcA0bIkv4ahOs4XHYP36Ac3ljFnlx50G3GIZFJFIJq2jGJtzTa3jEjrC0MGjNt8\n XwLMd6ILGBKUCjVsTgW6ZQYqIVuEjKRBCVM9UNyRHH+wfbo/CDa3Lq3/l8ikCj56l1\n vfa1PDHbuvWIx8Ka+bISI+TQlp9nkk55iNQM7axixnlsHNgiGYY3xcHAXFKveMLZJM\n LWmK/pzv3yjXjQTbN8sZs/h1wBDrr2Y/qgL4kK+uNTNnxejUFyAkbLZrNrVvgVntHC\n gA/gaOh4p2wC/yhE2tf5KOw8pyltTw6wKwly3cOCbVzteuENWYUTDGXxSzFlj1zkAB\n aNplJZLA7ZFUA==","X-Mailman-Original-Authentication-Results":["smtp2.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net","smtp2.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256\n header.s=kas202511301023 header.b=G/EcA0bI"],"Subject":"[Buildroot] [PATCH v4 13/21] package/snappy: enable rtti","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Cc":"Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>,\n Tudor Holton <buildroot@tudorholton.com>,\n Fabrice Fontaine <fontaine.fabrice@gmail.com>,\n Angelo Compagnucci <angelo.compagnucci@gmail.com>,\n Olivier Schonken <olivier.schonken@gmail.com>,\n Thomas Petazzoni <thomas.petazzoni@bootlin.com>,\n Romain Naour <romain.naour@gmail.com>,\n Giulio Benetti <giulio.benetti@benettiengineering.com>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"Added patch to enable rtti, needed for upcoming bump of rocksdb to fix\nlink error:\n\noutput/per-package/rocksdb/host/bin/../lib/gcc/x86_64-buildroot-linux-\ngnu/15.2.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:\n librocksdb.so.10.7.5: undefined reference to `typeinfo for snappy::Sink'\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\n .../0002-add-option-to-enable-rtti.patch      | 52 +++++++++++++++++++\n package/snappy/snappy.mk                      |  5 +-\n 2 files changed, 56 insertions(+), 1 deletion(-)\n create mode 100644 package/snappy/0002-add-option-to-enable-rtti.patch","diff":"diff --git a/package/snappy/0002-add-option-to-enable-rtti.patch b/package/snappy/0002-add-option-to-enable-rtti.patch\nnew file mode 100644\nindex 0000000000..e82328b0ff\n--- /dev/null\n+++ b/package/snappy/0002-add-option-to-enable-rtti.patch\n@@ -0,0 +1,52 @@\n+From 376f14b5933e91d08ade6a503fdd657a6e01a149 Mon Sep 17 00:00:00 2001\n+From: Max <tchristy001@outlook.com>\n+Date: Wed, 24 Nov 2021 12:16:23 -0600\n+Subject: [PATCH] add option to enable rtti, set default to current behavior\n+\n+Upstream: https://github.com/google/snappy/pull/147 (rejected)\n+\n+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>\n+[rebased for 1.2.2]\n+---\n+ CMakeLists.txt | 14 ++++++++++----\n+ 1 file changed, 10 insertions(+), 4 deletions(-)\n+\n+diff --git a/CMakeLists.txt b/CMakeLists.txt\n+index 6eef485..aefd35b 100644\n+--- a/CMakeLists.txt\n++++ b/CMakeLists.txt\n+@@ -53,8 +53,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n+   add_definitions(-D_HAS_EXCEPTIONS=0)\n+ \n+   # Disable RTTI.\n+-  string(REGEX REPLACE \"/GR\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n+-  set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} /GR-\")\n++  if(NOT SNAPPY_ENABLE_RTTI)\n++    string(REGEX REPLACE \"/GR\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n++    set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} /GR-\")\n++  endif(SNAPPY_ENABLE_RTTI)\n+ else(MSVC)\n+   # Use -Wall for clang and gcc.\n+   if(NOT CMAKE_CXX_FLAGS MATCHES \"-Wall\")\n+@@ -78,8 +80,10 @@ else(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n+   set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fno-exceptions\")\n+ \n+   # Disable RTTI.\n+-  string(REGEX REPLACE \"-frtti\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n+-  set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fno-rtti\")\n++  if(NOT SNAPPY_ENABLE_RTTI)\n++    string(REGEX REPLACE \"-frtti\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n++    set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fno-rtti\")\n++  endif(SNAPPY_ENABLE_RTTI)\n+ endif(MSVC)\n+ \n+ # BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make\n+@@ -98,6 +102,8 @@ option(SNAPPY_REQUIRE_AVX2 \"Target processors with AVX2 support.\" OFF)\n+ \n+ option(SNAPPY_INSTALL \"Install Snappy's header and library\" ON)\n+ \n++option(SNAPPY_ENABLE_RTTI \"Enable RTTI for Snappy's library\" OFF)\n++\n+ include(TestBigEndian)\n+ test_big_endian(SNAPPY_IS_BIG_ENDIAN)\n+ \ndiff --git a/package/snappy/snappy.mk b/package/snappy/snappy.mk\nindex 57c688b673..cd61bbb078 100644\n--- a/package/snappy/snappy.mk\n+++ b/package/snappy/snappy.mk\n@@ -10,6 +10,9 @@ SNAPPY_LICENSE = BSD-3-Clause\n SNAPPY_LICENSE_FILES = COPYING\n SNAPPY_CPE_ID_VENDOR = google\n SNAPPY_INSTALL_STAGING = YES\n-SNAPPY_CONF_OPTS = -DSNAPPY_BUILD_BENCHMARKS=OFF -DSNAPPY_BUILD_TESTS=OFF\n+SNAPPY_CONF_OPTS = \\\n+\t-DSNAPPY_BUILD_BENCHMARKS=OFF \\\n+\t-DSNAPPY_BUILD_TESTS=OFF \\\n+\t-DSNAPPY_ENABLE_RTTI=ON\n \n $(eval $(cmake-package))\n","prefixes":["v4","13/21"]}