Bug 15251 - oe-pkgdata-util list-pkg-files doesn't list symlinks
Summary: oe-pkgdata-util list-pkg-files doesn't list symlinks
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 4.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.0 M1
Assignee: New Comer Bugs
QA Contact:
URL:
Whiteboard: NEWCOMER
Depends on:
Blocks:
 
Reported: 2023-10-20 10:47 UTC by Ross Burton
Modified: 2023-11-27 16:55 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.