From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 60872E00E6A; Tue, 16 Jan 2018 00:11:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [195.74.38.227 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from bin-vsp-out-01.atm.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ECC34E00D32 for ; Tue, 16 Jan 2018 00:11:34 -0800 (PST) X-Halon-ID: be0322c3-fa94-11e7-ab1b-005056917a89 Authorized-sender: petter@technux.se Received: from webmail.binero.se (unknown [195.74.38.9]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id be0322c3-fa94-11e7-ab1b-005056917a89; Tue, 16 Jan 2018 09:10:42 +0100 (CET) MIME-Version: 1.0 Date: Tue, 16 Jan 2018 09:11:19 +0100 From: =?UTF-8?Q?Petter_Mab=C3=A4cker?= To: =?UTF-8?Q?Nguy=E1=BB=85n_Thanh_V=C5=A9?= , Yocto Organization: Technux Mail-Reply-To: In-Reply-To: References: <475569826765f982629209ea5ba3e068@technux.se> Message-ID: X-Sender: petter@technux.se User-Agent: Binero Webmail/0.8.4 Subject: Re: Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: petter@technux.se List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 08:11:36 -0000 Content-Type: multipart/alternative; boundary="=_c3cd406cb4cbb7ccab9041ace7a5b21c" --=_c3cd406cb4cbb7ccab9041ace7a5b21c Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 My guess would be that the package name to exclude is libjpeg-turbo . But it seems to provide jpeg-tools as well, so that can be good to have in mind when elaborating with excluding this package. BR Petter 2018-01-16 07:46 skrev Nguyễn Thanh Vũ: > I know that I need to use PACKAGE_EXCLUDE, but I have no idea what is the package name of libjpeg ... Any clue? > > On Tue, Jan 16, 2018 at 1:40 PM, Petter Mabäcker wrote: > >> 2018-01-16 05:28 skrev Nguyễn Thanh Vũ: >> >>> I have statically linked the libjpeg of my own to the exe file, so I do not need the libjpeg.so default built in the /lib of rootfs. How can I modify or specify in the local.conf file so that I can remove that component? It takes quite a lot of space. >>> >>> Thank you. >> >> Hi Nguyễn, >> >> If you want (and no dependencies dissallow it), you can remove the entire package providing libjpeg.so from being installed with PACKAGE_EXCLUDE (http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PACKAGE_EXCLUDE [2]). >> >> If that`s not working you can for example use ROOTFS_POSTPROCESS_COMMAND (http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-ROOTFS_POSTPROCESS_COMMAND [3]). However that will require more work then just update a line in local.conf. >> >> If you want to try it out you can simply append the image recipe in a custom layer with below. >> >> my_postprocess_function() { >> rm -f ${IMAGE_ROOTFS}/path/to/libjpeg.so >> } >> ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; " >> >> BR Petter >> >> Petter Mabäcker >> >> Technux >> www.technux.se [1] Links: ------ [1] http://www.technux.se [2] http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PACKAGE_EXCLUDE [3] http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-ROOTFS_POSTPROCESS_COMMAND --=_c3cd406cb4cbb7ccab9041ace7a5b21c Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

My guess would be that the package name to exclude is libjpeg-turbo . Bu= t it seems to provide jpeg-tools as well, so that can be good to have in mi= nd when elaborating with excluding this package.

BR Petter

2018-01-16 07:46 skrev Nguy=E1=BB=85n Thanh V=C5=A9:

I know that I need to use PACKAGE_EXCLUDE, but I have no i= dea what is the package name of libjpeg ... Any clue?

On Tue, Jan 16, 2018 at 1:40 PM, Petter Mabä= ;cker <petter@technux.se&= gt; wrote:

2018-01-16 05:28 skrev Nguy=E1=BB=85n Thanh V=C5=A9:

I have statically linked the libjpeg of my own to the exe = file, so I do not need the libjpeg.so default built in the /lib of rootfs= =2E How can I modify or specify in the local.conf file so that I can remove= that component? It takes quite a lot of space.
 
Thank you.

Hi Nguy=E1=BB=85n,

If you want (and no dependencies dissallow it), you can remove the entir= e package providing libjpeg.so from being installed with PACKAGE_EXCLUDE (<= a href=3D"http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.ht= ml#var-PACKAGE_EXCLUDE">http://www.yoctoproject.org/docs/current/ref-manual= /ref-manual.html#var-PACKAGE_EXCLUDE).

If that`s not working you can for example use ROOTFS_POSTPROCESS_COMMAND= (http://www.yoctoproject.org/docs/cu= rrent/ref-manual/ref-manual.html#var-ROOTFS_POSTPROCESS_COMMAND). Howev= er that will require more work then just update a line in local.conf.

If you want to try it out you can simply append the image recipe in a cu= stom layer with below.

     my_postprocess_func=
tion() {
        rm -f  ${IMAGE_ROOTFS}/path/to/libjpeg.so
     }
     ROOTFS_POSTPROCESS_COMMAND +=3D "my_postprocess_function; "

 

BR Petter

 

Petter Mabäcker

Technux <petter@technux.se>
www.technux.se
--=_c3cd406cb4cbb7ccab9041ace7a5b21c--