From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com ([134.134.136.24]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TByNG-0004Qs-DF for openembedded-core@lists.openembedded.org; Thu, 13 Sep 2012 03:37:47 +0200 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 12 Sep 2012 18:25:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,413,1344236400"; d="scan'208";a="202622287" Received: from unknown (HELO [10.255.13.93]) ([10.255.13.93]) by orsmga002.jf.intel.com with ESMTP; 12 Sep 2012 18:25:12 -0700 Message-ID: <505135F8.3010809@linux.intel.com> Date: Wed, 12 Sep 2012 18:25:12 -0700 From: Saul Wold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Saul Wold References: <1347498112-22462-1-git-send-email-sgw@linux.intel.com> In-Reply-To: <1347498112-22462-1-git-send-email-sgw@linux.intel.com> Cc: openembedded-core@lists.openembedded.org Subject: Re: [RFC PATCH] insane.conf: add new libexec test X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 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: Thu, 13 Sep 2012 01:37:47 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 09/12/2012 06:01 PM, Saul Wold wrote: > This tests for /usr/libexec as we are moving things to /lib/. This got clobbered by the shell or something, should be ${prefix}/lib/${BPN} > the test is ignored if the distro defaults to /usr/libexec. > > Currently this test will be disabled by default since the current > value of ${libexecdir} is "/usr/libexec". Also this tests needs > to be enabled in the WARN_QA list. > > [YOCTO #2915] > > Signed-off-by: Saul Wold > --- > meta/classes/insane.bbclass | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass > index e74eb3f..8b2d536 100644 > --- a/meta/classes/insane.bbclass > +++ b/meta/classes/insane.bbclass > @@ -137,6 +137,20 @@ def package_qa_handle_error(error_class, error_msg, d): > bb.warn("QA Issue: %s" % error_msg) > return True > > +QAPATHTEST[libexec] = "package_qa_check_libexec" > +def package_qa_check_libexec(path,name, d, elf, messages): > + > + # Skip the case where the default is explicitly /usr/libexec > + libexec = d.getVar('libexecdir', True) > + if libexec == "/usr/libexec": > + return True > + > + if 'libexec' in path.split(os.path.sep): > + messages.append("%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d), libexec)) > + return False > + > + return True > + > QAPATHTEST[rpaths] = "package_qa_check_rpath" > def package_qa_check_rpath(file,name, d, elf, messages): > """ >