All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

* Re: Packaging problem.
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Rob Kramer @ 2007-07-19 15:28 UTC (permalink / raw)
  To: openembedded-devel

Or more succinctly put:

--------
BB>> peek base-passwd FILES_base-passwd
None
BB>> peek base-passwd FILES_base-passwd-doc
 /usr/share/doc
--------

It seems all my packages are incompletely packaged or missing due to this.
What could cause the FILES_${PN} from bitbake.conf to be unset?

Cheers,

    Rob




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

* Re: Packaging problem.
  2007-07-19 15:28 ` Rob Kramer
@ 2007-07-19 17:22   ` Paul Sokolovsky
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Sokolovsky @ 2007-07-19 17:22 UTC (permalink / raw)
  To: Rob Kramer; +Cc: openembedded-devel

Hello Rob,

Thursday, July 19, 2007, 6:28:15 PM, you wrote:

> Or more succinctly put:

> --------
BB>>> peek base-passwd FILES_base-passwd
> None
BB>>> peek base-passwd FILES_base-passwd-doc
>  /usr/share/doc
> --------

> It seems all my packages are incompletely packaged or missing due to this.
> What could cause the FILES_${PN} from bitbake.conf to be unset?

  Whatever it is, you at least know good "workaround" (depends, I'd
assume that interactive mode is actually internal debugging/workaround
mode) - use bitbake from command line.

  As for issue, suggested is to submit bugreport with all the details
you had in the last mail.

> Cheers,

>     Rob


-- 
Best regards,
 Paul                            mailto:pmiscml@gmail.com




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

* Re: Packaging problem.
  2007-07-18  6:54 Rob Kramer
  2007-07-19 15:28 ` Rob Kramer
@ 2007-10-09  0:37 ` Hasjim Williams
  1 sibling, 0 replies; 7+ messages in thread
From: Hasjim Williams @ 2007-10-09  0:37 UTC (permalink / raw)
  To: openembedded-devel

Hi all,

I'm still having problems building an image using interactive mode.  Has
anyone looked at the bug below since July???

As mentioned before, images build fine using bitbake from the command
line, but not using "bitbake -i" ...  Does anyone else using interactive
mode to build images ???

Thanks

Hasjim

On Wed, 18 Jul 2007 14:54:07 +0800, "Rob Kramer" <robk@starhub.net.sg>
said:
> 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
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



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

* 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

* Re: Packaging problem
  2014-10-28 14:03 Packaging problem Gary Thomas
@ 2014-10-28 14:15 ` Anders Darander
  2014-10-28 14:30   ` Gary Thomas
  0 siblings, 1 reply; 7+ messages in thread
From: Anders Darander @ 2014-10-28 14:15 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

* Gary Thomas <gary@mlbassoc.com> [141028 15:06]:
> 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"
...
> It all looks correct to me, but the -tests package is empty.

I'd guess that the files get picked up in ${PN}, right?

If so, you'll likely need to prepend PACKAGES instead of appending to
it: 
PACKAGES =+ " ${PN}-tests"

The first package in PACKAGES that can grab a file will do that...

Hopefully this will help you...

Cheers,
Anders
-- 
Anders Darander
ChargeStorm AB / eStorm AB


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

* Re: Packaging problem
  2014-10-28 14:15 ` Anders Darander
@ 2014-10-28 14:30   ` Gary Thomas
  0 siblings, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2014-10-28 14:30 UTC (permalink / raw)
  To: yocto

On 2014-10-28 08:15, Anders Darander wrote:
> * Gary Thomas <gary@mlbassoc.com> [141028 15:06]:
>> 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"
> ...
>> It all looks correct to me, but the -tests package is empty.
>
> I'd guess that the files get picked up in ${PN}, right?
>
> If so, you'll likely need to prepend PACKAGES instead of appending to
> it:
> PACKAGES =+ " ${PN}-tests"
>
> The first package in PACKAGES that can grab a file will do that...
>
> Hopefully this will help you...

Perfect, that fixed it :-)

Thanks

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


^ 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.