From patchwork Thu Jun 10 18:58:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1490625 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=b/akpCYy; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1CvK3Rrbz9sRN for ; Fri, 11 Jun 2021 04:59:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id AF04E60A90; Thu, 10 Jun 2021 18:59:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DvXMmhJe6JHE; Thu, 10 Jun 2021 18:59:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id DF66B60A81; Thu, 10 Jun 2021 18:59:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 395531BF25F for ; Thu, 10 Jun 2021 18:59:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2894D60A81 for ; Thu, 10 Jun 2021 18:59:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ebxGi5DUAmIh for ; Thu, 10 Jun 2021 18:59:16 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6565360866 for ; Thu, 10 Jun 2021 18:59:16 +0000 (UTC) Received: by mail-wm1-x32d.google.com with SMTP id t4-20020a1c77040000b029019d22d84ebdso7195903wmi.3 for ; Thu, 10 Jun 2021 11:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YiqNW2O/jGFudE+24MbTSoiGhVwclvEK9pngV3CY0+g=; b=b/akpCYyN4w/8axvAPKE7gKcsrzNXqAFYTnFDocftENVDOY9NDOPaB2m+2nfBkAItH BHAp94XzXj9ZrSIXOoNGD5CMOh4ue1vw95WagflhFamdL38op7fuBJQv743U35t9m9RF wqHJUM89NmbFQXzquoCJLieTJhUvVFAcu0IUMWofXi0A2mgQKUTvWQgPtcSfGBxFUadq e2vQO1+4NI1dgkzi4xgkdSU64+iGyj3Ak3ah1FGnwXm9EVaxEbF6tc5yNiosSPQQTK5D u9bUg7/wqkK6XpYvor7sESCXY365LoCua2ROBlEPy6Prs28iLT/lH4opB+5xtCHgDiMd /Ddg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YiqNW2O/jGFudE+24MbTSoiGhVwclvEK9pngV3CY0+g=; b=sKHHphnolRS+PsJedfrVwjo9m+sjjadwcxWSE5+yyBo7J21uiJwFDIeJm/fw4MfN+3 i9naUU+/qjwbCfTSTHsq4+kCdmZERau8QFoBC25bUSvSpBfbw2TsuUDeeFYaL9kbOqAY vCbGU2buqYJhaKtvbH4NX72XC1aUQUzayzGWy0MlcZwvSysooUcioN73Pgf9yFHDwI+U 0kZ4viZcoZjHsT37nTr0ny6GjGF21cm0/MArV8Ojd7Fk2wjyDtRh8oqkhnl4/T/desGv rpShxzITC6Svn3LfkUlOrnBjx60BaFooc6I/Tq0rE2KyCNsHuoMNG7/T/DLFG1/0a5Me eEUA== X-Gm-Message-State: AOAM530hf0Ck92Mkr+ceh9WWfZcCDijMIaxDXIQEz+xjGURa/sURx+fh AIILz+u0vdsakdGtXHz7gZlLExftMqxsOQ== X-Google-Smtp-Source: ABdhPJzc3SvbrrkcoEtfvJAjUQ3FTKJ0YnhxUpQUQUwmxex4riebMZtev3+8B1llHglYZIwqUh4qRQ== X-Received: by 2002:a1c:a550:: with SMTP id o77mr278773wme.57.1623351554377; Thu, 10 Jun 2021 11:59:14 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1383-171.w86-229.abo.wanadoo.fr. [86.229.230.171]) by smtp.gmail.com with ESMTPSA id p16sm4570798wrs.52.2021.06.10.11.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 11:59:13 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Thu, 10 Jun 2021 20:58:46 +0200 Message-Id: <20210610185846.37863-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/memcached: disable tests X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Disable tests to avoid the following build failure with -DNDEBUG which is raised since commit 5a8c50fe05afacc3cbe8e7347e238da9f242fab0 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/microblazeel-buildroot-linux-uclibc/9.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld: testapp.o: in function `cache_redzone_test': (.text+0x2f48): undefined reference to `cache_error' Fixes: - http://autobuild.buildroot.org/results/c4ddd86bd4b74ba4e4857ee38e3a95bb9b019093 Signed-off-by: Fabrice Fontaine --- .../0001-configure.ac-add-disable-tests.patch | 57 +++++++++++++++++++ package/memcached/memcached.mk | 3 + 2 files changed, 60 insertions(+) create mode 100644 package/memcached/0001-configure.ac-add-disable-tests.patch diff --git a/package/memcached/0001-configure.ac-add-disable-tests.patch b/package/memcached/0001-configure.ac-add-disable-tests.patch new file mode 100644 index 0000000000..bbe73b7292 --- /dev/null +++ b/package/memcached/0001-configure.ac-add-disable-tests.patch @@ -0,0 +1,57 @@ +From c57efbce382bde6901859b79b222abfc9c3e1a87 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Thu, 10 Jun 2021 20:38:07 +0200 +Subject: [PATCH] configure.ac: add --disable-tests + +Add --disable-tests to avoid the following build failure with -DNDEBUG: + +/home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/microblazeel-buildroot-linux-uclibc/9.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld: testapp.o: in function `cache_redzone_test': +(.text+0x2f48): undefined reference to `cache_error' + +Fixes: + - http://autobuild.buildroot.org/results/c4ddd86bd4b74ba4e4857ee38e3a95bb9b019093 + +Signed-off-by: Fabrice Fontaine +--- + Makefile.am | 2 ++ + configure.ac | 4 ++++ + 2 files changed, 6 insertions(+) + +diff --git a/Makefile.am b/Makefile.am +index 8ea4841..1d730b6 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,6 +1,8 @@ + bin_PROGRAMS = memcached + pkginclude_HEADERS = protocol_binary.h ++if ENABLE_TESTS + noinst_PROGRAMS = memcached-debug sizes testapp timedrun ++endif + + BUILT_SOURCES= + +diff --git a/configure.ac b/configure.ac +index f497101..441d55b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -115,6 +115,9 @@ AC_ARG_ENABLE(static, + AC_ARG_ENABLE(unix_socket, + [AS_HELP_STRING([--disable-unix-socket], [Disable unix domain socket])]) + ++AC_ARG_ENABLE(tests, ++ [AS_HELP_STRING([--disable-tests], [Disable tests])],,enable_tests=yes) ++ + dnl ********************************************************************** + dnl DETECT_SASL_CB_GETCONF + dnl +@@ -231,6 +234,7 @@ AM_CONDITIONAL([ENABLE_TLS],[test "$enable_tls" = "yes"]) + AM_CONDITIONAL([ENABLE_ASAN],[test "$enable_asan" = "yes"]) + AM_CONDITIONAL([ENABLE_STATIC],[test "$enable_static" = "yes"]) + AM_CONDITIONAL([DISABLE_UNIX_SOCKET],[test "$enable_unix_socket" = "no"]) ++AM_CONDITIONAL([ENABLE_TESTS],[test "$enable_tests" = "yes"]) + + + AC_SUBST(DTRACE) +-- +2.30.2 + diff --git a/package/memcached/memcached.mk b/package/memcached/memcached.mk index 1c695411cd..2c5a77b906 100644 --- a/package/memcached/memcached.mk +++ b/package/memcached/memcached.mk @@ -12,6 +12,9 @@ MEMCACHED_CONF_OPTS = --disable-coverage MEMCACHED_LICENSE = BSD-3-Clause MEMCACHED_LICENSE_FILES = COPYING MEMCACHED_CPE_ID_VENDOR = memcached +# We're patching configure.ac +MEMCACHED_AUTORECONF = YES +MEMCACHED_CONF_OPTS = --disable-tests ifeq ($(BR2_ENDIAN),"BIG") MEMCACHED_CONF_ENV += ac_cv_c_endian=big