From patchwork Tue Feb 4 10:07:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Vanbever X-Patchwork-Id: 1233232 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=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=essensium.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=essensium.com header.i=@essensium.com header.a=rsa-sha256 header.s=google header.b=i45kWBw4; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48BgPN5GHNzB3wK for ; Tue, 4 Feb 2020 21:08:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 986162052E; Tue, 4 Feb 2020 10:08:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J8j3qCdKI6Ko; Tue, 4 Feb 2020 10:08:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 86CEC20522; Tue, 4 Feb 2020 10:08:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 95AC41BF841 for ; Tue, 4 Feb 2020 10:07:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 91EBC8160B for ; Tue, 4 Feb 2020 10:07:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qQJSS5mfB+VI for ; Tue, 4 Feb 2020 10:07:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id CB84A815EE for ; Tue, 4 Feb 2020 10:07:57 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id z9so9963229wrs.10 for ; Tue, 04 Feb 2020 02:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XNRI6zlBe17Y5G/Lyc1+YaOzyH1Boc3TJgM2h5FTYEE=; b=i45kWBw4AlLAlORWoCeWLLwf2RYqEnBbVOZSzyG2CVkdWsjOsstzxWicHnUhkbnfWB fmKVq32ryApsePhhRBfo0CdTh9AxlhxMNk6xSRO7SlF99PLoKU3788iKbLOObKH6k4zn JM9+/y+ghdpzEUazCcVCQElCSzlu+kF7h1Zh7C9fVFS0Zi9OW7eoLXhYBm8lePWUXvV2 Uhu/Rrp5heWXMkYgarfrI5KqdscgxuWFskZYRuALHrR8q63c+AMozf7KDcxmaj09dAe1 8gghOlxtN9LtAx048O7CL9NX2vvU7b23iL24sYmGrd84LqyE/DvnryKYVGcwDwPUCtzJ 3JzA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=XNRI6zlBe17Y5G/Lyc1+YaOzyH1Boc3TJgM2h5FTYEE=; b=UQSDS2xkVSCQuEqW4CWD/p9/Dk8uXvJhp95DKkiLrZdA8b4VXFWBX/rBOJE+cgdqzH Up4LLqHURoAXo/ijEi2OTAXihPR6cv1Z9ktkPXsP7cR+lmd10vLVa9HjWTCk7jZsKabT JYqsf66x6AAg6LJd9sJmuurqlOVs0/Wl1L7PPA7SZtiYOFS5O/PZS/KCjnxWhCSPSSez QJ0c7cZNiYDb9iyXNC2aAUzuyOPtbnlkLdxm65wFTLpgpK6gqJfP6N1uibFmYeH7iUPW JUZUC1TnPWw8rDF6tCsTuoRCGTXPZqGa1MEcdoYjJWlUaOsNj5ctU8l7dAgMqXoMf2b/ cHPw== X-Gm-Message-State: APjAAAVbWhRbZRw2T9K1CkCu0FNEdEQBTanNcFX7HC7awJBOaOeFK+DD VocKmk5DJ9ZklNH1xeCz2w04nFsqL/SM4g== X-Google-Smtp-Source: APXvYqyh0VFDsuPx7M4qXc1MaBCkhBdcfqQGKTF+Eb51H9fF3EIGR3Aw7SjT0H3DMkMRgutTf9iCMg== X-Received: by 2002:a5d:53c1:: with SMTP id a1mr20734694wrw.373.1580810875960; Tue, 04 Feb 2020 02:07:55 -0800 (PST) Received: from wintermute.lan ([2a02:a03f:5073:bb00:d06f:8d0c:50d6:c2de]) by smtp.gmail.com with ESMTPSA id y1sm16893648wrq.16.2020.02.04.02.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 02:07:55 -0800 (PST) From: Frank Vanbever To: buildroot@buildroot.org Date: Tue, 4 Feb 2020 11:07:31 +0100 Message-Id: <20200204100733.22106-1-frank.vanbever@essensium.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200129172618.16966-1-frank.vanbever@essensium.com> References: <20200129172618.16966-1-frank.vanbever@essensium.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/3] package/erlang: bump to version 22.2 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: Frank Vanbever , Thomas Petazzoni , Will Newton , Johan Oudinet Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The issue fixed by 0003-Link-with-LDLIBS-instead-of-LIBS-for-DED.patch (ERL-529) has been fixed since OTP20.3 (a5cbcbdb85) and is no longer required. OTP provides wrapper scripts (otp_build and configure) which perform tasks previously handled directly by autotools i.e. autoreconf. Signed-off-by: Frank Vanbever --- Changes v1 -> v2: - nothing My motivation for this version bump is that I want to bump RabbitMQ to the latest version (3.8.2) which depends on Erlang 21.x or later. There are 2 packages which depend on Erlang that I tested. The test consisted of booting and ensuring the daemon is running. - ejabberd: daemon starts without issue - RabbitMQ: I encountered an issue where the binaries are installed in rabbitmq-0.0.0 but the symlink in /usr/sbin expects them to be in rabbitmq-3.6.6. After manually fixing the symlink the daemon started without issue. The symlink issue is unrelated to Erlang and does not show up with 3.8.2 so I did not investigate this further. Signed-off-by: Frank Vanbever --- ...-with-LDLIBS-instead-of-LIBS-for-DED.patch | 42 ------------------- package/erlang/erlang.hash | 4 +- package/erlang/erlang.mk | 19 ++++++--- 3 files changed, 16 insertions(+), 49 deletions(-) delete mode 100644 package/erlang/0003-Link-with-LDLIBS-instead-of-LIBS-for-DED.patch diff --git a/package/erlang/0003-Link-with-LDLIBS-instead-of-LIBS-for-DED.patch b/package/erlang/0003-Link-with-LDLIBS-instead-of-LIBS-for-DED.patch deleted file mode 100644 index ad0bb6b453..0000000000 --- a/package/erlang/0003-Link-with-LDLIBS-instead-of-LIBS-for-DED.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 011752ec7b31e3dde376270fc65c7ee70644f6e7 Mon Sep 17 00:00:00 2001 -From: Johan Oudinet -Date: Wed, 6 Dec 2017 15:01:17 +0100 -Subject: [PATCH] Link with LDLIBS instead of LIBS for DED - -Fix ERL-529 by avoiding to link with libz for no reason. - -Signed-off-by: Johan Oudinet ---- - lib/asn1/c_src/Makefile | 2 +- - lib/runtime_tools/c_src/Makefile.in | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/lib/asn1/c_src/Makefile b/lib/asn1/c_src/Makefile -index 1f714df357..f7c6b8b9bc 100644 ---- a/lib/asn1/c_src/Makefile -+++ b/lib/asn1/c_src/Makefile -@@ -126,7 +126,7 @@ $(NIF_LIB_FILE): $(NIF_STATIC_OBJ_FILES) - $(V_RANLIB) $@ - - $(NIF_SHARED_OBJ_FILE): $(NIF_OBJ_FILES) -- $(V_LD) $(LDFLAGS) -o $(NIF_SHARED_OBJ_FILE) $(NIF_OBJ_FILES) $(CLIB_FLAGS) $(LIBS) -+ $(V_LD) $(LDFLAGS) -o $(NIF_SHARED_OBJ_FILE) $(NIF_OBJ_FILES) $(CLIB_FLAGS) $(LDLIBS) - - # ---------------------------------------------------- - # Release Target -diff --git a/lib/runtime_tools/c_src/Makefile.in b/lib/runtime_tools/c_src/Makefile.in -index 4530a83aee..4e13e0d789 100644 ---- a/lib/runtime_tools/c_src/Makefile.in -+++ b/lib/runtime_tools/c_src/Makefile.in -@@ -95,7 +95,7 @@ $(OBJDIR)/%$(TYPEMARKER).o: %.c dyntrace_lttng.h - $(V_CC) -c -o $@ $(ALL_CFLAGS) $< - - $(LIBDIR)/%$(TYPEMARKER).@DED_EXT@: $(OBJDIR)/%$(TYPEMARKER).o -- $(V_LD) $(LDFLAGS) -o $@ $^ $(LIBS) -+ $(V_LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) - - clean: - rm -f $(TRACE_LIBS) --- -2.14.1 - diff --git a/package/erlang/erlang.hash b/package/erlang/erlang.hash index 616c85e9ae..3c2f039496 100644 --- a/package/erlang/erlang.hash +++ b/package/erlang/erlang.hash @@ -1,4 +1,4 @@ # md5 from http://www.erlang.org/download/MD5, sha256 locally computed -md5 350988f024f88e9839c3715b35e7e27a otp_src_21.0.tar.gz -sha256 c7d247c0cad2d2e718eaca2e2dff051136a1347a92097abf19ebf65ea2870131 otp_src_21.0.tar.gz +md5 b2b48dad6e69c1e882843edbf2abcfd3 otp_src_22.2.tar.gz +sha256 89c2480cdac566065577c82704a48e10f89cf2e6ca5ab99e1cf80027784c678f otp_src_22.2.tar.gz sha256 809fa1ed21450f59827d1e9aec720bbc4b687434fa22283c6cb5dd82a47ab9c0 LICENSE.txt diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk index ca0aa0b770..fb26d6589f 100644 --- a/package/erlang/erlang.mk +++ b/package/erlang/erlang.mk @@ -5,7 +5,7 @@ ################################################################################ # See note below when updating Erlang -ERLANG_VERSION = 21.0 +ERLANG_VERSION = 22.2 ERLANG_SITE = http://www.erlang.org/download ERLANG_SOURCE = otp_src_$(ERLANG_VERSION).tar.gz ERLANG_DEPENDENCIES = host-erlang @@ -15,11 +15,20 @@ ERLANG_LICENSE_FILES = LICENSE.txt ERLANG_INSTALL_STAGING = YES # Patched erts/aclocal.m4 -ERLANG_AUTORECONF = YES +define ERLANG_RUN_AUTOCONF + cd $(@D) && PATH=$(BR_PATH) ./otp_build autoconf +endef +HOST_ERLANG_DEPENDENCIES = host-autoconf +ERLANG_PRE_CONFIGURE_HOOKS += ERLANG_RUN_AUTOCONF + +define ERLANG_RUN_SAVE_BOOTSTRAP + cd $(@D) && PATH=$(BR_PATH) ./otp_build save_bootstrap +endef +ERLANG_POST_CONFIGURE_HOOKS += ERLANG_RUN_SAVE_BOOTSTRAP # Whenever updating Erlang, this value should be updated as well, to the # value of EI_VSN in the file lib/erl_interface/vsn.mk -ERLANG_EI_VSN = 3.10.3 +ERLANG_EI_VSN = 3.13.1 # The configure checks for these functions fail incorrectly ERLANG_CONF_ENV = ac_cv_func_isnan=yes ac_cv_func_isinf=yes @@ -38,7 +47,7 @@ HOST_ERLANG_CONF_ENV += ERL_TOP=$(@D) # erlang uses openssl for all things crypto. Since the host tools (such as # rebar) uses crypto, we need to build host-erlang with support for openssl. -HOST_ERLANG_DEPENDENCIES = host-openssl +HOST_ERLANG_DEPENDENCIES += host-openssl HOST_ERLANG_CONF_OPTS = --without-javac --with-ssl=$(HOST_DIR) HOST_ERLANG_CONF_OPTS += --without-termcap @@ -65,7 +74,7 @@ ERLANG_CONF_OPTS += --without-odbc endif # Always use Buildroot's zlib -ERLANG_CONF_OPTS += --enable-shared-zlib +ERLANG_CONF_OPTS += --disable-builtin-zlib ERLANG_DEPENDENCIES += zlib # Remove source, example, gs and wx files from staging and target.