From patchwork Tue Jul 30 21:20:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 170118 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp3117721ile; Tue, 30 Jul 2019 14:21:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqywF2+lWtH0v1ihYF0cUxXYXu0sWkiB3FlI+X0Czc1MVPpG/f8BmNN83S20DHavGhG8RRZO X-Received: by 2002:a17:90a:1b0c:: with SMTP id q12mr119842248pjq.76.1564521660510; Tue, 30 Jul 2019 14:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564521660; cv=none; d=google.com; s=arc-20160816; b=jqyclGqnqFD3qtWdQGY0QYPPSsZJZzH7LKm5Sji67eM3gX+x00plI/yjzXoPDGdG9H oNiuBS4aK/D558V36MzqA3aaxbV49wZOvEio27PUggXdprlEd1D2frAph04IrwHUfXr2 tSJ+kGrrsjW0OOb3frFcxsZI2g7t/7ROid8w/BLxBG2IMDmzV5ceaKIJ78z9XxvvyNat uFRwLJ/Jm3L5rwzMG/G8Ex60TQJT22aXoMiqbdiNyOJIRLp/mounhhev2DQiL1CmNuXo +CZUBYfG3AKJv7IYZ++ra+TXRq3qexzQvbt2T4KU7EVdFZyx4CL7VLQnI6iyI2jaVNkc UxEA== 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=TsKvP1rx+sLT81AsOvLt/YNkIPZi9nRu4qAduJLMEDU=; b=FcGgEsEKA6oXO7/6gqjcqXNJ236O+MrQ8ogTRfpSb5LJfI5ylho1hoMieeIftfJ4vs RfaRGlGAcN+LAAGPBanEilkQukthNNb9+goDAAXJHsjCKygnAx/vRw7yv57sKO4sgZbS lO3GycKIehR2QNNGIDXxNLE5K6Wi1L0NHi1cexdWKRJPmOhc8kfk2QcJX/YghobcEu9n /v3DieqWyOluFUynCzPeayaPK0yawTbHodIaLi5l/iwOHP/pXree67DHPuzvEKwfE0yL HLXUub7/PYCqQWoCZeJ4Gi4qNobg42X0hqVbViY8064XlLOafmBbdpZBQvdkZxBbKl+x tGeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=yvDi8Y80; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g13si32984429pgo.274.2019.07.30.14.21.00; Tue, 30 Jul 2019 14:21:00 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=yvDi8Y80; 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=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DBBC17F35F; Tue, 30 Jul 2019 21:20:57 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mail.openembedded.org (Postfix) with ESMTP id 7113F7F266 for ; Tue, 30 Jul 2019 21:20:16 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id l2so57868171wmg.0 for ; Tue, 30 Jul 2019 14:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ndutl2nD/0hwnXXAOzSqNzejBiMCMVkn4qlFGBscqBw=; b=yvDi8Y80vsdgF8rvmZ6EwOCJ7IRMhNubPznJiyH2bu6uWCBIE4/2ps1r4mWMRdJ9Nt ZGXfJa/uNSryfExV0rlTbPdYKWEPYSlsLKctRgCe9fdv1QmQqRiCo7ztlhVeQFOmX/N3 FCMIMn2BgHNTv78TY2kZksQC4AsX6H1IJqHvcnhiG7SB40yIfVF7xxMFB2dNVqnTDwsf +lwCJUXG+qYx+oxU6xap/t7lKlMRyMa5pvTIFw4s+S2+bJTjYK6rPOD9hzr592k0uK6A vNYzlwpxoW+vj2TiUhs8lWBK8cOI3KZjrcwZCk13tTuq/vZyAkXwDV/qamouyFTlZ1D4 RwFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ndutl2nD/0hwnXXAOzSqNzejBiMCMVkn4qlFGBscqBw=; b=LL2KFZ1EFgRyuNqQuaLcE9MI2iUYEji83ZBWtap8uXQ1zUhG5o5EmUVO4ky4adobT7 ZQVjhNhrSZmHqV470MWvPNA8YeCnwqn8DZTQFq1VRJFDLTyeTZSm7jqdS+t1dmf5sRIn AaNmR0SAfGYQFpmnZJ/qLjWC+8DrSHhL7tklA9CIAU7i0Cf5wDxz6w+Z4q5q1igJXDK2 BYHjR6w3TeBnOPrchyJ3Mia48CGsY71PBHtpt7k/zHppq1LDoG2VBevambJXqihwwYTU SkbISY9AVfdvImrEj4tG9hobDAyJ9ppUDHPcjPDJjHFdyurqDYWUbD8aEL92DqMtPoaG 2b8A== X-Gm-Message-State: APjAAAV5adlqupNwFS/PNTM2MzrJcrj+HlRjeZfUcpu50+j4WX3nq04F o+BbP9sdG76FZXHuHDUupvu5TjiNeEE= X-Received: by 2002:a1c:c742:: with SMTP id x63mr112563024wmf.0.1564521616902; Tue, 30 Jul 2019 14:20:16 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id y16sm66737943wrw.33.2019.07.30.14.20.16 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 14:20:16 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 30 Jul 2019 22:20:12 +0100 Message-Id: <20190730212012.24115-2-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190730212012.24115-1-ross.burton@intel.com> References: <20190730212012.24115-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] perl: add PACKAGECONFIG for db 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 perl-cross makes it easy to cleanly disable the use of Berkeley DB if desired, so add a PACKAGECONFIG for this. More of the dependencies (such as gdbm) can be controlled in the same way, but Berkeley DB is a prime contender: it's a large library which we have to ship an old release for due to licensing issues, so there are users who may want to strip it out of builds entirely. Signed-off-by: Ross Burton --- meta/recipes-devtools/perl/perl_5.30.0.bb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 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-devtools/perl/perl_5.30.0.bb b/meta/recipes-devtools/perl/perl_5.30.0.bb index ce280cb1cbd..a221bce52bd 100644 --- a/meta/recipes-devtools/perl/perl_5.30.0.bb +++ b/meta/recipes-devtools/perl/perl_5.30.0.bb @@ -35,10 +35,13 @@ S = "${WORKDIR}/perl-${PV}" inherit upstream-version-is-even -DEPENDS += "db gdbm zlib virtual/crypt" +DEPENDS += "gdbm zlib virtual/crypt" PERL_LIB_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}.0" +PACKAGECONFIG ??= "bdb" +PACKAGECONFIG[bdb] = ",-Ui_db,db" + # Don't generate comments in enc2xs output files. They are not reproducible export ENC2XS_NO_COMMENTS = "1" @@ -56,7 +59,8 @@ do_configure_class-target() { -Duseshrplib \ -Dsoname=libperl.so.5 \ -Dvendorprefix=${prefix} \ - -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux + -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \ + ${PACKAGECONFIG_CONFARGS} #perl.c uses an ARCHLIB_EXP define to generate compile-time code that #adds the archlibexp path to @INC during run-time initialization of a @@ -79,7 +83,8 @@ do_configure_class-nativesdk() { -Duseshrplib \ -Dsoname=libperl.so.5 \ -Dvendorprefix=${prefix} \ - -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux + -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \ + ${PACKAGECONFIG_CONFARGS} # See the comment above sed -i -e "s,${STAGING_LIBDIR},${libdir},g" config.h @@ -91,7 +96,8 @@ do_configure_class-native() { -Duseshrplib \ -Dsoname=libperl.so.5 \ -Dvendorprefix=${prefix} \ - -Ui_xlocale + -Ui_xlocale \ + ${PACKAGECONFIG_CONFARGS} } do_configure_append() {