[OE-core] [PATCH] package.bbclass: Include dbgsrc for static libs

Richard Purdie richard.purdie at linuxfoundation.org
Wed Apr 4 13:43:50 UTC 2018


On Tue, 2018-03-27 at 12:28 +0000, Ola x Nilsson wrote:
> ping?

Fails if you enable ptest in openssl. Suspect you need to check if its
a real file rather than a symlink and only check real files.

Cheers,

Richard

ERROR: openssl-1.0.2o-r0 do_package: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:split_and_strip_files(d)
     0003:
File: '/media/build1/poky/meta/classes/package.bbclass', lineno: 969, function: split_and_strip_files
     0965:                file = os.path.join(root, f)
     0966:                if file.endswith(".ko") and file.find("/lib/modules/") != -1:
     0967:                    kernmods.append(file)
     0968:                    continue
 *** 0969:                if isStaticLib(file):
     0970:                    staticlibs.append(file)
     0971:                    continue
     0972:
     0973:                # Skip debug files
File: '/media/build1/poky/meta/classes/package.bbclass', lineno: 944, function: isStaticLib
     0940:        return type
     0941:
     0942:    def isStaticLib(path):
     0943:        if file.endswith('.a'):
 *** 0944:            with open(path, 'rb') as fh:
     0945:                magic = b'!<arch>\n'
     0946:                start = fh.read(len(magic))
     0947:                return start == magic
     0948:        return False
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/media/build1/poky/build/tmp/work/core2-64-poky-linux/openssl/1.0.2o-r0/package/usr/lib/openssl/ptest/libssl.a'

ERROR: openssl-1.0.2o-r0 do_package: Function failed: split_and_strip_files
ERROR: Logfile of failure stored in: /media/build1/poky/build/tmp/work/core2-64-poky-linux/openssl/1.0.2o-r0/temp/log.do_package.20107
ERROR: Task (/media/build1/poky/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1308 tasks of which 1303 didn't need to be rerun and 1 failed.



More information about the Openembedded-core mailing list