Skip to contentSkip to conversation

packaged-staging not working properly

DISCUSSION Matthieu Poullet 5 participants 7 messages Mar 19, 2009 – Mar 26, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I'd like to use the packaged-staging capability of OE. I'm building the console-image for the BB using the dev branch.

My local.conf is as follow:
DISTRO = "angstrom-2008.1"
TMPDIR = "${OE_HOME}/tmp"
MACHINE = "beagleboard"
ENABLE_BINARY_LOCALE_GENERATION = "1"
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
# TI Tools
TITOOLSDIR = "${OE_HOME}/opt/ti-tools"
TIBIOSDIR = "bios_5_33_02"
TIXDCTOOLSDIR = "xdctools_3_10_03"
TICGTOOLSDIR = "cg6x_6_0_21"

# packaged-staging
INHERIT += "packaged-staging"
DEPLOY_DIR_PSTAGE = "${OE_HOME}/archives"
DL_DIR = "${OE_HOME}/sources"

The first build works 100% resulting in a "archives" dir in "~oe" with the following structure in it:

mpoullet@LU84-mpoullet:~/oe/archives$ find . -type d
.
./angstromglibc-home-mpoullet-oe-tmp-home-mpoullet-oe-tmp
./angstromglibc
./pstaging_lists

and in there there are a lot of ipks all beginning with staging-*.ipk

So far I need to remove the opkg-native package from the DEPLOY_DIR_PSTAGE first to avoid issues during the second build (thanks to kergoth on #oe).
The problem is that it tries to use the staging package of opkg-cl, but opkg-cl wasn't installed yet, so it couldn't be used to install himself?!

Then I remove my tmp dir and start the second build which seems as
fast as light until the last steps:
NOTE: Running task 2247 of 2249 (ID: 10, /home/mpoullet/oe/openembedded/packages/images/console-image.bb,
do_rootfs)
NOTE: package opkg-native-0.1.6+svnr204: started
NOTE: package opkg-native-0.1.6+svnr204-r3: task do_package_stage: started
NOTE: package console-image-1.0: started
NOTE: package console-image-1.0-r0: task do_rootfs: started
ERROR: function do_rootfs failed
ERROR: see log in /home/mpoullet/oe/tmp/work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.29204
NOTE: Task failed:
/home/mpoullet/oe/tmp/work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.29204
NOTE: package console-image-1.0-r0: task do_rootfs: failed
ERROR: TaskFailed event exception, aborting
NOTE: package console-image-1.0: failed
ERROR: Build of
/home/mpoullet/oe/openembedded/packages/images/console-image.bb
do_rootfs failed
NOTE: package opkg-native-0.1.6+svnr204-r3: task do_package_stage: completed
NOTE: package opkg-native-0.1.6+svnr204: completed
ERROR: Task 10 (/home/mpoullet/oe/openembedded/packages/images/console-image.bb, do_rootfs) failed
NOTE: Waiting for 1 active tasks to finish
NOTE: 1: /home/mpoullet/oe/openembedded/packages/opkg/opkg-native_svn.bb,
do_package_stage (29203)
NOTE: Tasks Summary: Attempted 2245 tasks of which 2024 didn't need to
be rerun and 1 failed.
ERROR: '/home/mpoullet/oe/openembedded/packages/images/console-image.bb' failed
NOTE: build 200903192216: completed

mpoullet@LU84-mpoullet:~/oe$ tail
/home/mpoullet/oe/tmp/work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.29204
+ for devtable in /home/mpoullet/oe/openembedded/files/device_table-minimal.txt
+ makedevs -r /home/mpoullet/oe/tmp/rootfs -D
/home/mpoullet/oe/openembedded/files/device_table-minimal.txt
+ rootfs_ipk_do_rootfs
+ set -x
+ package_update_index_ipk
+ set -x
+ ipkgarchs='all any noarch arm  armv4 armv4t armv5te armv6 armv7
armv7a beagleboard'
+ '[' '!' -z '' ']'
+ touch /home/mpoullet/oe/tmp/deploy/glibc/ipk/Packages
touch: cannot touch `/home/mpoullet/oe/tmp/deploy/glibc/ipk/Packages':
No such file or directory

At this point there's indeed no ipk dir there... but why the hell is he looking for them here?!

So I've tried to help him:
mkdir -p /home/mpoullet/oe/tmp/deploy/glibc/ipk/

And then the next issue is:
NOTE: package console-image-1.0: completed
ERROR: function do_rootfs failed
ERROR: see log in /home/mpoullet/oe/tmp/work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.29603
NOTE: Task failed:
/home/mpoullet/oe/tmp/work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.29603
NOTE: package console-image-1.0-r0: task do_rootfs: failed
ERROR: TaskFailed event exception, aborting
NOTE: package console-image-1.0: failed
ERROR: Build of
/home/mpoullet/oe/openembedded/packages/images/console-image.bb
do_rootfs failed
ERROR: Task 10 (/home/mpoullet/oe/openembedded/packages/images/console-image.bb, do_rootfs) failed
NOTE: Tasks Summary: Attempted 2247 tasks of which 2246 didn't need to
be rerun and 1 failed.
ERROR: '/home/mpoullet/oe/openembedded/packages/images/console-image.bb' failed
NOTE: build 200903192246: completed

mpoullet@LU84-mpoullet:~/oe$ tail
/home/mpoullet/oe/tmp/work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.29603
 * Cannot find package psplash-zap.
 * Cannot find package initscripts.
 * Cannot find package udev.
 * Cannot find package sysvinit.
 * Cannot find package sysvinit-pidof.
 * Cannot find package tinylogin.
 * Cannot find package opkg-nogpg.
 * Cannot find package angstrom-version.
 * Cannot find package angstrom-feed-configs.
 * Cannot find package opkg-collateral.

and indeed:

mpoullet@LU84-mpoullet:~/oe$ ./tmp/staging/i686-linux/usr/bin/opkg-cl
-f /home/mpoullet/oe/tmp/staging/i686-linux/etc/opkg.conf -o
/home/mpoullet/oe/tmp/rootfs install task-base-extended psplash-zap
initscripts udev sysvinit sysvinit-pidof tinylogin opkg-nogpg
angstrom-version angstrom-feed-configs opkg-collateral
Collected errors:
 * Cannot find package task-base-extended.
 * Cannot find package psplash-zap.
 * Cannot find package initscripts.
 * Cannot find package udev.
 * Cannot find package sysvinit.
 * Cannot find package sysvinit-pidof.
 * Cannot find package tinylogin.
 * Cannot find package opkg-nogpg.
 * Cannot find package angstrom-version.
 * Cannot find package angstrom-feed-configs.
 * Cannot find package opkg-collateral.
mpoullet@LU84-mpoullet:~/oe$ cat
/home/mpoullet/oe/tmp/staging/i686-linux/etc/opkg.conf
src oe file:/home/mpoullet/oe/tmp/deploy/glibc/ipk
arch all 1
arch any 6
arch noarch 11
arch arm 16
arch armv4 21
arch armv4t 26
arch armv5te 31
arch armv6 36
arch armv7 41
arch armv7a 46
arch beagleboard 51

But the path here is wrong afaiui?! because:

mpoullet@LU84-mpoullet:~/oe$ ls -l /home/mpoullet/oe/tmp/deploy/glibc/ipk/
insgesamt 4
-rw-r--r-- 1 mpoullet mpoullet  0 2009-03-19 22:47 Packages
-rw-r--r-- 1 mpoullet mpoullet  0 2009-03-19 22:47 Packages.filelist
-rw-r--r-- 1 mpoullet mpoullet 20 2009-03-19 22:47 Packages.gz
-rw-r--r-- 1 mpoullet mpoullet  0 2009-03-19 22:47 Packages.stamps

If I do a complete rebuild without packaged-staging, that's true that there are all there:

mpoullet@LU84-mpoullet:~/oe/_tmp0/deploy/glibc/ipk$ ll
insgesamt 396K
drwxr-xr-x 3 mpoullet mpoullet 4,0K 2009-02-22 00:13 all
drwxr-xr-x 3 mpoullet mpoullet 260K 2009-03-16 23:00 armv7a
drwxr-xr-x 3 mpoullet mpoullet 116K 2009-03-19 21:35 beagleboard
drwxr-xr-x 2 mpoullet mpoullet 4,0K 2009-01-14 02:56 i686
-rw-r--r-- 1 mpoullet mpoullet    0 2009-02-22 00:13 Packages
-rw-r--r-- 1 mpoullet mpoullet    0 2009-02-22 00:13 Packages.filelist
-rw-r--r-- 1 mpoullet mpoullet   20 2009-02-22 00:13 Packages.gz
-rw-r--r-- 1 mpoullet mpoullet    0 2009-02-22 00:13 Packages.stamps

I hope someone could/would help.

Regards,
Matthieu.

#1 lore raw
Quoted 6 lines · Matthieu Poullet

Hi,

I'd like to use the packaged-staging capability of OE. I'm building the console-image for the BB using the dev branch.

DEPLOY_DIR_PSTAGE = "${OE_HOME}/archives"

Here you save *only* the pstage packages

Quoted 2 lines

touch: cannot touch `/home/mpoullet/oe/tmp/deploy/glibc/ipk/Packages':
No such file or directory

And here it wants to use something from deploy outside of PSTAGE.

This intented behaviour, you need to save the complete DEPLOY_DIR if you want packaged-staging to work as you expect.

regards,

Koen

#2 lore raw
Quoted 7 lines · Koen Kooi
Quoted 5 lines · Matthieu Poullet

Hi,

I'd like to use the packaged-staging capability of OE. I'm building the console-image for the BB using the dev branch.

Quoted 8 lines
Quoted 1 line

DEPLOY_DIR_PSTAGE = "${OE_HOME}/archives"

Here you save *only* the pstage packages

Quoted 2 lines

touch: cannot touch `/home/mpoullet/oe/tmp/deploy/glibc/ipk/Packages':
No such file or directory

And here it wants to use something from deploy outside of PSTAGE.

That doesn't make any sense. Packages should be created when needed in the image/rootfs creation process.

Quoted 2 lines

This intented behaviour, you need to save the complete DEPLOY_DIR if you want packaged-staging to work as you expect.

I've been doing builds saving only the pstage packages repeatedly for the past week. I have hit the problem he's hit, but I can't repro it anymore. Builds are working fine, even images.

Signature · 7 lines
Chris Larson
clarson at kergoth dot com
clarson at mvista dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Software Engineer
MontaVista Software, Inc.
#3 lore raw
Quoted 7 lines · Chris Larson
Quoted 6 lines · Koen Kooi
Quoted 5 lines · Matthieu Poullet

Hi,

I'd like to use the packaged-staging capability of OE. I'm building the console-image for the BB using the dev branch. DEPLOY_DIR_PSTAGE = "${OE_HOME}/archives"

Quoted 8 lines
Quoted 5 lines

Here you save *only* the pstage packages

Quoted 2 lines

touch: cannot touch `/home/mpoullet/oe/tmp/deploy/glibc/ipk/Packages':
No such file or directory

And here it wants to use something from deploy outside of PSTAGE.

That doesn't make any sense. Packages should be created when needed in the image/rootfs creation process.

Not if there are pstage packages present for that recipe.

regards,

Koen

#4 lore raw

Unfortunately I somehow confirm the issue with virtual/kernel: I moved DEPLOY_DIR = and now $srcfle = $destfile in package_stagefile_shell() .

DEPLOY_DIR = "/oe/build/deploy/${ANGSTROMLIBC}"

NOTE: package linux-rp-2.6.26-r9: task do_deploy: started
ERROR: function do_deploy failed
ERROR: log data follows (/oe/build/tmp/angstrom/work/c7x0-angstrom-linux-gnueabi/linux-rp-2.6.26-r9/temp/log.do_deploy.1405) | cp: `/oe/build/deploy/glibc/images/c7x0/zImage-2.6.26-r9-c7x0.bin'
and `/oe/build/deploy/glibc/images/c7x0/zImage-2.6.26-r9-c7x0.bin' are
the same file

base.bbclass
package_stagefile_shell()
...

destfile=echo $srcfile | sed s#${TMPDIR}#${PSTAGE_TMPDIR_STAGE}#

Unsure if it's Angstrom-specific or not.

Regards

Andrea

#5 lore raw
Quoted 14 lines · Andrea Adami

Unfortunately I somehow confirm the issue with virtual/kernel: I moved DEPLOY_DIR = and now $srcfle = $destfile in package_stagefile_shell() .

DEPLOY_DIR = "/oe/build/deploy/${ANGSTROMLIBC}"

NOTE: package linux-rp-2.6.26-r9: task do_deploy: started
ERROR: function do_deploy failed
ERROR: log data follows (/oe/build/tmp/angstrom/work/c7x0-angstrom-linux-gnueabi/linux-rp-2.6.26-r9/temp/log.do_deploy.1405) | cp: `/oe/build/deploy/glibc/images/c7x0/zImage-2.6.26-r9-c7x0.bin'
and `/oe/build/deploy/glibc/images/c7x0/zImage-2.6.26-r9-c7x0.bin' are
the same file

Quoted 7 lines

base.bbclass
package_stagefile_shell()
...

destfile=echo $srcfile | sed s#${TMPDIR}#${PSTAGE_TMPDIR_STAGE}#

Unsure if it's Angstrom-specific or not.

It's a known issue - http://bugs.openembedded.net/show_bug.cgi?id=4580

Signature · 1 line
Denys