Skip to contentSkip to conversation

Recipe question

DISCUSSION Darren Breeze 3 participants 4 messages Jun 6, 2015 – Jun 9, 2015

lore
Share & tools
lore
#0 lore raw

Hi

First post, I hope this is the correct list..

I am trying to create a simple recipe that takes a tree of a website off a local git repository and places it in a directory under /opt in my image. It's a small tree of a couple of subdirectories and about 20 files.

the recipe file is :

---------

DESCRIPTION = "Web Remote"
SECTION = "utils"

ALTERNATIVE_${PN} = "web-remote"

PROVIDES = "web-remote"
RPROVIDES_${PN} += "${PN}"

LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""

SRCREV = "${AUTOREV}"

PV="1.0"
PR = "r0"

SRC_URI = "git://192.168.192.46/mygroup/web_remote.git;protocol=http;branch=master;"

S = "${WORKDIR}/git"

do_install() {
        install -d ${D}opt/web_remote
        cp -r ${S}/* ${D}opt/web_remote/.
}

SRC_URI[md5sum] = "???"
SRC_URI[sha256sum] = "???"

----------

but I keep getting this error

"error: Can't install packagegroup-core-boot-1.0-r17@rk3188: no package provides web-remote"

Without web-remote included in the build, everything works and I get a bootable image, I think I am missing something very obvious but been hacking at this too long to see it waving at me from the edge of the forest.

I have set the license to CLOSED, just as I had issues with setting up MIT (I will fix this later)

Can someone please point me in the correct direction.

many thanks in advance.

Darren B.

#1 lore raw

Hi,

A simple suggestion here out of the blue,
are you sure your recipe is located in a place Yocto can find it ? What is your recipe name ?

Sam

2015-06-06 2:50 GMT+02:00 Darren Breeze <[email protected]>:

Quoted 80 lines

Hi

First post, I hope this is the correct list..

I am trying to create a simple recipe that takes a tree of a website off a local git repository and places it in a directory under /opt in my image. It's a small tree of a couple of subdirectories and about 20 files.

the recipe file is :

---------

DESCRIPTION = "Web Remote"
SECTION = "utils"

ALTERNATIVE_${PN} = "web-remote"

PROVIDES = "web-remote"
RPROVIDES_${PN} += "${PN}"

LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""

SRCREV = "${AUTOREV}"

PV="1.0"
PR = "r0"

SRC_URI = "git:// 192.168.192.46/mygroup/web_remote.git;protocol=http;branch=master;"

S = "${WORKDIR}/git"

do_install() {
        install -d ${D}opt/web_remote
        cp -r ${S}/* ${D}opt/web_remote/.
}

SRC_URI[md5sum] = "???"
SRC_URI[sha256sum] = "???"

----------

but I keep getting this error

"error: Can't install packagegroup-core-boot-1.0-r17@rk3188: no package provides web-remote"

Without web-remote included in the build, everything works and I get a bootable image, I think I am missing something very obvious but been hacking at this too long to see it waving at me from the edge of the forest.

I have set the license to CLOSED, just as I had issues with setting up MIT (I will fix this later)

Can someone please point me in the correct direction.

many thanks in advance.

Darren B.

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
In reply to Darren Breeze
Quoted 17 lines · Darren Breeze

the recipe file is :

---------

DESCRIPTION = "Web Remote"
SECTION = "utils"

SRC_URI = "git://192.168.192.46/mygroup/web_remote.git;protocol=http;branch=master;"

S = "${WORKDIR}/git"

do_install() {
        install -d ${D}opt/web_remote
        cp -r ${S}/* ${D}opt/web_remote/.
}
Quoted 6 lines

----------

but I keep getting this error

"error: Can't install packagegroup-core-boot-1.0-r17@rk3188: no package provides web-remote"

You have installed the files under /opt, though there's nothing that tells the system in which package these files should be installed.

Add a line:

FILES_${PN} += "/opt/we_remote"

to your recipe. This should tell the packaging step that all files under /opt/web_root should be included in the ${PN}-package.

Cheers,
Anders

Signature · 2 lines
Anders Darander
ChargeStorm AB / eStorm AB
#3 lore raw

Hi

I have sorted this out.

I had assumed the ${D} contained a trailing slash when it didn't

I changed do_install to

do_install() {
        install -d ${D}/opt/web_remote
        cp -r ${S}/* ${D}/opt/web_remote/.
}

And it worked.

Thanks for all the responses.

Darren B.

Quoted 29 lines · Anders Darander
Quoted 7 lines · Darren Breeze

the recipe file is :
---------
DESCRIPTION = "Web Remote"
SECTION = "utils"
SRC_URI = "git://192.168.192.46/mygroup/web_remote.git;protocol=http;branch=master;" S = "${WORKDIR}/git"

Quoted 8 lines
do_install() {
         install -d ${D}opt/web_remote
         cp -r ${S}/* ${D}opt/web_remote/.
}

----------
but I keep getting this error
"error: Can't install packagegroup-core-boot-1.0-r17@rk3188: no package provides web-remote"

You have installed the files under /opt, though there's nothing that tells the system in which package these files should be installed.

Add a line:

FILES_${PN} += "/opt/we_remote"

to your recipe. This should tell the packaging step that all files under /opt/web_root should be included in the ${PN}-package.

Cheers,
Anders