http://bugs.openembedded.org/show_bug.cgi?id=1182





------- Comment #1 from [EMAIL PROTECTED]  2006-07-16 22:55 -------
The patch below seems to fix the problem, but we should probably include the
RUNSTRIP part into this new PACKAGESTRIPFUNCS variable somehow...

--- org.openembedded.dev/classes/package.bbclass.orig   2006-07-17
07:55:54.000000000 +0200
+++ org.openembedded.dev/classes/package.bbclass        2006-07-17
07:53:54.000000000 +0200
@@ -199,10 +199,12 @@
               oenote "runstrip: skip $1"
       fi
       return $st
 }

+PACKAGESTRIPFUNCS = ""
+
 python populate_packages () {
       import glob, stat, errno, re

       workdir = bb.data.getVar('WORKDIR', d, 1)
       if not workdir:
@@ -302,10 +304,13 @@
                       from bb import build
                       # strip
                       bb.data.setVar('RUNSTRIP', '\tlocal
st\n\tst=0\n%s\treturn $st' % stripfunc, localdata)
                       bb.data.setVarFlag('RUNSTRIP', 'func', 1, localdata)
                       bb.build.exec_func('RUNSTRIP', localdata)
+               if (bb.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'):
+                       for f in (bb.data.getVar('PACKAGESTRIPFUNCS',
d, 1) or '').split():
+                               bb.build.exec_func(f, localdata)
               del localdata
       os.chdir(workdir)

       unshipped = []
       for root, dirs, files in os.walk(dvar):
--- org.openembedded.dev/classes/module_strip.bbclass.orig
2006-07-17 07:54:32.000000000 +0200
+++ org.openembedded.dev/classes/module_strip.bbclass   2006-07-17
08:00:14.000000000 +0200
@@ -1,7 +1,9 @@
 #DEPENDS_append = " module-strip"

+PACKAGESTRIPFUNCS += "do_strip_modules"
+
 do_strip_modules () {
       for p in ${PACKAGES}; do
               if test -e ${WORKDIR}/install/$p/lib/modules; then
                       modules="`find
${WORKDIR}/install/$p/lib/modules -name \*${KERNEL_OBJECT_SUFFIX}`"
                       if [ -n "$modules" ]; then
@@ -10,9 +12,6 @@
                       fi
               fi
       done
 }

-python do_package_append () {
-       if (bb.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'):
-               bb.build.exec_func('do_strip_modules', d)
-}
+EXPORT_FUNCTIONS do_strip_modules


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to