All of lore.kernel.org
 help / color / mirror / Atom feed
* using do_install_append?
@ 2015-10-22 18:26 Smith, Daniel W
  2015-10-22 18:54 ` Gary Thomas
  2015-10-22 19:06 ` Gary Thomas
  0 siblings, 2 replies; 4+ messages in thread
From: Smith, Daniel W @ 2015-10-22 18:26 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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

Hello,

This seems like it should be an easy task, but perhaps I'm missing something very basic so it is not working.

I have working recipe that installs the fluxbox window manager.  However I want to customize the default runtime configuration files located in /usr/share/fluxbox.  To do this I created fluxbox_1.3.5.bbappend in order to replace the default configuration files with my own.

This file contains the following:

FILESEXTRAPATHS_prepend_poky := "${THISDIR}/files:"

SRC_URI = "file://apps \
           file://init \
           file://keys \
           file://menu \
           file://overlay \
           file://windowmenu "

#
# Install the customized Fluxbox configuration files.
#
do_install_append() {
  install -m 0644 ${WORKDIR}/apps          ${D}{datadir}/fluxbox/apps
  install -m 0644 ${WORKDIR}/init          ${D}{datadir}/fluxbox/init
  install -m 0644 ${WORKDIR}/keys          ${D}{datadir}/fluxbox/keys
  install -m 0644 ${WORKDIR}/menu          ${D}{datadir}/fluxbox/menu
  install -m 0644 ${WORKDIR}/windowmenu    ${D}{datadir}/fluxbox/windowmenu
}

However now when I bitbake fluxbox it fails to configure:

ERROR: Function failed: fluxbox: LIC_FILES_CHKSUM points to an invalid file: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/git/COPYING
ERROR: Logfile of failure stored in: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/temp/log.do_configure.32643
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| NOTE: nothing to configure
| DEBUG: Shell function do_configure finished
| DEBUG: Executing python function do_qa_configure
| NOTE: Checking autotools environment for common misconfiguration
| DEBUG: Python function do_qa_configure finished
| ERROR: Function failed: fluxbox: LIC_FILES_CHKSUM points to an invalid file: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/git/COPYING
ERROR: Task 5 (/export/home/dwsmith/poky-fido-13.0.0/meta-lightwm-master/recipes-fluxbox/fluxbox/fluxbox_1.3.5.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 793 tasks of which 792 didn't need to be rerun and 1 failed.


Why would adding a do_install_append cause the config to now fail?  What am I missing?  I can remove  fluxbox_1.3.5.bbappend and it works fine, so there is obviously something I'm not doing right.

Thanks for nay help you can provide.
-Daniel Smith




This message and any enclosures are intended only for the addressee.  Please 
notify the sender by email if you are not the intended recipient.  If you are 
not the intended recipient, you may not use, copy, disclose, or distribute this 
message or its contents or enclosures to any other person and any such actions 
may be unlawful.  Ball reserves the right to monitor and review all messages 
and enclosures sent to or from this email address.

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

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

* Re: using do_install_append?
  2015-10-22 18:26 using do_install_append? Smith, Daniel W
@ 2015-10-22 18:54 ` Gary Thomas
  2015-10-22 19:06 ` Gary Thomas
  1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2015-10-22 18:54 UTC (permalink / raw)
  To: yocto

On 2015-10-22 12:26, Smith, Daniel W wrote:
> Hello,
>
> This seems like it should be an easy task, but perhaps I’m missing something very basic so it is not working.
>
> I have working recipe that installs the fluxbox window manager.  However I want to customize the default runtime configuration files located in /usr/share/fluxbox.  To do this I
> created fluxbox_1.3.5.bbappend in order to replace the default configuration files with my own.
>
> This file contains the following:
>
> FILESEXTRAPATHS_prepend_poky := "${THISDIR}/files:"

Have you tried leaving off the _poky qualifier?  e.g.
   FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

>
> SRC_URI = "file://apps \
>
>             file://init \
>
>             file://keys \
>
>             file://menu \
>
>             file://overlay \
>
>             file://windowmenu "
>
> #
>
> # Install the customized Fluxbox configuration files.
>
> #
>
> do_install_append() {
>
>    install -m 0644 ${WORKDIR}/apps          ${D}{datadir}/fluxbox/apps
>
>    install -m 0644 ${WORKDIR}/init          ${D}{datadir}/fluxbox/init
>
>    install -m 0644 ${WORKDIR}/keys          ${D}{datadir}/fluxbox/keys
>
>    install -m 0644 ${WORKDIR}/menu          ${D}{datadir}/fluxbox/menu
>
>    install -m 0644 ${WORKDIR}/windowmenu    ${D}{datadir}/fluxbox/windowmenu
>
> }
>
> However now when I bitbake fluxbox it fails to configure:
>
> ERROR: Function failed: fluxbox: LIC_FILES_CHKSUM points to an invalid file: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/git/COPYING
>
> ERROR: Logfile of failure stored in: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/temp/log.do_configure.32643
>
> Log data follows:
>
> | DEBUG: Executing python function sysroot_cleansstate
>
> | DEBUG: Python function sysroot_cleansstate finished
>
> | DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common']
>
> | DEBUG: Executing shell function autotools_preconfigure
>
> | DEBUG: Shell function autotools_preconfigure finished
>
> | DEBUG: Executing python function autotools_copy_aclocals
>
> | DEBUG: Python function autotools_copy_aclocals finished
>
> | DEBUG: Executing shell function do_configure
>
> | NOTE: nothing to configure
>
> | DEBUG: Shell function do_configure finished
>
> | DEBUG: Executing python function do_qa_configure
>
> | NOTE: Checking autotools environment for common misconfiguration
>
> | DEBUG: Python function do_qa_configure finished
>
> | ERROR: Function failed: fluxbox: LIC_FILES_CHKSUM points to an invalid file: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/git/COPYING
>
> ERROR: Task 5 (/export/home/dwsmith/poky-fido-13.0.0/meta-lightwm-master/recipes-fluxbox/fluxbox/fluxbox_1.3.5.bb, do_configure) failed with exit code '1'
>
> NOTE: Tasks Summary: Attempted 793 tasks of which 792 didn't need to be rerun and 1 failed.
>
> Why would adding a do_install_append cause the config to now fail?  What am I missing?  I can remove  fluxbox_1.3.5.bbappend and it works fine, so there is obviously something I’m
> not doing right.
>
> Thanks for nay help you can provide.
>
> -Daniel Smith
>
>
>
> This message and any enclosures are intended only for the addressee. Please
> notify the sender by email if you are not the intended recipient. If you are
> not the intended recipient, you may not use, copy, disclose, or distribute this
> message or its contents or enclosures to any other person and any such actions
> may be unlawful. Ball reserves the right to monitor and review all messages
> and enclosures sent to or from this email address.
>
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: using do_install_append?
  2015-10-22 18:26 using do_install_append? Smith, Daniel W
  2015-10-22 18:54 ` Gary Thomas
@ 2015-10-22 19:06 ` Gary Thomas
  2015-10-22 19:18   ` Smith, Daniel W
  1 sibling, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2015-10-22 19:06 UTC (permalink / raw)
  To: yocto

On 2015-10-22 12:26, Smith, Daniel W wrote:
> Hello,
>
> This seems like it should be an easy task, but perhaps I’m missing something very basic so it is not working.
>
> I have working recipe that installs the fluxbox window manager.  However I want to customize the default runtime configuration files located in /usr/share/fluxbox.  To do this I
> created fluxbox_1.3.5.bbappend in order to replace the default configuration files with my own.
>
> This file contains the following:
>
> FILESEXTRAPATHS_prepend_poky := "${THISDIR}/files:"
>
> SRC_URI = "file://apps \
>
>             file://init \
>
>             file://keys \
>
>             file://menu \
>
>             file://overlay \
>
>             file://windowmenu "

Shouldn't this be SRC_URI_append ?  Otherwise, your .bbappend will be
writing over the SRC_URI from the original recipe.

Also, please CC your replies to the list so that everyone benefits.

>
> #
>
> # Install the customized Fluxbox configuration files.
>
> #
>
> do_install_append() {
>
>    install -m 0644 ${WORKDIR}/apps          ${D}{datadir}/fluxbox/apps
>
>    install -m 0644 ${WORKDIR}/init          ${D}{datadir}/fluxbox/init
>
>    install -m 0644 ${WORKDIR}/keys          ${D}{datadir}/fluxbox/keys
>
>    install -m 0644 ${WORKDIR}/menu          ${D}{datadir}/fluxbox/menu
>
>    install -m 0644 ${WORKDIR}/windowmenu    ${D}{datadir}/fluxbox/windowmenu
>
> }
>
> However now when I bitbake fluxbox it fails to configure:
>
> ERROR: Function failed: fluxbox: LIC_FILES_CHKSUM points to an invalid file: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/git/COPYING
>
> ERROR: Logfile of failure stored in: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/temp/log.do_configure.32643
>
> Log data follows:
>
> | DEBUG: Executing python function sysroot_cleansstate
>
> | DEBUG: Python function sysroot_cleansstate finished
>
> | DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common']
>
> | DEBUG: Executing shell function autotools_preconfigure
>
> | DEBUG: Shell function autotools_preconfigure finished
>
> | DEBUG: Executing python function autotools_copy_aclocals
>
> | DEBUG: Python function autotools_copy_aclocals finished
>
> | DEBUG: Executing shell function do_configure
>
> | NOTE: nothing to configure
>
> | DEBUG: Shell function do_configure finished
>
> | DEBUG: Executing python function do_qa_configure
>
> | NOTE: Checking autotools environment for common misconfiguration
>
> | DEBUG: Python function do_qa_configure finished
>
> | ERROR: Function failed: fluxbox: LIC_FILES_CHKSUM points to an invalid file: /export/home/dwsmith/poky-fido-13.0.0/build/tmp/work/ppc7400-poky-linux/fluxbox/1.3.5-r0/git/COPYING
>
> ERROR: Task 5 (/export/home/dwsmith/poky-fido-13.0.0/meta-lightwm-master/recipes-fluxbox/fluxbox/fluxbox_1.3.5.bb, do_configure) failed with exit code '1'
>
> NOTE: Tasks Summary: Attempted 793 tasks of which 792 didn't need to be rerun and 1 failed.
>
> Why would adding a do_install_append cause the config to now fail?  What am I missing?  I can remove  fluxbox_1.3.5.bbappend and it works fine, so there is obviously something I’m
> not doing right.
>
> Thanks for nay help you can provide.
>
> -Daniel Smith
>
>
>
> This message and any enclosures are intended only for the addressee. Please
> notify the sender by email if you are not the intended recipient. If you are
> not the intended recipient, you may not use, copy, disclose, or distribute this
> message or its contents or enclosures to any other person and any such actions
> may be unlawful. Ball reserves the right to monitor and review all messages
> and enclosures sent to or from this email address.
>
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: using do_install_append?
  2015-10-22 19:06 ` Gary Thomas
@ 2015-10-22 19:18   ` Smith, Daniel W
  0 siblings, 0 replies; 4+ messages in thread
From: Smith, Daniel W @ 2015-10-22 19:18 UTC (permalink / raw)
  To: Gary Thomas, yocto@yoctoproject.org

> 
> On 2015-10-22 12:26, Smith, Daniel W wrote:
> > Hello,
> >
> > This seems like it should be an easy task, but perhaps I'm missing
> something very basic so it is not working.
> >
> > I have working recipe that installs the fluxbox window manager.  However I
> want to customize the default runtime configuration files located in
> /usr/share/fluxbox.  To do this I
> > created fluxbox_1.3.5.bbappend in order to replace the default
> configuration files with my own.
> >
> > This file contains the following:
> >
> > FILESEXTRAPATHS_prepend_poky := "${THISDIR}/files:"
> >
> > SRC_URI = "file://apps \
> >
> >             file://init \
> >
> >             file://keys \
> >
> >             file://menu \
> >
> >             file://overlay \
> >
> >             file://windowmenu "
> 
> Shouldn't this be SRC_URI_append ?  Otherwise, your .bbappend will be
> writing over the SRC_URI from the original recipe.
> 
> Also, please CC your replies to the list so that everyone benefits.
> 
[Smith, Daniel W] 
OK, now we are getting somewhere.  It configures now that I fixed it to append.  That was causing it to never fetch the source so it never actually obtained the license file.   Thanks I knew it had to be something very simple I was missing.

I was also missing '$' before the {datadir}.

-Daniel Smith



This message and any enclosures are intended only for the addressee.  Please 
notify the sender by email if you are not the intended recipient.  If you are 
not the intended recipient, you may not use, copy, disclose, or distribute this 
message or its contents or enclosures to any other person and any such actions 
may be unlawful.  Ball reserves the right to monitor and review all messages 
and enclosures sent to or from this email address.


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

end of thread, other threads:[~2015-10-22 19:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 18:26 using do_install_append? Smith, Daniel W
2015-10-22 18:54 ` Gary Thomas
2015-10-22 19:06 ` Gary Thomas
2015-10-22 19:18   ` Smith, Daniel W

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.