Bug 15251

Summary: oe-pkgdata-util list-pkg-files doesn't list symlinks
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: Scripts and ToolsAssignee: New Comer Bugs <newcomer>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium+ CC: loc.nguyen.wt, randy.macleod, ross.burton
Version: 4.3   
Target Milestone: 5.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: NEWCOMER
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2023-10-20 10:47:48 UTC
If a recipe creates symlinks they don't appear in the list-pkg-files output.
Comment 1 Ross Burton 2023-10-20 11:00:54 UTC
Notable this also means buildhistory-diff doesn't see symlinks either.
Comment 2 Loc Nguyen 2023-11-10 05:02:50 UTC
Hi Ross Burton,

I would like to support this bugfix.
Can you help to specify how to reproduce it?
I've tried to reproduce the bug by adding below code to bzip2 recipe. However, the output is of "oe-pkgdata-util list-pkg-files bzip2" is still correct. 

do_install:append () {
        install -d ${D}/bin
        echo "ABC" > ${D}/bin/test
        chmod 755 ${D}/bin/test
        ln -sf test ${D}/bin/symlink
        ln -sf test ${D}/bin/symlink2
}


> oe-pkgdata-util list-pkg-files bzip2
bzip2:
        /bin/symlink
        /bin/symlink2
        /bin/test
        /usr/bin/bunzip2.bzip2
        /usr/bin/bzcat.bzip2
        /usr/bin/bzcmp
        /usr/bin/bzdiff
        /usr/bin/bzegrep
        /usr/bin/bzfgrep
        /usr/bin/bzgrep
        /usr/bin/bzip2.bzip2
        /usr/bin/bzip2recover
        /usr/bin/bzless
        /usr/bin/bzmore
Comment 3 Ross Burton 2023-11-27 16:55:29 UTC
So I genuinely can't replicate this anymore.  I wish I could remember where I was seeing a problem but I can't and adding/removing symlinks from a recipe are working in oe-pkgdata-util and buildhistory, so maybe I was just doing something wrong.