From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail29.messagelabs.com (mail29.messagelabs.com [216.82.249.147]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7BC84E00559 for ; Wed, 9 Jan 2013 01:35:36 -0800 (PST) X-Env-Sender: Javier.Viguera@digi.com X-Msg-Ref: server-4.tower-29.messagelabs.com!1357724134!26267728!1 X-Originating-IP: [66.77.174.14] X-StarScan-Received: X-StarScan-Version: 6.6.1.8; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23063 invoked from network); 9 Jan 2013 09:35:35 -0000 Received: from mail.mx4.digi.com (HELO mcl-sms-ns2.DIGI.COM) (66.77.174.14) by server-4.tower-29.messagelabs.com with RC4-SHA encrypted SMTP; 9 Jan 2013 09:35:35 -0000 Received: from mcl-sms-exch01.digi.com (10.5.8.50) by mail.mx2.digi.com (172.16.1.14) with Microsoft SMTP Server (TLS) id 8.3.297.1; Wed, 9 Jan 2013 03:34:52 -0600 Received: from dor-sms-exch01.digi.com (10.49.8.100) by mcl-sms-exch01.digi.com (10.5.8.50) with Microsoft SMTP Server (TLS) id 8.3.297.1; Wed, 9 Jan 2013 03:35:34 -0600 Received: from [10.101.1.79] (10.101.1.79) by dor-sms-exch01.digi.com (10.49.8.100) with Microsoft SMTP Server (TLS) id 8.3.279.5; Wed, 9 Jan 2013 10:35:32 +0100 Message-ID: <50ED39DD.1090606@digi.com> Date: Wed, 9 Jan 2013 10:35:25 +0100 From: Javier Viguera User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Otavio Salvador References: <1357671877-3892-1-git-send-email-otavio@ossystems.com.br> In-Reply-To: Cc: "meta-freescale@yoctoproject.org" Subject: Re: [meta-fsl-arm][PATCH] fsl-mm-*-codeclib: Fix packaging of libraries X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 09:35:36 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 8bit On 01/08/2013 08:02 PM, Otavio Salvador wrote: > This is a new patch which replaces the other one. It should address > all packaging issues in the fsl-mm-*-codeclib packages. Javier, can > you give it a try? The patch worked mostly well. No warnings at build time and the packages are created. A couple of things though: 1. The 'fsl-mm-codeclib' source package has symbolic links for the '*.so' files pointing to the real library file. For example: lib_sbc_enc_arm11_elinux.so -> lib_sbc_enc_arm11_elinux.so.2.0.0 lib_sbc_enc_arm11_elinux.so.2.0.0 lib_sbc_enc_arm9_elinux.so -> lib_sbc_enc_arm9_elinux.so.2.0.0 lib_sbc_enc_arm9_elinux.so.2.0.0 The patch changed 'cp' to 'install' tool in the 'do_install' function and then those symbolic links get lost. See: 19740 Jan 9 09:57 lib_sbc_enc_arm11_elinux.so 19740 Jan 9 09:57 lib_sbc_enc_arm11_elinux.so.2.0.0 19736 Jan 9 09:57 lib_sbc_enc_arm9_elinux.so 19736 Jan 9 09:57 lib_sbc_enc_arm9_elinux.so.2.0.0 Then the '*.so' files go to the '-dev' package as *files* and not as symbolic links and if you install both in your target's rootfs you have duplicated files. This doesn't hurt but it doubles the space. 2. More important Because the source package has this mix of files with different naming rules, there are some missing files in the normal package that went to the '-dev' package: lib_aac_parser_arm11_elinux.so lib_bmp_dec_arm11_elinux.so lib_deinterlace_arm11_elinux.so lib_flac_parser_arm11_elinux.so lib_gif_dec_arm11_elinux.so lib_id3_parser_arm11_elinux.so lib_jpeg_enc_arm11_elinux.so lib_mp3_parser_v2_arm11_elinux.so libmpeg4_encoder_arm11_ELINUX.so lib_png_dec_arm11_elinux.so lib_src_ppp_arm11_elinux.so lib_wav_parser_arm11_elinux.so The reason again is that in the source package these files are the real libraries but they don't have a ending version in the filename. The build system i guess understands that they are the symbolic links that should go to the '-dev' package when they shouldn't. So number #1 is just a matter of saving space, while number #2 is more important because later at runtime gstreamer needs some of the missing files. I get this error running gst-inspect: (gst-plugin-scanner:887): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libmfw_gst_deinterlace.so': *lib_deinterlace_arm11_elinux.so*: cannot open shared object file: No such file or directory - Javier Viguera Software Engineer Digi International® Spain S.A.U.