From patchwork Thu Sep 20 03:52:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 147084 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1473502ljw; Wed, 19 Sep 2018 20:53:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ0qOL51fnDVMKuyVags2HXbveiDQm7mobUqBqVucIMog+V/pdZgHJdjhTD92yix3LuWSaV X-Received: by 2002:a17:902:1ab:: with SMTP id b40-v6mr38181907plb.55.1537415609061; Wed, 19 Sep 2018 20:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537415609; cv=none; d=google.com; s=arc-20160816; b=g965igWR3nJh5DD0k1EC2gDgG0oMDLKUJvPMlhBNHsBwtzFdS2tDqWThAV/jSQ8zWl qcSdk298cwcx/D6N0JcV5OJyqQd4FhcL4L83SKpGDOBDUjvvUXY+XrhcbAsXnYO4ulp6 Eycl1Ze1DZRolvoRV8f+479HtUxRRDj1TPtZKRr4oSDtjQntZ8K6+fzlbWaytk52+nXH Cj6EDfhykFC7c8kQWWLYUzhsbcxzF+7sHKZbq/kFIv0XnO6PO+eWj2cHVmnFF61YS1eO eDxp4N7Q3NAp32sLo4/e+g5nwQPMrveqMYd7qWcQ2Q45HtX1BxUpKyH2M82FBaza9bo/ ElpQ== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=OTKtZQvJKfE70Ozfqax/7uT3AojVzLuq8i3ULOyL7Qg=; b=0XEKLfSCqhECaZ2+gmjylfhZywckDJ7SVPsUOaN9PHC1I/wTdCU1uwKE+jQg7EQAAw aIa7BSc5FS9WX+2hlmNh0j5TsschiicLtbl3O1WRcfmicfRYPBovJ6AdCKOmLFm7wY79 KSJcfJAZT9Je6E7SCDLonPSS8vFnpw6gZFDiesEGlyWH0zQxIKkd00Jl2VwMolFBmInW EbJ7Ke5N5Ohgppjpce52mWA2B8zooaLVR2Lv/lnWOEvI+7W3akih/ZZuv/ig/8H69pwt mVli3+vUC8p7v9ed8DboShNSy7oSZg3djtiXytTSfpm/pYkspiLwNVnBeLmeKvKEPUvb 4+KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=HH9F3IYB; 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 f7-v6si23348373pfc.174.2018.09.19.20.53.28; Wed, 19 Sep 2018 20:53:29 -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=HH9F3IYB; 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 5766A7983F; Thu, 20 Sep 2018 03:53:26 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mail.openembedded.org (Postfix) with ESMTP id C78EC60800 for ; Thu, 20 Sep 2018 03:52:54 +0000 (UTC) Received: by mail-pg1-f178.google.com with SMTP id y18-v6so440209pge.0 for ; Wed, 19 Sep 2018 20:52:56 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=EngV8foCPmDSwy7ll9lbypUUMDS3hOjGd37gh62is8A=; b=HH9F3IYBv0iV/yzGmDBSGEKouf7j/BlFJLbSxt7+joRdWf+SQa+2bcYrKQY2uuqOEq utVT99kotyW6WjpLsIHWUF0M/yXeAPzK5xtBlyN6gaTZncQghSB8hDOwnQO7trqFdmPV HkB97BBaefdn9Rv+GiaHFloCD8TJd5mXMKshApkoM7p2TM6tdv/hK4slp9d7kLHmuKhO s6ru+jKxxC95mMKo6Nece3NMIL7FWucYMMAQD+wPRuiZ+bZa/a8H1OwGImVUicmPD/e6 QU4ogdv9K/JEShROw7mL7vmm5IzuYsncvek9UCzywV/nKQT5k51L0h4THf6g8qns+4I6 OsEw== 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=EngV8foCPmDSwy7ll9lbypUUMDS3hOjGd37gh62is8A=; b=eF3Mg3BRvcf1WlJHzJotHjjcwEGxtrp/7OiVrUP1cbjQP3C46TTds4K6A0KVEtdrNO GdC21zr0LizMLoo0WDpg/NYGhkqoclMO4c9MpjxwBxE4rrT4+rSbH5agl54094anTg8Y GCo84Md/2Suj/0/yQrb4/ouucPmmTYFEJo7leAFCWJr5pZ4k/yTgHxBBBwVBauqj6faw l3hTfzebCwLrPew4uomq+VAUx/S+zqi5hSQ5TLzLZMTivt1jX8aTWFUSNGP8TDXOpNug J86bC8kt892NnTphRwfjRzoD2Mjn1UJNqw9jWI1GhfUxECmTOZaFr6dXiDeSm8C1yCak YGZg== X-Gm-Message-State: APzg51CEUoHff1A2i7y/Ob3I78ZO4slnwg5QfY1Vajs9RiDH8mx7qn2+ RxgokqQXZVqeItWavnDPIPnof9nYrjI= X-Received: by 2002:aa7:831b:: with SMTP id t27-v6mr39063782pfm.81.1537415575221; Wed, 19 Sep 2018 20:52:55 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::b1b1]) by smtp.gmail.com with ESMTPSA id a20-v6sm52640309pfc.14.2018.09.19.20.52.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 20:52:54 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 19 Sep 2018 20:52:42 -0700 Message-Id: <20180920035242.983-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180920035242.983-1-raj.khem@gmail.com> References: <20180920035242.983-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH V3 2/2] 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 Package the glibc symlinks into new package musl-glibc-compat Signed-off-by: Khem Raj --- V3: Inherit linuxloader for glibc ldso meta/recipes-core/musl/musl_git.bb | 16 ++++++++++++++++ 1 file changed, 16 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..f0556533b5 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb @@ -2,6 +2,7 @@ # Released under the MIT license (see COPYING.MIT for the terms) require musl.inc +inherit linuxloader SRCREV = "0fa1e638e87cf257e9f96b4019b2076afd674a19" @@ -26,6 +27,7 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \ bsd-headers \ libssp-nonshared \ " +GLIBC_LDSO = "${@get_glibc_loader(d)}" export CROSS_COMPILE="${TARGET_PREFIX}" @@ -62,12 +64,26 @@ 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}${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 } +PACKAGES =+ "${PN}-glibc-compat" + +FILES_${PN}-glibc-compat += "\ + ${libdir}/libc.so.6 ${libdir}/libcrypt.so.1 \ + ${libdir}/libdl.so.2 ${libdir}/libm.so.6 \ + ${libdir}/libpthread.so.0 ${libdir}/libresolv.so.2 \ + ${libdir}/librt.so.1 ${libdir}/libutil.so.1 \ + ${GLIBC_LDSO} \ + " + RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev" RPROVIDES_${PN}-dev += "libc-dev virtual-libc-dev" RPROVIDES_${PN} += "ldd libsegfault rtld(GNU_HASH)"