Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mail.openembedded.org (Postfix) with ESMTP id 3D1B274182 for ; Fri, 15 May 2015 16:48:55 +0000 (UTC) Received: by wicmx19 with SMTP id mx19so42939454wic.0 for ; Fri, 15 May 2015 09:48:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=+TEr+7Rp8RE171eM0WOG5NoMYFkDYfmIchgjviZo4lM=; b=OH2LSkD65ByElr2lToNjUTXr6TWiFZIoydx/G4Xq6/IIdiapIwsnyMR7Bg7P289WF4 Xn8sCcE8X5JVnGMZ8lvt5GCiwA4ZoGkLJe2hz0lVv0GMx8C4d16LxQPL/jzzdFclTjpX tgs0nQ6IH9oQQSACakqfu7k0VuXHoOjj03mQKy98+RJv9KlrQiZ2NjMherJlQvol5tS6 i4CSVqROEFHh//jtGAu2ZtbqRUYQGV3wCBlJIyqUycJJ1U9WS/5auiLIjmF/cgOtZHzK R7izQALiXgrXpKE+7G681ZMLNfXWdNeNZgp1JmkHi7k2cLU62k+Z6/WB8tvyW1Jc+AYa tlPg== X-Gm-Message-State: ALoCoQkiMD2HyvnC4yxXwOXFaWAbLfgc7gJmW1JgcmgGZjzjtOIL79HwPLiFNxKBqBWob62zuwXC X-Received: by 10.194.134.40 with SMTP id ph8mr20236182wjb.147.1431708536815; Fri, 15 May 2015 09:48:56 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by mx.google.com with ESMTPSA id z12sm3289322wjw.39.2015.05.15.09.48.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 May 2015 09:48:56 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 15 May 2015 17:42:09 +0100 Message-Id: <1431708129-17569-2-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431708129-17569-1-git-send-email-ross.burton@intel.com> References: <1431708129-17569-1-git-send-email-ross.burton@intel.com> Subject: [PATCH][V2 2/2] automake: simplify perl location forcing logic 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: , X-List-Received-Date: Fri, 15 May 2015 16:48:56 -0000 Instead of letting configure find the host's perl and then use a complicated sed to replace it at install time, simply pre-seed the configure logic with the path we want to use. Signed-off-by: Ross Burton --- meta/recipes-devtools/automake/automake_1.15.bb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/meta/recipes-devtools/automake/automake_1.15.bb b/meta/recipes-devtools/automake/automake_1.15.bb index d5b6e9e..c33dc22 100644 --- a/meta/recipes-devtools/automake/automake_1.15.bb +++ b/meta/recipes-devtools/automake/automake_1.15.bb @@ -25,18 +25,10 @@ SRC_URI += " file://python-libdir.patch \ SRC_URI[md5sum] = "716946a105ca228ab545fc37a70df3a3" SRC_URI[sha256sum] = "7946e945a96e28152ba5a6beb0625ca715c6e32ac55f2e353ef54def0c8ed924" +CACHED_CONFIGUREVARS += "ac_cv_path_PERL=${USRBINPATH}/perl" + do_install_append () { install -d ${D}${datadir} - - # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location - # for target as /usr/bin/perl, so fix it to /usr/bin/perl. - for i in aclocal aclocal-${NAMEVER} automake automake-${NAMEVER}; do - if [ -f ${D}${bindir}/$i ]; then - sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/perl,' \ - -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${USRBINPATH}/perl \1 exec ${USRBINPATH}/perl \2,' \ - ${D}${bindir}/$i - fi - done } BBCLASSEXTEND = "native nativesdk" -- 2.1.4