[OE-core] About PACKAGECONFIG audit

Randy MacLeod randy.macleod at windriver.com
Thu Aug 22 05:53:43 UTC 2013


On 13-08-20 01:36 AM, wenzong fan wrote:
> On 08/20/2013 04:46 AM, Randy MacLeod wrote:
>> Add Joe Slater who owns US17463: PACKAGECONFIG clean-up.
>>
>>
>> On 13-08-15 05:29 AM, wenzong fan wrote:
>>> Hi All,
>>>
>>> We have seen some problems like this:
>>>
>>> $ bitbake libcap
>>>
>>> ld: warning: libaudit.so.1, needed by .../lib64/libpam.so, not found
>>> .../lib64/libpam.so: undefined reference to `audit_open'
>>> .../lib64/libpam.so: undefined reference to `audit_close'
>>> ......
>>>
>>> The libaudit has been available and libpam build with it, after we run
>>> another build with sstate-cache and w/o libaudit, the error occurs. The
>>> solution in these cases is to use PACKAGECONFIG to lay out dependencies
>>> on optional packages and make them explicit. We need to run an audit and
>>> catch all of these issues.
>>>
>>> A probable ways maybe:
>>>
>>> 1) Run world build to generate the sysroots as much as possible;
>>> 2) Run 'configure --help' on each package to spot all of the optional
>>> dependencies, and convert them into PACKAGECONFIG specs/or any other
>>> prompts.
>>
>> We should try to automate or codify this step so that the output is
>> a list of oe-core package names.
>>
>>> 3) Run #1, #2 as an audit script periodically.
>>>
>>> Or could we run this check as part of a QA build step?
>>
>> Do you mean:
>>    scripts/test-dependencies.sh
>
> No, I mean some check steps that if PACKAGECONFIG should be used, not
> limit to the script.

thread replace by discussion on:

[Bug 5033] New: Way to audit all optional dependencies
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5033

// Randy

>
> Thanks
> Wenzong
>
>>
>> // Randy
>>
>>>
>>>
>>> Thanks
>>> Wenzong
>>
>>


-- 
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350



More information about the Openembedded-core mailing list