All of lore.kernel.org
 help / color / mirror / Atom feed
* Recipe question
@ 2015-06-06  0:50 Darren Breeze
  2015-06-08  7:20 ` Samuel Engelmajer
  2015-06-08  7:36 ` Anders Darander
  0 siblings, 2 replies; 4+ messages in thread
From: Darren Breeze @ 2015-06-06  0:50 UTC (permalink / raw)
  To: yocto

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.
















^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Recipe question
  2015-06-06  0:50 Recipe question Darren Breeze
@ 2015-06-08  7:20 ` Samuel Engelmajer
  2015-06-08  7:36 ` Anders Darander
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Engelmajer @ 2015-06-08  7:20 UTC (permalink / raw)
  To: Darren Breeze; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1909 bytes --]

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 <darren.j.breeze@gmail.com>:

> 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
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 2915 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Recipe question
  2015-06-06  0:50 Recipe question Darren Breeze
  2015-06-08  7:20 ` Samuel Engelmajer
@ 2015-06-08  7:36 ` Anders Darander
  2015-06-09 21:55   ` Darren Breeze
  1 sibling, 1 reply; 4+ messages in thread
From: Anders Darander @ 2015-06-08  7:36 UTC (permalink / raw)
  To: Darren Breeze; +Cc: yocto

* Darren Breeze <darren.j.breeze@gmail.com> [150606 02:52]:
> 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/.
> }

> ----------

> 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

-- 
Anders Darander
ChargeStorm AB / eStorm AB


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Recipe question
  2015-06-08  7:36 ` Anders Darander
@ 2015-06-09 21:55   ` Darren Breeze
  0 siblings, 0 replies; 4+ messages in thread
From: Darren Breeze @ 2015-06-09 21:55 UTC (permalink / raw)
  To: yocto

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.




On 8/06/2015 3:36 PM, Anders Darander wrote:
> * Darren Breeze <darren.j.breeze@gmail.com> [150606 02:52]:
>> 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/.
>> }
>> ----------
>> 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
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-09 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-06  0:50 Recipe question Darren Breeze
2015-06-08  7:20 ` Samuel Engelmajer
2015-06-08  7:36 ` Anders Darander
2015-06-09 21:55   ` Darren Breeze

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.