From patchwork Sun Sep 16 15:53:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146795 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2852352ljw; Sun, 16 Sep 2018 08:53:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZdFYM7vVOtlZa5savbiFx+94LaA1MuwjvPyNCrDXMvIZwilhA8W7hDdth/GaqUOFxwB0wC X-Received: by 2002:a62:a6cc:: with SMTP id r73-v6mr22132431pfl.60.1537113212305; Sun, 16 Sep 2018 08:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537113212; cv=none; d=google.com; s=arc-20160816; b=0crxxKg1BNzDvbKpEWODF9TULLtCvelpsmVIT9CZdOUOr/GXb//OA1NxWbfntlkH6C hHx2mD5coRQDEiGIkEXmh0X0NhLFo1Cl/txfupposfltZ7WZU5d9waWi6FSkzBeZPSxJ J5+S9F+gM0SWSH8LkC59isBy1WkhossyEgYed9QTeAVgnmljj8PEtoCNIPeERdUFbewk qCEn7k9+TSnUPdbRsBd9qBX03tz2TCgVtZA6iZs0w2WXyaGvnwmq275OgcAMqTExrMaY QrOIxunQ6YdFDBR3RhA/gSFKCyRFenpBfChU5blsF+UahuTasTRUchxbQC03EbChPXJz q4RQ== 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=o/GfwbiuADsrX40tLJ6dVMF+rWbyklExbK9OpUBWKT8=; b=zANPXpRw7tvBBuVFFD0cXAoTnKafz+lHbJ4IwGRPky8B895zqjryyHFIL6kxFd+g2j 2JZdNdG9DAda+xEuQ/c7JkD0JZ5eisTqUlrbhE0g2PIhMDAC+QFufi9KHj910yp2hX2l 8Rsf6IyWq/fkaIlEGiXYDdB0HxT0u6Ocj623phaEpn0FjdmZZEY84qtcZ6QBHd2vC6WE abNcGMKdoiJ0X1MXvwnEeJJ1uaw1fml6pDwvtlIofptf823LvnYZOo6Z0NA5bbW+uKs1 FjY3zwyLO49+gaS/Bp612YU7Ihn2pVijbvwgAqe6Wqr/RI1qq7aHX35TAps1iGqsVt+d oGgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=aXf8vMSu; 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 cd2-v6si15377767plb.47.2018.09.16.08.53.31; Sun, 16 Sep 2018 08:53:32 -0700 (PDT) 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=aXf8vMSu; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3254A74FB9; Sun, 16 Sep 2018 15:53:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mail.openembedded.org (Postfix) with ESMTP id 11A4674FB9 for ; Sun, 16 Sep 2018 15:53:25 +0000 (UTC) Received: by mail-pf1-f182.google.com with SMTP id b11-v6so6417455pfo.3 for ; Sun, 16 Sep 2018 08:53:27 -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=eCFfWS0Wr0flIeyEDcte3pbY1BPmOuPasJ2CRP2FEIM=; b=aXf8vMSu+QecXrfam8STvihe/OMWFg/Bqf2nCK6S8OdQRjOMnZJxw9dUzgLkfz02tS tml35HxgWIHE3PkLBS3H3zA1PUJ7Ryjny9ptYaIzgeoWJFAGJgax/PMa2FRner4fzo2J yhxFPm0TlOkmrHPJFZsO7Zc01wK9LCs1jvb9dvRQKH4/ukBlOEwkAGzS6Yz8ziNu1yfq Z41Pj1q2NUNdQHKcZnz0kH7mTFu1QrtT9qivfyp3bid+vm0tayqdZAvSwQPbAjjRdh53 QcsuWdAT0ZPkUnr4uIhgWjE9s8sbie+4r+vvleXukmS2+9amiI3QFsO4Gv6BzPoesJoL CvfQ== 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=eCFfWS0Wr0flIeyEDcte3pbY1BPmOuPasJ2CRP2FEIM=; b=IZ7yQDPwYFkuQX9GyKNqvVfYBcpuLrMVIgXJVV7ikOMX2hNq/jNhw7l2lECkCtj+NJ JKtMRqxV4p5ME0fEWssgArFgc7dHjv8mzf8Mx4UzT1NdOsZXMsm+sB253skRLkohXs8R I4KHExeMh37YExb5DR/mPG/b2Ec6vG7d5wsgvrSZl1fmswl9dPrMBz8sNQVgseCyy+7E fzzWH8Io0I0sRjGXBfnyZea2uGP/6aIttf3/hjsQBm/l6Ed8jZXddd8yLSgChLzW1HPA soHMkj1qDMSa+NToyJ+ueShQQ3fdOGLECecKXdji+Qm1aFHpK9qz4T9svSdRTqUdwYuo 1hlg== X-Gm-Message-State: APzg51CU3Nz9OlWa8jLQG1i69iSNQji7f9yV2L58UwI5DrS5t5xsX0sJ mpMfTdUWG0WrPKKSMCN5k84mprhK X-Received: by 2002:a62:205d:: with SMTP id g90-v6mr22449727pfg.253.1537113206731; Sun, 16 Sep 2018 08:53:26 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::b1b1]) by smtp.gmail.com with ESMTPSA id k26-v6sm22048115pfb.167.2018.09.16.08.53.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Sep 2018 08:53:26 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 16 Sep 2018 08:53:13 -0700 Message-Id: <20180916155313.18535-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] musl: Add aliases for glibc provided libraries 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 This is a step towards running pebuilt applications for glibc on musl There are many realworld applications which are not always built from source, especially provided by third party Signee-off-by: Khem Raj --- meta/recipes-core/musl/musl_git.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.19.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index be31718e3a..a830c36eeb 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb @@ -26,6 +26,14 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \ bsd-headers \ libssp-nonshared \ " +GLIBC_LDSO ?= "ld.so.1" +GLIBC_LDSO_arm = "${@ bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'ld-linux-armhf.so.3', 'ld-linux.so.3', d)}" +GLIBC_LDSO_aarch64 = "ld-linux-aarch64.so.1" +GLIBC_LDSO_x86 = "ld-linux.so.2" +GLIBC_LDSO_x86_64 = "ld-linux-x86-64.so.2" +GLIBC_LDSO_x32 = "ld-linux-x32.so.2" +GLIBC_LDSO_powerpc64 = "ld64.so.1" +GLIBC_LDSO_mips64 = "ld64.so.1" export CROSS_COMPILE="${TARGET_PREFIX}" @@ -62,10 +70,14 @@ do_install() { install -d ${D}${bindir} rm -f ${D}${bindir}/ldd lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd + lnr ${D}${libdir}/libc.so ${D}${base_libdir}/${GLIBC_LDSO} for l in crypt dl m pthread resolv rt util xnet do ln -sf libc.so ${D}${libdir}/lib$l.so done + for i in libc.so.6 libcrypt.so.1 libdl.so.2 libm.so.6 libpthread.so.0 libresolv.so.2 librt.so.1 libutil.so.1; do + ln -sf libc.so ${D}${libdir}/$i + done } RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev"