All of lore.kernel.org
 help / color / mirror / Atom feed
* What is the common way to extend an package without bbappend?
@ 2016-09-28 13:40 S.Jaritz
  2016-09-28 13:44 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: S.Jaritz @ 2016-09-28 13:40 UTC (permalink / raw)
  To: yocto

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

Hej

I want to install apache2 + a website. For that I need to copy my website 
to the std. dir defined in the apache config file. In my thinking my 
website uses the apache service to be aviable and therefore is an own 
package (myweb.bb). This package contains the dependency to the "apache2" 
recipe.

When populate_sysroot is called in myweb.bb finishes with the error:

myweb-1.0-r0 do_populate_sysroot: The recipe myweb is trying to install 
files into a shared area when those files already exist. Those files and 
their manifest location are:
 
/home/user/myTC/poky/build/tmp/sysroots/sama5d3xek/usr/share/apache2/htdocs/index.html

because the index.html needs to be overwritten.

Is there a easy way to overwrite or tell bitbake to uses my index.html?

regards!

Stefan Jaritz

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz@esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.

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

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

* Re: What is the common way to extend an package without bbappend?
  2016-09-28 13:40 What is the common way to extend an package without bbappend? S.Jaritz
@ 2016-09-28 13:44 ` Burton, Ross
  2016-09-28 13:50   ` Antwort: " S.Jaritz
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2016-09-28 13:44 UTC (permalink / raw)
  To: S.Jaritz; +Cc: yocto

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

On 28 September 2016 at 14:40, <S.Jaritz@esa-grimma.de> wrote:

> When populate_sysroot is called in myweb.bb finishes with the error:
>
> myweb-1.0-r0 do_populate_sysroot: The recipe myweb is trying to install
> files into a shared area when those files already exist. Those files and
> their manifest location are:
>    /home/user/myTC/poky/build/tmp/sysroots/sama5d3xek/usr/
> share/apache2/htdocs/index.html
>
> because the index.html needs to be overwritten.
>
> Is there a easy way to overwrite or tell bitbake to uses my index.html?
>

Put the myweb content into an entirely new directory and drop a
configuration file in that tells apache to server from your own directory?

Ross

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

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

* Antwort: Re: What is the common way to extend an package without bbappend?
  2016-09-28 13:44 ` Burton, Ross
@ 2016-09-28 13:50   ` S.Jaritz
  2016-09-28 13:51     ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: S.Jaritz @ 2016-09-28 13:50 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

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

Can you give me an example how to modify my recipe?
I attach the simple code below:
##### myweb.bb ######
SUMMARY = "myweb"
SECTION = "example"
LICENSE = "CLOSED"

SRC_URI = "file://myweb.zip"

DEPENDS = "apache2"

S = "${WORKDIR}"

do_install () {
        install -d ${D}/usr/share/apache2/htdocs/
        cp -r ${S}/myweb/* ${D}/usr/share/apache2/htdocs/
}
FILES_${PN} += "/usr/share/apache2/htdocs/*"
###########

Regards!

Stefan Jaritz
------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz@esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.



Von:    "Burton, Ross" <ross.burton@intel.com>
An:     S.Jaritz@esa-grimma.de
Kopie:  "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Datum:  28.09.2016 15:44
Betreff:        Re: [yocto] What is the common way to extend an package 
without bbappend?




On 28 September 2016 at 14:40, <S.Jaritz@esa-grimma.de> wrote:
When populate_sysroot is called in myweb.bb finishes with the error: 

myweb-1.0-r0 do_populate_sysroot: The recipe myweb is trying to install 
files into a shared area when those files already exist. Those files and 
their manifest location are: 
  
 /home/user/myTC/poky/build/tmp/sysroots/sama5d3xek/usr/share/apache2/htdocs/index.html 


because the index.html needs to be overwritten. 

Is there a easy way to overwrite or tell bitbake to uses my index.html? 

Put the myweb content into an entirely new directory and drop a 
configuration file in that tells apache to server from your own directory?

Ross

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

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

* Re: What is the common way to extend an package without bbappend?
  2016-09-28 13:50   ` Antwort: " S.Jaritz
@ 2016-09-28 13:51     ` Burton, Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-09-28 13:51 UTC (permalink / raw)
  To: S.Jaritz; +Cc: yocto

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

On 28 September 2016 at 14:50, <S.Jaritz@esa-grimma.de> wrote:

> do_install () {
>         install -d ${D}/usr/share/apache2/htdocs/
>         cp -r ${S}/myweb/* ${D}/usr/share/apache2/htdocs/
> }
> FILES_${PN} += "/usr/share/apache2/htdocs/*"


Just put the files somewhere else, like /var/www/myweb/.  You'll need to
configure apache appropriately, of course, but I've not done that for about
a decade.

Ross

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

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

end of thread, other threads:[~2016-09-28 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 13:40 What is the common way to extend an package without bbappend? S.Jaritz
2016-09-28 13:44 ` Burton, Ross
2016-09-28 13:50   ` Antwort: " S.Jaritz
2016-09-28 13:51     ` Burton, Ross

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.