Skip to contentSkip to conversation

Augmenting base files

DISCUSSION Gary Thomas 2 participants 4 messages Aug 3, 2011

lore
Share & tools
lore
#0 lore raw

I'd like to add some additional files to my build. These are simple scripts, etc, and it makes sense to include them as part of the base-files package for my platform.

I tried to use the attached .bbappend file for this. Sadly, after
the package fetch/unpack/patch, it has virtually nothing in it
and the build fails miserably.
ERROR: Function 'base-files: LIC_FILES_CHKSUM points to invalid file: licenses/GPL-2' failed

Looking at the work tree:

  $ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69.1/
  license-destdir  my_script  temp

Without the .bbappend, I see this in the work tree:

  $ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69
  deploy-ipks  host.conf  issue            licenses       package         profile   share   temp
  filesystems  image      issue.net        motd           packages-split  pseudo    shells  usbd
  fstab        inputrc    license-destdir  nsswitch.conf  pkgdata         rotation  shlibs

Note: I put my script in
my-layer/packages/misc/base-files-3.0.14/mytarget/my_script

If I replace this line in the .bbappend
FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
with these (the way I was told to do this when .bbappend first came available):
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/${MACHINE}"], d)}:"
then the recipe works.

Obviously, I've done something major to upset things and/or I don't understand FILESEXTRAPATHS which I think should just add to the current list of places to satisfy SRC_URI.

Ideas what I've done wrong?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

#
# Just tell BitBake where to find my component files #
FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}" PR .= ".1"

SRC_URI_mytarget_append = "\
    file://my_script \

"

do_install_mytarget_append () {
    install -m 0755 ${WORKDIR}/my_script ${D}${SYSCONFDIR}/my_script
}
#1 lore raw
Quoted 22 lines · Gary Thomas

I'd like to add some additional files to my build. These are simple scripts, etc, and it makes sense to include them as part of the base-files package for my platform.

I tried to use the attached .bbappend file for this. Sadly, after
the package fetch/unpack/patch, it has virtually nothing in it
and the build fails miserably.
ERROR: Function 'base-files: LIC_FILES_CHKSUM points to invalid file: licenses/GPL-2' failed

Looking at the work tree:

$ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69.1/
license-destdir my_script temp

Without the .bbappend, I see this in the work tree:

$ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69
deploy-ipks host.conf issue licenses package profile share temp
filesystems image issue.net motd packages-split pseudo shells usbd
fstab inputrc license-destdir nsswitch.conf pkgdata rotation shlibs

Note: I put my script in my-layer/packages/misc/base-files-3.0.14/mytarget/my_script

Quoted 6 lines

If I replace this line in the .bbappend
FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
with these (the way I was told to do this when .bbappend first came available):
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/${MACHINE}"], d)}:" then the recipe works.

Sorry, this doesn't seem to be true - it still has problems either way.

The only way I've been able to get this to work at all is by changing SRC_URI

  SRC_URI += "\
      file://my_script \

"
No other form seems to work.

A follow up problem is that my script gets installed, but doesn't seem to be
packaged. I get a warning:
WARNING: For recipe base-files, the following files were installed but not shipped in any package:
WARNING: my_script
I thought that this line in the main recipe should include my file:
FILES_${PN} = "/"
How do I get my script to be included?

Note: this is becoming such a pain, I'll probably just write a special recipe for it even though I think it makes sense to do it like I've been attempting...

Quoted 13 lines

Obviously, I've done something major to upset things and/or I don't understand FILESEXTRAPATHS which I think should just add to the current list of places to satisfy SRC_URI.

Ideas what I've done wrong?

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#2 lore raw
Quoted 42 lines · Gary Thomas
Quoted 23 lines · Gary Thomas

I'd like to add some additional files to my build. These are simple scripts, etc, and it makes sense to include them as part of the base-files package for my platform.

I tried to use the attached .bbappend file for this. Sadly, after the package fetch/unpack/patch, it has virtually nothing in it and the build fails miserably.
ERROR: Function 'base-files: LIC_FILES_CHKSUM points to invalid file:
licenses/GPL-2' failed

Looking at the work tree:

$ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69.1/
license-destdir my_script temp

Without the .bbappend, I see this in the work tree:

$ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69
deploy-ipks host.conf issue licenses package profile share temp
filesystems image issue.net motd packages-split pseudo shells usbd
fstab inputrc license-destdir nsswitch.conf pkgdata rotation shlibs

Note: I put my script in my-layer/packages/misc/base-files-3.0.14/mytarget/my_script

Quoted 8 lines

If I replace this line in the .bbappend
FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
with these (the way I was told to do this when .bbappend first came available):
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/${MACHINE}"], d)}:" then the recipe works.

Sorry, this doesn't seem to be true - it still has problems either way.

The only way I've been able to get this to work at all is by changing SRC_URI
SRC_URI += "\
file://my_script \
"
No other form seems to work.

Quoted 10 lines

A follow up problem is that my script gets installed, but doesn't seem to be
packaged. I get a warning:
WARNING: For recipe base-files, the following files were installed but not shipped in any package:
WARNING: my_script
I thought that this line in the main recipe should include my file:
FILES_${PN} = "/"
How do I get my script to be included?

If it's simply your script, then you could try

FILES_${PN} += "my_script"

Quoted 5 lines

Note: this is becoming such a pain, I'll probably just write a special recipe
for it even though I think it makes sense to do it like I've been attempting...

It does make sense, not sure what's going on, but you could file a bug

Sau!

Quoted 16 lines
Quoted 15 lines

Obviously, I've done something major to upset things and/or I don't understand
FILESEXTRAPATHS which I think should just add to the current list of places to
satisfy SRC_URI.

Ideas what I've done wrong?

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

#3 lore raw
Quoted 53 lines · Saul Wold
Quoted 42 lines · Gary Thomas
Quoted 23 lines · Gary Thomas

I'd like to add some additional files to my build. These are simple scripts, etc, and it makes sense to include them as part of the base-files package for my platform.

I tried to use the attached .bbappend file for this. Sadly, after the package fetch/unpack/patch, it has virtually nothing in it and the build fails miserably.
ERROR: Function 'base-files: LIC_FILES_CHKSUM points to invalid file:
licenses/GPL-2' failed

Looking at the work tree:

$ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69.1/
license-destdir my_script temp

Without the .bbappend, I see this in the work tree:

$ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69
deploy-ipks host.conf issue licenses package profile share temp
filesystems image issue.net motd packages-split pseudo shells usbd
fstab inputrc license-destdir nsswitch.conf pkgdata rotation shlibs

Note: I put my script in my-layer/packages/misc/base-files-3.0.14/mytarget/my_script

Quoted 8 lines

If I replace this line in the .bbappend
FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
with these (the way I was told to do this when .bbappend first came available):
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/${MACHINE}"], d)}:" then the recipe works.

Sorry, this doesn't seem to be true - it still has problems either way.

The only way I've been able to get this to work at all is by changing SRC_URI
SRC_URI += "\
file://my_script \
"
No other form seems to work.

Quoted 10 lines

A follow up problem is that my script gets installed, but doesn't seem to be
packaged. I get a warning:
WARNING: For recipe base-files, the following files were installed but not shipped in any package:
WARNING: my_script
I thought that this line in the main recipe should include my file:
FILES_${PN} = "/"
How do I get my script to be included?

Quoted 3 lines

If it's simply your script, then you could try

FILES_${PN} += "my_script"

Sorry, but that doesn't help. The resulting image is very confusing:

  $ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69.1/image/
  my_script
which doesn't match up at all where my recipe said to put it.
Quoted 7 lines
Quoted 6 lines

Note: this is becoming such a pain, I'll probably just write a special recipe
for it even though I think it makes sense to do it like I've been attempting...

It does make sense, not sure what's going on, but you could file a bug

Done - http://bugzilla.pokylinux.org/show_bug.cgi?id=1324

Quoted 16 lines
Quoted 16 lines
Quoted 15 lines

Obviously, I've done something major to upset things and/or I don't understand
FILESEXTRAPATHS which I think should just add to the current list of places to
satisfy SRC_URI.

Ideas what I've done wrong?

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------