I know there is a parted recipe.
I need the equivalent of the Ubuntu package libprated-dev.
This is the library and header files for using the functions used by parted.

Keith
________________________________
From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> on behalf of 
Alexander Kanavin via lists.yoctoproject.org 
<alex.kanavin=gmail....@lists.yoctoproject.org>
Sent: Tuesday, February 11, 2025 9:30 AM
To: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org>; 
skandigr...@gmail.com <skandigr...@gmail.com>
Cc: r...@cmss.com <r...@cmss.com>
Subject: Re: [yocto] Installing pre-built DEB files

[You don't often get email from alex.kanavin=gmail....@lists.yoctoproject.org. 
Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

[EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the 
sender and know the content is safe.

No. Do not do this. It's not going to work, especially when you take
binaries built for a different system. I do not have time to give a
lecture about why, you just need to trust me.

We have a recipe that builds parted from source:
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fgit.yoctoproject.org%2Fpoky%2Ftree%2Fmeta%2Frecipes-extended%2Fparted&data=05%7C02%7Ckbeal%40eclipticenterprises.com%7C7f9423a3b52040ee575b08dd4ac1c17c%7Cb4f66761c9e248569874b1c6d40ccfea%7C0%7C0%7C638748918218773595%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=o88PrC8sH1YTKqX5Y4%2BEQSXXOUnw0B5QtHiT7WjnVoU%3D&reserved=0<https://git.yoctoproject.org/poky/tree/meta/recipes-extended/parted>

Use it.

Alex

On Tue, 11 Feb 2025 at 18:05, Gyorgy Sarvari via
lists.yoctoproject.org <skandigraun=gmail....@lists.yoctoproject.org>
wrote:
>
> Your first destination should be the log.do_install file in the WORKDIR
> of the recipe, which should have the output of the dpkg commands. That
> should shed some light on this mystery, hopefully.
>
> Sidenote: DEB files are actually two compressed tar files in a single
> archive. If nothing else works, you can extract the tar files with "ar x
> $DEBFILE" - the data.tar.* file has the content that you can just copy
> to your rootfs (it also has the folder structure prepared). If you pass
> the tar.* files in the SRC_URI, even the extraction could be handled by
> bitbake. (Assuming that no post-install magic is done by the deb files,
> which would be at least unusual for libraries and -dev packages)
>
> On 11.02.25 17:11, R Keith Beal via lists.yoctoproject.org wrote:
> > I am working with NXP's Flex-Builder.
> > I need to add the libraries and headers for parted.
> > On Ubuntu there is a package called libprated-dev I am trying to
> > replicate.
> > The LAYERSCAPE SDK is using bitbake 1.5.
> > I know I probably shouldn't be installing DEBs directly, but, adding
> > recipes for libprated and all of its dependencies is beyond the scope
> > of the project.
> >
> > I came-up with this recipe, it reports no errors but the files are not
> > installed in the RFS.
> >
> >     SUMMARY = "Development libraries and headers for libparted"
> >     #SECTION = "console/tools"
> >     LICENSE="CLOSED"
> >     LIC_FILES_CHKSUM=""
> >     SRC_URI = " \
> >         file://libdevmapper-event1.02.1_1.02.155-3_arm64.deb \
> >         file://libudev-dev_257.2-3_arm64.deb \
> >         file://libdevmapper-dev_1.02.201-1_arm64.deb \
> >         file://libparted-dev_3.6-4+b1_arm64.deb \
> >     "
> >     SRCREV = ""
> >     PV = "0.1.0"
> >     S = "${WORKDIR}/git"
> >     DEPENDS = "parted"
> >     # inherit pkgconfig
> >     # Install in this order
> >     # libdevmapper-event1.02.1_1.02.155-3_arm64.deb
> >     # libudev-dev_257.2-3_arm64.deb
> >     # libdevmapper-dev_1.02.201-1_arm64.deb
> >     # libparted-dev_3.6-4+b1_arm64.deb
> >     do_install() {
> >         touch ${STAGING_DIR_NATIVE}/var/lib/dpkg/status
> >         ${STAGING_BINDIR_NATIVE}/dpkg --instdir=${D}/ \
> >         --admindir=${STAGING_DIR_NATIVE}/var/lib/dpkg/ \
> >          -i ${WORKDIR}/libdevmapper-event1.02.1_1.02.155-3_arm64.deb
> >         ${STAGING_BINDIR_NATIVE}/dpkg --instdir=${D}/ \
> >         --admindir=${STAGING_DIR_NATIVE}/var/lib/dpkg/ \
> >          -i ${WORKDIR}/libudev-dev_257.2-3_arm64.deb
> >         ${STAGING_BINDIR_NATIVE}/dpkg --instdir=${D}/ \
> >         --admindir=${STAGING_DIR_NATIVE}/var/lib/dpkg/ \
> >          -i ${WORKDIR}/libdevmapper-dev_1.02.201-1_arm64.deb
> >         ${STAGING_BINDIR_NATIVE}/dpkg --instdir=${D}/ \
> >         --admindir=${STAGING_DIR_NATIVE}/var/lib/dpkg/ \
> >          -i ${WORKDIR}/libparted-dev_3.6-4+b1_arm64.deb
> >     }
> >
> >
> >
> >
> >
> >
>
>
>


Ecliptic Enterprises Corporation
Space Avionics and Sensor Systems -- Home of RocketCam(tm)
398 W. Washington Blvd, Suite 100
Pasadena, CA 91103
Main number: (626) 798-2436
www.EclipticEnterprises.com

Notice: This e-mail is intended solely for use of the individual or entity to 
which it is addressed and may contain information that is proprietary, 
privileged and exempt from disclosure under applicable law. If the reader is 
not the intended recipient or agent responsible for delivering the message to 
the intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited. This 
communication may also contain data subject to U.S. export laws. If so, that 
data is subject to the International Traffic in Arms Regulation (ITAR) and 
cannot be disseminated, distributed or copied to foreign nationals, residing in 
the U.S. or abroad, absent the express prior approval of the U.S. Department of 
State. If you have received this communication in error, please notify the 
sender by reply e-mail and destroy the e-mail message and any physical copies 
made of the communication. Thank you
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64772): https://lists.yoctoproject.org/g/yocto/message/64772
Mute This Topic: https://lists.yoctoproject.org/mt/111125016/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to