From patchwork Thu Oct 29 20:06:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 537996 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 50559141325 for ; Fri, 30 Oct 2015 07:12:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices_com.20150623.gappssmtp.com header.i=@boundarydevices_com.20150623.gappssmtp.com header.b=zyjd2iIG; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7EA09A3EFA; Thu, 29 Oct 2015 20:12:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vejogks90Jnr; Thu, 29 Oct 2015 20:12:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 55AF8A3EF8; Thu, 29 Oct 2015 20:12:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CBD2E1C0110 for ; Thu, 29 Oct 2015 20:12:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C5B81911D8 for ; Thu, 29 Oct 2015 20:12:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qIm3mImfYVEk for ; Thu, 29 Oct 2015 20:12:17 +0000 (UTC) X-Greylist: delayed 00:05:01 by SQLgrey-1.7.6 Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id E580E911D0 for ; Thu, 29 Oct 2015 20:12:16 +0000 (UTC) Received: by wmeg8 with SMTP id g8so32069221wme.1 for ; Thu, 29 Oct 2015 13:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ygRAPcQBguKd9XvTquKdIkafQl3uDLa3RM5zoFanSKU=; b=zyjd2iIG19YII3BWZ2dEY9T4E7Q4pGfWPzD4ngKX9s6ghZSMyCyJp90zttK9eRSDHE D4A60tti+cJoRxh9QuH+PRn33ZfeC4lnXLxqv326y4dr2XpSI4hd6NLnExFRPL3o5KF7 fXXNzkx0KJdt1d1O1Vq3lM3LHjUlckesjFXK2qfjpv8GxJ2FG6vZAGKIuUqNY2OHWRgN 4DOSHzgo8dvqAKtQ3KPIuziFn3T1jgpuvaEGips3NDvKUic+orznrmlcYEwOwD6pEo9G DRtQdAH4mXKsubejf9k1HvwrCbH01w6Yi54+kVvbVveR8WN+NYnePSUov69oJwW0IDDy jLEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ygRAPcQBguKd9XvTquKdIkafQl3uDLa3RM5zoFanSKU=; b=kfl7dHTCkGzRSF7s+cIqfvhJdz5eW/CF44nqFwhGo2+YZPSXG8N7mT7Dhrq9tDF6Hq KLkWTVTt6P7QVKmL8MmtZd8Goh3R8G+p7CByNsvb2+QsR8VSyB6s2BKtDNHK/6jKVco/ AYutglu8xlD/9CZ+K8yflb+azA4sP8+qbIMjwdRnxGTLjDB9iXd4E50KZjRYlNps9W/K HY4FKl6WjrljkzYCBNP51PthFV+CbaFgM/MUOkjnUzKVe14MEBiLwCaEQwiOVx0QFHQh gta09uwwim0w9tWIL4mVJNYIxZv/lAsk3v7HCH585+QUwVlE81Ex02JFbyFKRSdoOoeC 1BWw== X-Gm-Message-State: ALoCoQkURtrX8jCmxaiMgLOnjVdjQuaatWF0JX12cNL21LepMf7YC7bDoMkXanmThpERV3xvEMBf X-Received: by 10.28.55.200 with SMTP id e191mr5765033wma.83.1446149234835; Thu, 29 Oct 2015 13:07:14 -0700 (PDT) Received: from t450s.lan (89-92-157-132.hfc.dyn.abo.bbox.fr. [89.92.157.132]) by smtp.googlemail.com with ESMTPSA id vr10sm3407259wjc.38.2015.10.29.13.07.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Oct 2015 13:07:14 -0700 (PDT) From: Gary Bisson To: buildroot@busybox.net Date: Thu, 29 Oct 2015 21:06:51 +0100 Message-Id: <1446149212-12048-4-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1446149212-12048-1-git-send-email-gary.bisson@boundarydevices.com> References: <1446149212-12048-1-git-send-email-gary.bisson@boundarydevices.com> Cc: thomas.petazzoni@free-electrons.com, jezz@sysmic.org Subject: [Buildroot] [PATCH 3/4] libfslparser: add install hooks to fix libraries path X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" By default, all the libraries are installed under /usr/lib/imx-mm which causes problems at runtime. This has been tested implicitely by running Gstreamer without any special setup (no ld.so.conf nor LD_LIBRARY_PATH modification): # gst-launch-0.10 playbin uri=file:///root/tears_of_steel_1080p.webm # gst-launch-0.10 audiotestsrc ! mfw_mp3encoder ! fakesink Signed-off-by: Gary Bisson --- I'm actually not sure if libfslparser is needed at all. I couldn't find a library depending on any of the one from the package. But Yocto still has depency on the package for gst-fsl-plugins: https://github.com/Freescale/meta-fsl-arm/blob/fido/recipes-multimedia/gstreamer/gst-fsl-plugin.inc#L9 Regards, Gary --- package/libfslparser/libfslparser.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/libfslparser/libfslparser.mk b/package/libfslparser/libfslparser.mk index 2b53d62..aa02f19 100644 --- a/package/libfslparser/libfslparser.mk +++ b/package/libfslparser/libfslparser.mk @@ -20,4 +20,12 @@ endef # The Makefile installs several versions of the libraries, but we only # need one of them, depending on the platform. +# no need to symlink in target image, just move libraries around +define LIBFSLPARSER_FIXUP_TARGET_PATH + find $(TARGET_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \ + -exec mv {} $(TARGET_DIR)/usr/lib \; + rm -fr $(TARGET_DIR)/usr/lib/imx-mm +endef +LIBFSLPARSER_POST_INSTALL_TARGET_HOOKS += LIBFSLPARSER_FIXUP_TARGET_PATH + $(eval $(autotools-package))