All of lore.kernel.org
 help / color / mirror / Atom feed
* Packaging problem
@ 2014-10-28 14:03 Gary Thomas
  2014-10-28 14:15 ` Anders Darander
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2014-10-28 14:03 UTC (permalink / raw)
  To: Yocto Project

I'm trying to split out some tests from a packages by adding these lines the recipe:
   PACKAGES += " ${PN}-tests"
   FILES_${PN}-tests = "${libdir}/python*/site-packages/matplotlib/test*"
   RDEPENDS_${PN}-tests += " python-nose"

This expands (via -e) to:
   # $FILES_python-matplotlib-tests
   #   rename from FILES_${PN}-tests data.py:170 [expandKeys]
   #     "${libdir}/python*/site-packages/matplotlib/test*"
   FILES_python-matplotlib-tests="/usr/lib/python*/site-packages/matplotlib/test*"

When I look at the installed image, I see this:
   # ls /usr/lib/python*/site-packages/matplotlib/test*
   /usr/lib/python2.7/site-packages/matplotlib/testing:
   __init__.py   compare.pyc     image_util.py   noseclasses.py
   __init__.pyc  decorators.py   image_util.pyc  noseclasses.pyc
   compare.py    decorators.pyc  jpl_units

   /usr/lib/python2.7/site-packages/matplotlib/tests:
   __init__.py                test_colorbar.py         test_png.py
   __init__.pyc               test_colorbar.pyc        test_png.pyc
   baseline_images            test_colors.py           test_quiver.py
            ...

It all looks correct to me, but the -tests package is empty.

I'm sure I'm making some silly/rookie mistake.  Any pointers?

Thanks

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


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Packaging problem.
@ 2007-07-18  6:54 Rob Kramer
  2007-07-19 15:28 ` Rob Kramer
  2007-10-09  0:37 ` Hasjim Williams
  0 siblings, 2 replies; 7+ messages in thread
From: Rob Kramer @ 2007-07-18  6:54 UTC (permalink / raw)
  To: openembedded-devel

Hi all,


I have a problem with my homebrew image, in that it doesn't create several
packages, which results in dependency failures in do_rootfs. I'm using
bitbake 1.8 svn head.

-------------
BB>> build vides-image
SHELL: Building vides-image

<big snip>

| log_check:
Using /bulk/home/rob/oe/dev/build-epia/tmp/work/vides-image-1.0-r0/temp/log.do_rootfs.4203
as logfile
| log_check: There were error messages in the logfile
| log_check: Matched keyword: [ERR]
|
| Successfully terminated.
| Collected errors:
| ERROR: Cannot satisfy the following dependencies for task-base:
|        base-passwd update-rc.d initscripts modutils-initscripts netbase
update-alternatives update-rc.d update-rc.d tinylogin update-rc.d
sysfsutils module-init-tools acpid keymaps hdparm e2fsprogs
| ERROR: Cannot satisfy the following dependencies for task-vides-linux:
|        base-passwd initscripts netbase sysfsutils setserial tinylogin
modutils-initscripts rsync
| ERROR: Cannot satisfy the following dependencies for task-vides-base:
|        aumix bash update-rc.d ethtool rsync bzip2
-------------

On further investigation I found out that bitbake doesn't create ipk
packages for these missing deps. Let's take base-passwd; during do_package,
there's a problem:

-------------
NOTE: the following files were installed but not shipped in any package:
NOTE:   /usr/share/man/pl/man8/update-passwd.8.gz
NOTE:   /usr/share/man/man8/update-passwd.8.gz
NOTE:   /usr/share/base-passwd/passwd.master
NOTE:   /usr/share/base-passwd/group.master
NOTE:   /usr/sbin/update-passwd
NOTE:   /usr/sbin/.debug/update-passwd
<snip>
NOTE: Not creating empty archive for base-passwd-3.5.9-r2
-------------

I added a debug statement to see what it is trying to package:

-------------
package.bbclass:404

                filesvar = bb.data.getVar('FILES', localdata, 1) or ""
                files = filesvar.split()
+               bb.note("ROB: pkg: '%s', files: '%s'" % (pkg, filesvar))
                cleandirs = []
-------------

The interesting thing is that in bitbake file-mode everything works, but in
interactive mode it fails (I cleaned before each command):

-------------
[wrobbie] ~/oe/dev/build-epia> bitbake -cpackage -b
~/oe/dev/org.openembedded.dev/packages/base-passwd/base-passwd_3.5.9.bb
NOTE: package base-passwd-3.5.9: started
<snip>
NOTE: package base-passwd-3.5.9-r2: task do_install: started
NOTE: package base-passwd-3.5.9-r2: task do_install: completed
NOTE: package base-passwd-3.5.9-r2: task do_package: started
NOTE: ROB: pkg: 'base-passwd-dbg',
files: '/usr/bin/.debug /usr/sbin/.debug /usr/libexec/.debug /usr/lib/.debug /bin/.debug /sbin/.debug /lib/.debug /usr/lib/base-passwd/.debug /usr/lib/matchbox-panel/.debug'
NOTE: ROB: pkg: 'base-passwd',
files: '/usr/bin/* /usr/sbin/* /usr/libexec/* /usr/lib/lib*.so.* /etc /usr/com /var /bin/* /sbin/* /lib/*.so* /usr/share/base-passwd /usr/lib/base-passwd/* /usr/share/pixmaps /usr/share/applications /usr/share/idl /usr/share/omf /usr/share/sounds /usr/lib/bonobo/servers'
-------------


-------------
BB>> build base-passwd
SHELL: This command needs to parse bbfiles...
NOTE: Handling BitBake files: \ (3891/3891) [100 %]
NOTE: Parsing finished. 3680 cached, 0 parsed, 211 skipped, 783 masked.

SHELL: Building base-passwd
NOTE: Resolving missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 218 of 229 (ID:
9, /home/rob/oe/dev/org.openembedded.dev/packages/base-passwd/base-passwd_3.5.9.bb,
do_fetch)

<snip>

NOTE: Running task 225 of 229 (ID:
1, /home/rob/oe/dev/org.openembedded.dev/packages/base-passwd/base-passwd_3.5.9.bb,
do_install)
NOTE: package base-passwd-3.5.9: started
NOTE: package base-passwd-3.5.9-r2: task do_install: started
NOTE: package base-passwd-3.5.9-r2: task do_install: completed
NOTE: package base-passwd-3.5.9: completed
NOTE: Running task 226 of 229 (ID:
5, /home/rob/oe/dev/org.openembedded.dev/packages/base-passwd/base-passwd_3.5.9.bb,
do_package)
NOTE: package base-passwd-3.5.9: started
NOTE: package base-passwd-3.5.9-r2: task do_package: started
NOTE: ROB: pkg: 'base-passwd-dbg', files: ''
NOTE: ROB: pkg: 'base-passwd', files: ''
NOTE: ROB: pkg: 'base-passwd-doc', files: ' /usr/share/doc'
NOTE: ROB: pkg: 'base-passwd-dev', files: ''
NOTE: ROB: pkg: 'base-passwd-locale', files: ''
NOTE: the following files were installed but not shipped in any package:
NOTE:   /usr/share/man/pl/man8/update-passwd.8.gz
NOTE:   /usr/share/man/man8/update-passwd.8.gz
NOTE:   /usr/share/base-passwd/passwd.master
NOTE:   /usr/share/base-passwd/group.master
NOTE:   /usr/sbin/update-passwd
NOTE:   /usr/sbin/.debug/update-passwd
NOTE: package base-passwd-3.5.9-r2: task do_package: completed
NOTE: package base-passwd-3.5.9: completed
NOTE: Running task 227 of 229 (ID:
7, /home/rob/oe/dev/org.openembedded.dev/packages/base-passwd/base-passwd_3.5.9.bb,
do_package_write)
NOTE: package base-passwd-3.5.9: started
NOTE: package base-passwd-3.5.9-r2: task do_package_write: started
NOTE: Not creating empty archive for base-passwd-dbg-3.5.9-r2
NOTE: Not creating empty archive for base-passwd-3.5.9-r2
Packaged contents of base-passwd-doc
into /bulk/home/rob/oe/dev/build-epia/tmp/deploy/ipk/i586/base-passwd-doc_3.5.9-r2_i586.ipk
NOTE: Not creating empty archive for base-passwd-dev-3.5.9-r2
NOTE: Not creating empty archive for base-passwd-locale-3.5.9-r2
NOTE: package base-passwd-3.5.9-r2: task do_package_write: completed
NOTE: package base-passwd-3.5.9: completed
-------------


So, it seems the FILES variable in package.bbclass:404 is not set properly
in the case of interactive mode. I can't find where FILES is set anyway;
the rest of the class uses FILES_${PN}.

Any hints at what I should be looking at?

Cheers!

    Rob




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

end of thread, other threads:[~2014-10-28 14:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 14:03 Packaging problem Gary Thomas
2014-10-28 14:15 ` Anders Darander
2014-10-28 14:30   ` Gary Thomas
  -- strict thread matches above, loose matches on Subject: below --
2007-07-18  6:54 Rob Kramer
2007-07-19 15:28 ` Rob Kramer
2007-07-19 17:22   ` Paul Sokolovsky
2007-10-09  0:37 ` Hasjim Williams

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.