From patchwork Mon Dec 17 19:40:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 154035 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2846752ljp; Mon, 17 Dec 2018 11:41:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/WDccQZzVPvUnJGPz56AiGHh8ygfnsEhpbO39AwaIspujlSFHWEAUbFXR/OphG1+obAVTea X-Received: by 2002:a63:3d49:: with SMTP id k70mr12798442pga.191.1545075677922; Mon, 17 Dec 2018 11:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545075677; cv=none; d=google.com; s=arc-20160816; b=rgdUm9s66AorQRhlWg0M154XcmkUqtkaWsaqi559aCVyE49rZUesdNv0Uuz17zUb6C 4eAHDsHBSBCGd4UK305ukrpIVQYJQWLSW87GWa/sxQMZpBgRiTGSr5oPjMla9hT/3qnx OybTBTmJ7Me6pGQUmXVDeQQhxEaHxBZUWKlU6wN9u2MQ1JIibVdvy05gsJfyUKXLZIYf CBv0sT28xUUr1pncdjgWM2LVAE4eUNAQLk1SasCfXcrVRUdRgPoqzTz7suhtfBrU5Knp ub+sqqMvk8HvthLyAcmQ528pE8eCFfl5JJSgZgXa7bVvVZ6YYXrn0q10pXnXtgnuH1dU ixNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=iCQ+pkYsXVHIDr6CKDogikivIhoLIODISnoj41bSJmU=; b=Z8WRElO+YOalcQ/EF4c471paZs9OwMFwnDwgfobYn2WwsqKHEm2i/zXWQ92WRoBwC0 C5A+e79gV1aLIvrBgEaPFcHm204TmX/Y/BBlVjhUrst3vqXgz8dto4PYC+KO7ZFXPNEl /t1SZMoLY1JvLWNZTG5Ug0KCGlbKOuqxjSSueHz3O9y3680GMRPXPMLW9vLP+eTuoUG1 328n9mUqa14uscB8Zr+eLDmfG3ZUIolbF5uf1cJ9FCKFdZPUTkro7hqfhdCOYOVIpL/M dOequNGkDeEWT9US5yMKRFl9YrC0TUtTZSkvqcECtuuxNu7ryNq4dL2965OUvHaYQ7bN 154A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=QUrZzF0l; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ca6si4644679plb.141.2018.12.17.11.41.17; Mon, 17 Dec 2018 11:41:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=QUrZzF0l; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id AD5DC7BF89; Mon, 17 Dec 2018 19:41:12 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 6C5BE7BED2 for ; Mon, 17 Dec 2018 19:41:11 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id z9so6878085pfi.2 for ; Mon, 17 Dec 2018 11:41:12 -0800 (PST) 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=i10uomOMSOzLWl/nP+zR7ij/yV7RBpyD9CoASrCSYWs=; b=QUrZzF0lVcZU1DN7SB7Uml357u0x5Muv5eKtp6eYJzUO9CAE5P72ji37FJzfC2M5bj 1ONRidyniBG3J7NIDAlEYcSTHy2tmrMWCx72BR0WY2kxY+5fOf8RY0OSUm823qAg/4y+ nuQgwC9dhXGzqU7kT171vLTabNLKdoqr+TsyVq46MOQdkLc/3d//eZit1MOYCjV3+SP+ Pyv0UjWzmwh7o9PjUv3Yl2Y34ymslvSKKdWtuMzK/THVsF8/Canu0TQSaRNbdbuBHQdB ibBfkKgFPFgQ91yYGUTpy8vkONYh9J69bOCWlAzDuPSwnG+9V4Ub6tbVJMOOFGpix4Hp 4V+A== 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=i10uomOMSOzLWl/nP+zR7ij/yV7RBpyD9CoASrCSYWs=; b=QCsntAZ3wxEoIpopgY5AkUrQ7ojwGjkdwJhZVFXGTe/jf8hO6aYYHL3w/hlFuxkSij OSef8Qb20p5/UxiWqTVtHixAXEDn8XTQ8KEaHfn1MKX7S2hkyKtgi2b4j3m1D1Gl9pcq ZLmtWTdcl+KnpMWGZdcNj/5gi3yVMDyHCcvC393kcPAZ5MXr7+mxboExbxkrU4aJNub8 Y/2/0zPP2p1+F20+W4Qg8/ZATEVMP8BEYDPJ80XUqt1IgSufmiWlVBz8nSqwI3iwNewp La7l985p5MhN/u4RO2guOIpFUR59q4ycRDLWRbZeP413+NOIb+ejtT+3zQmNaeECG2Mx grmQ== X-Gm-Message-State: AA+aEWZPzqFz6ibjJ+9L1OEndaKHF09GyeW0BFVjgzXqPk+Yxj4k09hu Juz/s2LQ35+r0XYoD4iulJ9+w2rqW2A= X-Received: by 2002:a65:5bc4:: with SMTP id o4mr13419639pgr.426.1545075671839; Mon, 17 Dec 2018 11:41:11 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499:6245:cbff:fe64:591]) by smtp.gmail.com with ESMTPSA id g136sm19162157pfb.154.2018.12.17.11.41.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 11:41:11 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 17 Dec 2018 11:40:04 -0800 Message-Id: <20181217194004.44046-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH V2] libxcrypt: Upgrade to 4.4.1 release X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org License-Update: New files added to existing list Add -Wno-error=missing-attributes to compiler flags, this helps in compiling with gcc 9.0, eventually, the code should be fixed Add a patch to fix x32 build Signed-off-by: Khem Raj --- .../0001-Add-x32-specific-inline-asm.patch | 42 +++++++++++++++++++ ...{libxcrypt_4.1.1.bb => libxcrypt_4.4.1.bb} | 8 ++-- 2 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-core/libxcrypt/files/0001-Add-x32-specific-inline-asm.patch rename meta/recipes-core/libxcrypt/{libxcrypt_4.1.1.bb => libxcrypt_4.4.1.bb} (70%) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/libxcrypt/files/0001-Add-x32-specific-inline-asm.patch b/meta/recipes-core/libxcrypt/files/0001-Add-x32-specific-inline-asm.patch new file mode 100644 index 0000000000..9e31b03561 --- /dev/null +++ b/meta/recipes-core/libxcrypt/files/0001-Add-x32-specific-inline-asm.patch @@ -0,0 +1,42 @@ +From 7d01f2acf6fde6341a68a91f9b343841cc424af7 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 17 Dec 2018 11:33:35 -0800 +Subject: [PATCH] Add x32 specific inline asm + +Upstream-Status: Pending [https://github.com/besser82/libxcrypt/issues/74#issuecomment-447966455] + +Signed-off-by: Khem Raj +--- + alg-yescrypt-opt.c | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/alg-yescrypt-opt.c b/alg-yescrypt-opt.c +index 5dbd822..060caf4 100644 +--- a/alg-yescrypt-opt.c ++++ b/alg-yescrypt-opt.c +@@ -528,6 +528,11 @@ static volatile uint64_t Smask2var = Smask2; + #undef MAYBE_MEMORY_BARRIER + #define MAYBE_MEMORY_BARRIER \ + __asm__("" : : : "memory"); ++#ifdef __ILP32__ /* x32 */ ++#define REGISTER_PREFIX "e" ++#else ++#define REGISTER_PREFIX "r" ++#endif + #define PWXFORM_SIMD(X) { \ + __m128i H; \ + __asm__( \ +@@ -537,8 +542,8 @@ static volatile uint64_t Smask2var = Smask2; + "pmuludq %1, %0\n\t" \ + "movl %%eax, %%ecx\n\t" \ + "shrq $0x20, %%rax\n\t" \ +- "paddq (%3,%%rcx), %0\n\t" \ +- "pxor (%4,%%rax), %0\n\t" \ ++ "paddq (%3,%%" REGISTER_PREFIX "cx), %0\n\t" \ ++ "pxor (%4,%%" REGISTER_PREFIX "ax), %0\n\t" \ + : "+x" (X), "=x" (H) \ + : "d" (Smask2), "S" (S0), "D" (S1) \ + : "cc", "ax", "cx"); \ +-- +2.20.1 + diff --git a/meta/recipes-core/libxcrypt/libxcrypt_4.1.1.bb b/meta/recipes-core/libxcrypt/libxcrypt_4.4.1.bb similarity index 70% rename from meta/recipes-core/libxcrypt/libxcrypt_4.1.1.bb rename to meta/recipes-core/libxcrypt/libxcrypt_4.4.1.bb index 465aa96523..5e5d7c077c 100644 --- a/meta/recipes-core/libxcrypt/libxcrypt_4.1.1.bb +++ b/meta/recipes-core/libxcrypt/libxcrypt_4.4.1.bb @@ -3,16 +3,18 @@ DESCRIPTION = "Forked code from glibc libary to extract only crypto part." HOMEPAGE = "https://github.com/besser82/libxcrypt" SECTION = "libs" LICENSE = "LGPLv2.1" -LIC_FILES_CHKSUM ?= "file://LICENSING;md5=cb3ca4cabd2447a37bf186fad6f79852 \ +LIC_FILES_CHKSUM ?= "file://LICENSING;md5=e28ba6195a4e39904919b78a92bcf27e \ file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ " inherit autotools pkgconfig -SRCREV ?= "21b455b68baad279e6a3936faced16c5e5634376" +# v4.4.1 +SRCREV ?= "b8714d4e9e37cf0d511917bd5eea0e51e4a397d5" SRCBRANCH ?= "develop" SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH} \ + file://0001-Add-x32-specific-inline-asm.patch \ " PROVIDES = "virtual/crypt" @@ -22,6 +24,6 @@ FILES_${PN} = "${libdir}/libcrypt*.so.* ${libdir}/libcrypt-*.so ${libdir}/libowc S = "${WORKDIR}/git" BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE} -std=gnu99" -TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}" +TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error=missing-attributes" BBCLASSEXTEND = "nativesdk"