Skip to contentSkip to conversation

Deploy binaries not compiled for target / PACKAGE_STRIP = "no" does not work?

DISCUSSION Robert Budde 2 participants 2 messages Feb 20, 2012

lore
Share & tools
lore
#0 lore raw

Hi!

I am trying to write a recipe for packaging "webmin". The web-interface for system administration is written entirely in PERL, therefore it "just" has to be copied to the right directory (and some conf-files have to be generated). Right now the recipe should download the right archive and copy the files to the right directory. As the archive contains precompiled binaries the "strip"-operations in do_package() fail!? I tried to get rid of it by 'PACKAGE_STRIP = "no"', but that does not work.

webmin_1.580.bb: http://pastebin.com/7T9duc7j

webmin.inc: http://pastebin.com/ZUcqGSGF

NOTE: Preparing runqueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

NOTE: Running task 995 of 1324 (ID: 9, /angstrom/setup-scripts/meta-omnigateipes/webmin/webmin_1.580.bb, do_package)

NOTE: package webmin-1.580-r3.0: task do_package: Started

ERROR: runstrip: ''arm-angstrom-linux-gnueabi-strip' --remove-section=.comme-remove-section=.note '/angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglwork/armv7a-angstrom-l inux-gnueabi/webmin-1.580-r3.0/package/usr/share/webmiunt/freebsd-mounts-3'' strip command failed

ERROR: runstrip: ''arm-angstrom-linux-gnueabi-strip' --remove-section=.comme-remove-section=.note --strip-unneeded '/angstrom/setup-scripts/build/tmp-anom_2010_x-eglibc/work/armv7a-angstrom-l inux-gnueabi/webmin-1.580-r3.0/packagr/share/webmin/acl/Authen-SolarisRBAC-0 .1/blib/arch/auto/Authen/SolarisRBAC/risRBAC.so'' strip command failed

ERROR: runstrip: ''arm-angstrom-linux-gnueabi-strip' --remove-section=.comme-remove-section=.note '/angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglwork/armv7a-angstrom-l inux-gnueabi/webmin-1.580-r3.0/package/usr/share/webmiunt/freebsd-mounts-4'' strip command failed

ERROR: runstrip: ''arm-angstrom-linux-gnueabi-strip' --remove-section=.comme-remove-section=.note '/angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglwork/armv7a-angstrom-l inux-gnueabi/webmin-1.580-r3.0/package/usr/share/webmiunt/freebsd-mounts-5'' strip command failed

Any ideas? Is there an alternative to tell bitbake/oe just to deploy the files?

Best regards,

Robert

#1 lore raw
Quoted 1 line · On Monday 20 February 2012 12:05:48 Robert Budde wrote:

I am trying to write a recipe for packaging "webmin".

Ah, well the good news is I did this already :) :

http://git.yoctoproject.org/cgit/cgit.cgi/meta-baryon/tree/recipes-
extended/webmin/

There might be some tweaking required as we turned off a few things and applied some minor customisations, but it builds and works.

Quoted 7 lines

The web-interface for
system administration is written entirely in PERL, therefore it "just" has to be copied to the right directory (and some conf-files have to be generated). Right now the recipe should download the right archive and copy the files to the right directory. As the archive contains precompiled binaries the "strip"-operations in do_package() fail!? I tried to get rid of it by 'PACKAGE_STRIP = "no"', but that does not work.

To turn off stripping you would do INHIBIT_PACKAGE_STRIP ="1", however for something like this where there is nothing architecture-specific you would do "inherit allarch" which does this for you among other things. However, the precompiled binaries the errors refer to are actually not needed and the recipes I link to above just delete them before packaging.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre